public class LazyActionMap extends ActionMapUIResource
loadActionMap
method on the passed in Object.Modifier and Type | Method and Description |
---|---|
Object[] |
allKeys() |
void |
clear() |
Action |
get(Object key) |
static void |
installLazyActionMap(JComponent c,
Class loaderClass,
String defaultsKey)
Installs an ActionMap that will be populated by invoking the
loadActionMap method on the specified Class
when necessary. |
Object[] |
keys() |
void |
put(Action action) |
void |
put(Object key,
Action action) |
void |
remove(Object key) |
void |
setParent(ActionMap map) |
int |
size() |
public static void installLazyActionMap(JComponent c, Class loaderClass, String defaultsKey)
loadActionMap
method on the specified Class
when necessary.
This should be used if the ActionMap can be shared.
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.public void put(Action action)
Copyright © 2015. All rights reserved.