An ActionMap that populates its contents as necessary. The
contents are populated by invoking the
method on the passed in Object.
| Method from javax.swing.plaf.basic.LazyActionMap Detail: |
public Object[] allKeys() {
loadIfNecessary();
return super.allKeys();
}
|
public void clear() {
loadIfNecessary();
super.clear();
}
|
public Action get(Object key) {
loadIfNecessary();
return super.get(key);
}
|
static ActionMap getActionMap(Class loaderClass,
String defaultsKey) {
ActionMap map = (ActionMap)UIManager.get(defaultsKey);
if (map == null) {
map = new LazyActionMap(loaderClass);
UIManager.getLookAndFeelDefaults().put(defaultsKey, map);
}
return map;
}
|
static void installLazyActionMap(JComponent c,
Class loaderClass,
String defaultsKey) {
ActionMap map = (ActionMap)UIManager.get(defaultsKey);
if (map == null) {
map = new LazyActionMap(loaderClass);
UIManager.getLookAndFeelDefaults().put(defaultsKey, map);
}
SwingUtilities.replaceUIActionMap(c, map);
}
|
public Object[] keys() {
loadIfNecessary();
return super.keys();
}
|
public void put(Action action) {
put(action.getValue(Action.NAME), action);
}
|
public void put(Object key,
Action action) {
loadIfNecessary();
super.put(key, action);
}
|
public void remove(Object key) {
loadIfNecessary();
super.remove(key);
}
|
public void setParent(ActionMap map) {
loadIfNecessary();
super.setParent(map);
}
|
public int size() {
loadIfNecessary();
return super.size();
}
|