|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javawebparts.ajaxparts.taglib.config.AjaxHandlerConfig
This class holds configuration information on a handler, standard or custom.
Field Summary | |
private boolean |
frozen
Flag: Is the configuration frozen? |
private java.lang.String |
function
The Javascript function name this handler will be called as. |
private java.lang.String |
location
Location of Javascript for this handler (local if the developer will include the script himself, or the path to an external .js file) |
private static org.apache.commons.logging.Log |
log
Log instance. |
private java.lang.String |
name
The name this handler will be known and reference by. |
private java.lang.String |
stdOrCustom
Is this a standard or custom handler? |
private java.lang.String |
type
The type of the handler (request or response). |
Constructor Summary | |
AjaxHandlerConfig()
|
Method Summary | |
void |
freeze()
Freezes the configuration of this object. |
java.lang.String |
getFunction()
name accessor. |
java.lang.String |
getLocation()
name accessor. |
java.lang.String |
getName()
name accessor. |
java.lang.String |
getType()
type accessor. |
boolean |
isCustom()
Indicates if the handler instance is a custom type. |
boolean |
isFrozen()
Returns true if this onject's config is frozen, false otherwise. |
boolean |
isSTD()
Indicates if the handler instance is a standard type. |
void |
setCustom()
Flags that the handler instance is a custom type. |
void |
setFunction(java.lang.String inFunction)
function mutator. |
void |
setLocation(java.lang.String inLocation)
location mutator. |
void |
setName(java.lang.String inName)
name mutator. |
void |
setSTD()
Flags that the handler instance is a standard type. |
void |
setType(java.lang.String inType)
type mutator. |
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 name
private java.lang.String type
private java.lang.String function
private java.lang.String location
private java.lang.String stdOrCustom
private boolean frozen
Constructor Detail |
public AjaxHandlerConfig()
Method Detail |
public void setName(java.lang.String inName)
inName
- Name to set.public java.lang.String getName()
public void setType(java.lang.String inType)
inType
- Type to set.public java.lang.String getType()
public void setFunction(java.lang.String inFunction)
inFunction
- Function to set.public java.lang.String getFunction()
public void setLocation(java.lang.String inLocation)
inLocation
- Location to set.public java.lang.String getLocation()
public void setSTD()
public void setCustom()
public boolean isSTD()
public boolean isCustom()
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 |