|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.aragost.araspect.handlers.HandlerFacade
A HandlerFacade is a wrapper around a Handler object and thereby a chain of Handlers. All invocations from the Inspector of methods in the Handler chain always goes through the HanderFacade object.
Constructor Summary | |
HandlerFacade(Inspector inspector,
Handler handler)
Construct a HandlerFacade that wraps the specified Hanlder chain. |
Method Summary | |
Element |
createEditElement(Path path,
PathElement elm,
boolean withNull)
Create an HTML element to change the value of the attribute specified by the parameters. |
Handler |
getChain()
Gets the chain. |
MethodContainer |
getGetters()
Return the getter methods that should be displayed in the inspector view |
Inspector |
getInspector()
Gets the inspector. |
Path |
getPath()
Gets the path. |
boolean |
isEditable()
Check if it possible for the user to edit a field represented by the receiver. |
boolean |
needsRecalc(java.lang.Object value)
If this method returns false (default) then it is assumed that the specified value can be reused, and we don't have to evaluate it everytime the value is needed. |
void |
setInspector(Inspector inspector)
Sets the inspector. |
void |
setPath(Path path)
Sets the path. |
java.lang.String |
toString(java.lang.Object value,
int limit)
Return a String representation of the specified object. |
java.lang.String |
typeName(java.lang.Object value,
java.lang.Class clazz)
Return the name of the specified class. |
void |
writeHtml(HtmlWriter writer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HandlerFacade(Inspector inspector, Handler handler)
Method Detail |
public java.lang.String toString(java.lang.Object value, int limit)
public MethodContainer getGetters()
public java.lang.String typeName(java.lang.Object value, java.lang.Class clazz)
public boolean needsRecalc(java.lang.Object value)
public boolean isEditable()
public Element createEditElement(Path path, PathElement elm, boolean withNull)
path
- Path of containing objectelm
- The PathElement identifying the attribute we are editingwithNull
- Should it be possible to set the value to null?
public void writeHtml(HtmlWriter writer)
public Path getPath()
public void setPath(Path path)
path
- The path to setpublic Handler getChain()
public Inspector getInspector()
public void setInspector(Inspector inspector)
inspector
- The inspector to set
|
Copyright 2002 by aragost | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |