JIDE 3.5.15

com.jidesoft.plaf.basic
Class LazyActionMap

java.lang.Object
  extended by javax.swing.ActionMap
      extended by javax.swing.plaf.ActionMapUIResource
          extended by com.jidesoft.plaf.basic.LazyActionMap
All Implemented Interfaces:
Serializable, UIResource

public class LazyActionMap
extends ActionMapUIResource

An ActionMap that populates its contents as necessary. The contents are populated by invoking the loadActionMap method on the passed in Object.

Version:
1.5, 12/19/03
Author:
Scott Violet
See Also:
Serialized Form

Method Summary
 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()
           
 
Methods inherited from class javax.swing.ActionMap
getParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

installLazyActionMap

public 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.

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.

put

public void put(Action action)

put

public void put(Object key,
                Action action)
Overrides:
put in class ActionMap

get

public Action get(Object key)
Overrides:
get in class ActionMap

remove

public void remove(Object key)
Overrides:
remove in class ActionMap

clear

public void clear()
Overrides:
clear in class ActionMap

keys

public Object[] keys()
Overrides:
keys in class ActionMap

size

public int size()
Overrides:
size in class ActionMap

allKeys

public Object[] allKeys()
Overrides:
allKeys in class ActionMap

setParent

public void setParent(ActionMap map)
Overrides:
setParent in class ActionMap

JIDE 3.5.15