|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.ajaxparts.taglib.config.AjaxResponseHandler
This class holds configuration information on a response handler defined for a given event of an Ajax-enabled element.
Field Summary | |
private boolean |
frozen
Flag: Is the configuration frozen? |
private static org.apache.commons.logging.Log |
log
Log instance. |
private java.lang.String |
matchPattern
The regex that will be used to determine is response handler should fire. |
private java.lang.String |
parameter
The parameter for a handler. |
private java.lang.String |
type
The type of a handler. |
Constructor Summary | |
AjaxResponseHandler()
|
Method Summary | |
void |
freeze()
Freezes the configuration of this object. |
java.lang.String |
getMatchPattern()
Returns the matchPattern of this event handler. |
java.lang.String |
getParameter()
Returns the handler-specific parameter string for this handler. |
java.lang.String |
getType()
Returns the type of this event handler. |
boolean |
isFrozen()
Returns true if this onject's config is frozen, false otherwise. |
void |
setMatchPattern(java.lang.String inMatchPattern)
Sets the matchPattern of this event handler. |
void |
setParameter(java.lang.String inParameter)
Sets the handler-specific parameter string for this handler. |
void |
setType(java.lang.String inType)
Sets the type of this event handler. |
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 type
private java.lang.String parameter
private java.lang.String matchPattern
private boolean frozen
Constructor Detail |
public AjaxResponseHandler()
Method Detail |
public void setType(java.lang.String inType)
inType
- The type of this event handlerpublic java.lang.String getType()
public void setParameter(java.lang.String inParameter)
inParameter
- The parameter string for this handlerpublic java.lang.String getParameter()
public void setMatchPattern(java.lang.String inMatchPattern)
inMatchPattern
- The matchPattern of this event handlerpublic java.lang.String getMatchPattern()
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 |