|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.ajaxparts.taglib.config.AjaxElement
This class holds configuration information on each element of a form that has been Ajax-enabled.
Field Summary | |
private java.lang.String |
ajaxRef
Ajax reference ID. |
private java.lang.String |
async
Flag to determine if child event requests be asynchronous. |
private java.util.HashMap |
errorHandlers
Collection of error handlers for this element. |
private java.util.HashMap |
events
The collection of events defined for an element. |
private java.lang.String |
form
The name of the form child events 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 events 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 | |
AjaxElement()
|
Method Summary | |
void |
addErrorHandler(AjaxErrorHandler errorHandler)
Puts an error handler in the collection. |
void |
addEvent(AjaxEvent event)
Adds an AjaxEvent instance to the collection for the element. |
void |
freeze()
Freezes the configuration of this object. |
java.lang.String |
getAjaxRef()
Returns the ajaxRef for the element. |
java.lang.String |
getAsync()
Accessor for async. |
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 element. |
AjaxEvent |
getEvent(java.lang.String type)
Returns the AjaxEvent instance for the named UI event. |
java.util.HashMap |
getEvents()
Returns the collection of AjaxEvent instances for this element. |
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)
Sets the ajaxRef for the element. |
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.lang.String preProc
private java.lang.String postProc
private java.util.HashMap events
private java.util.HashMap errorHandlers
private boolean frozen
Constructor Detail |
public AjaxElement()
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
- The ajaxRef top assign to this elementpublic 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 addEvent(AjaxEvent event)
event
- The AjaxEvenet instance to addpublic AjaxEvent getEvent(java.lang.String type)
type
- The event type.
public java.util.HashMap getEvents()
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 |