Liking cljdoc? Tell your friends :D

seesaw.config

Functions for configuring widgets. Prefer (seesaw.core/config) and friends.

Functions for configuring widgets. Prefer (seesaw.core/config) and friends.
raw docstring

configclj

(config target name)

Retrieve the value of an option from target. For example:

(config button1 :text) => "I'm a button!"

Target must satisfy the Configurable protocol. In general, it may be a widget, or convertible to widget with (to-widget). For example, the target can be an event object.

Returns the option value. Throws IllegalArgumentException if an unknown option is requested.

See: (seesaw.core/config!)

Retrieve the value of an option from target. For example:

  (config button1 :text)
  => "I'm a button!"

Target must satisfy the Configurable protocol. In general, it may be a widget, 
or convertible to widget with (to-widget). For example, the target can be an event 
object.

Returns the option value. 
Throws IllegalArgumentException if an unknown option is requested.

See:
  (seesaw.core/config!)
sourceraw docstring

config!clj

(config! targets & args)

Applies options in the argument list to one or more targets. For example:

(config! button1 :enabled? false :text "I' disabled")

or:

(config! [button1 button2] :enabled? false :text "We're disabled")

Targets must satisfy the Configurable protocol. In general, they may be widgets, or convertible to widgets with (to-widget). For example, the target can be an event object.

Returns the input targets. Throws IllegalArgumentException if an unknown option is encountered.

See: (seesaw.core/config)

Applies options in the argument list to one or more targets. For example:

  (config! button1 :enabled? false :text "I' disabled")

or:

  (config! [button1 button2] :enabled? false :text "We're disabled")

Targets must satisfy the Configurable protocol. In general, they may be widgets, 
or convertible to widgets with (to-widget). For example, the target can be an event 
object.

Returns the input targets.
Throws IllegalArgumentException if an unknown option is encountered.

See:
  (seesaw.core/config)
sourceraw docstring

Configurablecljprotocol

A protocol for configuring and querying properties of an object. Client code should use (seesaw.core/config!) and (seesaw.core/config) rather than calling protocol methods directly.

See: (seesaw.core/config) (seesaw.core/config!)

A protocol for configuring and querying properties of an object. Client
code should use (seesaw.core/config!) and (seesaw.core/config) rather than
calling protocol methods directly.

See:
  (seesaw.core/config)
  (seesaw.core/config!)

config!*clj

(config!* target args)

Configure one or more options on target. Args is a list of key/value pairs. See (seesaw.core/config!)

Configure one or more options on target. Args is a list of key/value pairs. See (seesaw.core/config!)

config*clj

(config* target name)

Retrieve the current value for the given named option. See (seesaw.core/config)

Retrieve the current value for the given named option. See (seesaw.core/config)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close