Class LazyActionMap
java.lang.Object
javax.swing.ActionMap
javax.swing.plaf.ActionMapUIResource
org.jdesktop.swingx.plaf.basic.core.LazyActionMap
- All Implemented Interfaces:
Serializable
,UIResource
An ActionMap that populates its contents as necessary. The
contents are populated by invoking the
loadActionMap
method on the passed in Object.- Version:
- 1.6, 11/17/05
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionObject[]
allKeys()
void
clear()
(package private) static ActionMap
getActionMap
(Class loaderClass, String defaultsKey) Returns an ActionMap that will be populated by invoking theloadActionMap
method on the specified Class when necessary.static void
installLazyActionMap
(JComponent c, Class loaderClass, String defaultsKey) Installs an ActionMap that will be populated by invoking theloadActionMap
method on the specified Class when necessary.Object[]
keys()
private void
void
void
void
void
int
size()
-
Field Details
-
_loader
Object to invokeloadActionMap
on. This may be a Class object.
-
-
Constructor Details
-
LazyActionMap
-
-
Method Details
-
installLazyActionMap
Installs an ActionMap that will be populated by invoking theloadActionMap
method on the specified Class when necessary.This should be used if the ActionMap can be shared.
- Parameters:
c
- JComponent to install the ActionMap on.loaderClass
- Class object that gets loadActionMap invoked on.defaultsKey
- Key to use to defaults table to check for existing map and what resulting Map will be registered on.
-
getActionMap
Returns an ActionMap that will be populated by invoking theloadActionMap
method on the specified Class when necessary.This should be used if the ActionMap can be shared.
- Parameters:
loaderClass
- Class object that gets loadActionMap invoked on.defaultsKey
- Key to use to defaults table to check for existing map and what resulting Map will be registered on.c
- JComponent to install the ActionMap on.
-
put
-
put
-
get
-
remove
-
clear
public void clear() -
keys
-
size
public int size() -
allKeys
-
setParent
-
loadIfNecessary
private void loadIfNecessary()
-