|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.xoetrope.xui.events.XActionManager
public class XActionManager
An action manager for applications. Actions can be added on an application wide basis or for a particular context, perhaps corresponding to a page, menu or toolbar. The actions can be turned on or off indvidually or according to the context.
Copyright (c) Xoetrope Ltd., 2002-2006. See license.txt for licensing details
| Field Summary | |
|---|---|
protected java.util.Hashtable |
actionContexts
The register of binding adapters for each component type |
protected static int |
changeCounter
A counter for changes to the registry. |
protected static java.util.Hashtable |
configFiles
The config files used to build the set of component adapters. |
protected int |
localChangeCounter
Used for tracking changes to the registry spec. |
| Method Summary | |
|---|---|
static void |
addConfigFile(java.lang.String key,
java.lang.Object resource,
boolean overwrite)
Add a configuration file. |
void |
checkRegistration()
Check that all the registered components are loaded |
protected void |
doRead(java.lang.String key,
java.lang.Object configFile)
Read the component registry. |
protected void |
doRead(java.lang.String key,
java.lang.String configFile)
Read the component registry. |
protected void |
doRead(java.lang.String key,
java.net.URL configFileURL)
Read the component registry. |
XAction |
getAction(java.lang.String context,
java.lang.Object id)
Try to get a binding factory to construct the binding |
protected void |
read()
Read the component registry. |
void |
read(java.lang.String key,
java.io.Reader reader)
Read the component registry. |
protected void |
read(java.lang.String key,
java.lang.String configFile)
Read the component registry. |
static void |
register(XProject currentProject)
Register an instance of this binding factory. |
void |
updateConfig()
Signal that the configuration has been updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Hashtable actionContexts
protected static java.util.Hashtable configFiles
protected static int changeCounter
protected int localChangeCounter
| Method Detail |
|---|
public static void register(XProject currentProject)
currentProject - the owner project
public XAction getAction(java.lang.String context,
java.lang.Object id)
context - the action context or nullid - the action id
public static void addConfigFile(java.lang.String key,
java.lang.Object resource,
boolean overwrite)
key - the name by which the configuration file is referencedresource - the name/path of the configuration file or the URL for the fileoverwrite - true to overwrite and existing entry matching the specified keypublic void updateConfig()
protected void read()
protected void read(java.lang.String key,
java.lang.String configFile)
configFile - the name of the configuration filekey - the name by which the configuration file is referenced
protected void doRead(java.lang.String key,
java.lang.Object configFile)
configFile - the name of the configuration filekey - the name by which the configuration file is referenced
protected void doRead(java.lang.String key,
java.lang.String configFile)
configFile - the name of the configuration filekey - the name by which the configuration file is referenced
protected void doRead(java.lang.String key,
java.net.URL configFileURL)
configFileURL - the URL of the configuration filekey - the name by which the configuration file is referenced
public void read(java.lang.String key,
java.io.Reader reader)
key - the name by which the configuration file is referencedreader - the reader from which to read the filepublic void checkRegistration()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||