|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.ajaxparts.taglib.config.AjaxGroup
This class holds configuration information on each group of elements (usually a group corresponds to a page, but it doesn't have to) that contains Ajax-enabled elements.
Field Summary | |
private java.lang.String |
ajaxRef
Ajax reference ID. |
private java.lang.String |
async
Flag to determine if child element requests be asynchronous. |
private java.util.HashMap |
elements
Elements defined for this form. |
private java.util.HashMap |
errorHandlers
Collection of error handlers for this group. |
private java.lang.String |
form
The name of the form child elements will operate on. |
private boolean |
frozen
Flag to determine if the configuration frozen. |
private static org.apache.commons.logging.Log |
log
Log instance. |
private java.lang.String |
method
The HTTP method child elements will use. |
private java.lang.String |
postProc
The postprocessor this event will use. |
private java.lang.String |
preProc
The preprocessor this event will use. |
Constructor Summary | |
AjaxGroup()
|
Method Summary | |
void |
addElement(AjaxElement element)
Puts an element in the collection. |
void |
addErrorHandler(AjaxErrorHandler errorHandler)
Puts an error handler in the collection. |
void |
freeze()
Freezes the configuration of this object. |
java.lang.String |
getAjaxRef()
ajaxRef getter. |
java.lang.String |
getAsync()
Accessor for async. |
AjaxElement |
getElement(java.lang.String inAjaxRef)
Gets an element from the collection. |
AjaxErrorHandler |
getErrorHandler(java.lang.String inCode)
Gets an error handler from the collection. |
java.util.HashMap |
getErrorHandlers()
Gets the collection of error handlers for this group. |
java.lang.String |
getForm()
Accessor for form. |
java.lang.String |
getMethod()
Accessor for method. |
java.lang.String |
getPostProc()
Accessor for postProc. |
java.lang.String |
getPreProc()
Accessor for preProc. |
boolean |
isFrozen()
Returns true if this onject's config is frozen, false otherwise. |
void |
setAjaxRef(java.lang.String inAjaxRef)
ajaxRef setter. |
void |
setAsync(java.lang.String inAsync)
Mutator for async. |
void |
setForm(java.lang.String inForm)
Mutator for form. |
void |
setMethod(java.lang.String inMethod)
Mutator for method. |
void |
setPostProc(java.lang.String inPostProc)
Mutator for postProc. |
void |
setPreProc(java.lang.String inPreProc)
Mutator for preProc. |
java.lang.String |
toString()
Overriden toString method. |
private 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, wait, wait, wait |
Field Detail |
private static org.apache.commons.logging.Log log
private java.lang.String ajaxRef
private java.lang.String form
private java.lang.String method
private java.lang.String async
private java.util.HashMap elements
private java.lang.String preProc
private java.lang.String postProc
private java.util.HashMap errorHandlers
private boolean frozen
Constructor Detail |
public AjaxGroup()
Method Detail |
public void setPreProc(java.lang.String inPreProc)
inPreProc
- New value for preProc.public java.lang.String getPreProc()
public void setPostProc(java.lang.String inPostProc)
inPostProc
- New value for postProc.public java.lang.String getPostProc()
public void setAjaxRef(java.lang.String inAjaxRef)
inAjaxRef
- ajaxRef.public java.lang.String getAjaxRef()
public void setForm(java.lang.String inForm)
inForm
- New value for form.public java.lang.String getForm()
public void setMethod(java.lang.String inMethod)
inMethod
- New value for method.public java.lang.String getMethod()
public void setAsync(java.lang.String inAsync)
inAsync
- New value for async.public java.lang.String getAsync()
public void addElement(AjaxElement element)
element
- The element to put in the collection.public AjaxElement getElement(java.lang.String inAjaxRef)
inAjaxRef
- The ajaxRef of the element to retrieve.
public void addErrorHandler(AjaxErrorHandler errorHandler)
errorHandler
- The error handler to put in the collection.public AjaxErrorHandler getErrorHandler(java.lang.String inCode)
inCode
- The HTTP response code of the error handler to retrieve.
public java.util.HashMap getErrorHandlers()
public void freeze()
public boolean isFrozen()
private boolean validate()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |