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.
(->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
(clear this)
Removes all the mappings from this object.
Removes all the mappings from this object.
(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`
(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`
(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`
(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
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close