API for swing-utils
- ()
clojure-contrib is now deprecated
clojure-contrib is no longer being developed or maintained.
Rather than a single, monolithic, contributions library, Clojure now has
a set of separate libraries for each unit of functionality. The libraries
are in the Clojure GitHub organization at
https://github.com/clojure.
API documentation of the libraries can be found at
https://clojure.github.io.
If you're looking for a specific function or namespace from the old
clojure-contrib, see
"Where Did Clojure.Contrib Go".
Full namespace name:
clojure.contrib.swing-utils
Overview
Public Variables and Functions
action-translation-table
var
This library, clojure-contrib, is deprecated. See here for more information.
Translation table for the make-action constructor.
Source
add-action-listener
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (add-action-listener component f & args)
Adds an ActionLister to component. When the action fires, f will be
invoked with the event as its first argument followed by args.
Returns the listener.
Source
add-key-typed-listener
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (add-key-typed-listener component f & args)
Adds a KeyListener to component that only responds to KeyTyped events.
When a key is typed, f is invoked with the KeyEvent as its first argument
followed by args. Returns the listener.
Source
do-swing
macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (do-swing & body)
Executes body in the Swing event thread asynchronously. Returns
immediately after scheduling the execution.
Source
do-swing*
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (do-swing* schedule thunk)
Runs thunk in the Swing event thread according to schedule:
- :later => schedule the execution and return immediately
- :now => wait until the execution completes.
Source
do-swing-and-wait
macro
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (do-swing-and-wait & body)
Executes body in the Swing event thread synchronously. Returns
after the execution is complete.
Source
make-action
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (make-action spec)
Create an Action proxy from the given action spec. The standard keys
recognised are: :name, :accelerator, :command-key, :long-desc,
:short-desc, :mnemonic and :icon - corresponding to the similar named
Action properties. The :handler value is used in the actionPerformed
method of the proxy to pass on the event.
Source
function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (make-menubar menubar-items)
Create a menubar containing the given sequence of menu items. The menu
items are described by a map as is detailed in the docstring of the
add-menu-item function.
Source
var
This library, clojure-contrib, is deprecated. See here for more information.
An atom containing the dispatch set for the add-menu-item method.
Source