Liking cljdoc? Tell your friends :D

javax.swing.ComponentInputMap

A ComponentInputMap is an InputMap associated with a particular JComponent. The component is automatically notified whenever the ComponentInputMap changes. ComponentInputMaps are used for WHEN_IN_FOCUSED_WINDOW bindings.

A ComponentInputMap is an InputMap
associated with a particular JComponent.
The component is automatically notified whenever
the ComponentInputMap changes.
ComponentInputMaps are used for
WHEN_IN_FOCUSED_WINDOW bindings.
raw docstring

->component-input-mapclj

(->component-input-map component)

Constructor.

Creates a ComponentInputMap associated with the specified component.

component - a non-null JComponent - javax.swing.JComponent

throws: java.lang.IllegalArgumentException - if component is null

Constructor.

Creates a ComponentInputMap associated with the
 specified component.

component - a non-null JComponent - `javax.swing.JComponent`

throws: java.lang.IllegalArgumentException - if component is null
raw docstring

clearclj

(clear this)

Removes all the mappings from this object.

Removes all the mappings from this object.
raw docstring

get-componentclj

(get-component this)

Returns the component the InputMap was created for.

returns: javax.swing.JComponent

Returns the component the InputMap was created for.

returns: `javax.swing.JComponent`
raw docstring

putclj

(put this key-stroke action-map-key)

Adds a binding for keyStroke to actionMapKey. If actionMapKey is null, this removes the current binding for keyStroke.

key-stroke - javax.swing.KeyStroke action-map-key - java.lang.Object

Adds a binding for keyStroke to actionMapKey.
 If actionMapKey is null, this removes the current binding
 for keyStroke.

key-stroke - `javax.swing.KeyStroke`
action-map-key - `java.lang.Object`
raw docstring

removeclj

(remove this key)

Removes the binding for key from this object.

key - javax.swing.KeyStroke

Removes the binding for key from this object.

key - `javax.swing.KeyStroke`
raw docstring

set-parentclj

(set-parent this map)

Sets the parent, which must be a ComponentInputMap associated with the same component as this ComponentInputMap.

map - a ComponentInputMap - javax.swing.InputMap

throws: java.lang.IllegalArgumentException - if map is not a ComponentInputMap or is not associated with the same component

Sets the parent, which must be a ComponentInputMap
 associated with the same component as this
 ComponentInputMap.

map - a ComponentInputMap - `javax.swing.InputMap`

throws: java.lang.IllegalArgumentException - if map is not a ComponentInputMap or is not associated with the same component
raw docstring

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

× close