UIDefaults.LazyInputMap (Java SE 15 & JDK 15) (original) (raw)
All Implemented Interfaces:
[UIDefaults.LazyValue](UIDefaults.LazyValue.html "interface in javax.swing")
Enclosing class:
public static class UIDefaults.LazyInputMap extends Object implements UIDefaults.LazyValue
LazyInputMap
will create a InputMap
in its createValue
method. The bindings are passed in the constructor. The bindings are an array with the even number entries being string KeyStrokes
(eg "alt SPACE") and the odd number entries being the value to use in theInputMap
(and the key in the ActionMap
).
Since:
1.3
Constructor Summary
Constructors
Constructor | Description |
---|---|
LazyInputMap(Object[] bindings) | Constructs a LazyInputMap. |
Method Summary
Modifier and Type | Method | Description |
---|---|---|
Object | createValue(UIDefaults table) | Creates an InputMap with the bindings that are passed in. |
Methods declared in class java.lang.Object
[clone](../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../java.base/java/lang/Object.html#wait%28long,int%29)
Constructor Details
LazyInputMap
public LazyInputMap(Object[] bindings)
Constructs aLazyInputMap
.
Parameters:
bindings
- the bindingsMethod Details
createValue
Creates an
InputMap
with the bindings that are passed in.
Specified by:
[createValue](UIDefaults.LazyValue.html#createValue%28javax.swing.UIDefaults%29)
in interface[UIDefaults.LazyValue](UIDefaults.LazyValue.html "interface in javax.swing")
Parameters:
table
- aUIDefaults
table
Returns:
theInputMap