|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.ajaxparts.taglib.config.AjaxConfig
This class is the top-level class that holds all Ajax configuration information generated by the parsing of the config file. It contains two collections, one contains the configuration information for all the custom handlers defined and the other contains configuration information on all the groups defined.
Field Summary | |
private int |
dummy
This field is soley to get rid of a CheckStyle complaint. |
private static boolean |
frozen
Flag: Is the configuration frozen? |
private static java.util.HashMap |
groups
The collection of groups defined in the config file. |
private static java.util.HashMap |
handlers
The collection of handlers defined in the config file. |
Constructor Summary | |
AjaxConfig()
|
Method Summary | |
static void |
addGroup(AjaxGroup group)
Adds an AjaxGroup instance to the collection under its ajaxRef. |
static void |
addHandler(AjaxHandlerConfig handler)
Adds a AjaxHandlerConfig object to the collection of handlers defined in the config file. |
static void |
freeze()
Freezes the configuration of this object. |
int |
getDummy()
Accessor for dummy field. |
static AjaxGroup |
getGroup(java.lang.String ajaxRef)
Returns an AjaxGroup instance from the collection by ajaxRef. |
static java.util.HashMap |
getGroups()
Returns a collection of all groups defined in the config file. |
static AjaxHandlerConfig |
getHandler(java.lang.String name)
Returns an AjaxHandlerConfig instance from the collection by name. |
static java.util.HashMap |
getHandlers()
Returns a collection of all handlers defined in the config file. |
static boolean |
isFrozen()
Returns true if this onject's config is frozen, false otherwise. |
void |
setDummy(int inDummy)
Mutator for dummy field. |
private static boolean |
validate()
This method is called when the object is frozen to ensure it is configured in a legal way. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static java.util.HashMap handlers
private static java.util.HashMap groups
private static boolean frozen
private int dummy
Constructor Detail |
public AjaxConfig()
Method Detail |
public int getDummy()
public void setDummy(int inDummy)
inDummy
- New value of dummy field.public static void addHandler(AjaxHandlerConfig handler)
handler
- An AjaxHandlerConfig instance being added to the collection.public static AjaxHandlerConfig getHandler(java.lang.String name)
name
- The name of the handler to return.
public static void addGroup(AjaxGroup group)
group
- The AjaxGroup instance to addpublic static AjaxGroup getGroup(java.lang.String ajaxRef)
ajaxRef
- The AjaxGroup to return.
public static java.util.HashMap getHandlers()
public static java.util.HashMap getGroups()
public static void freeze()
public static boolean isFrozen()
private static boolean validate()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |