|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.jcorporate.expresso.core.controller.ControllerElement
com.jcorporate.expresso.core.controller.Output
An item returned from a controller to provide output/feedback to the
client.
An Output object is one of the three types of object that can be returned
by a Controller moving to a new state. The other two are Input and
Action items.
An Output item can be a single item, or a list of items, using the "nested"
methods in the ControllerElement class.
| Constructor Summary | |
Output()
Default constructor |
|
Output(String c)
Convenience constructor for creating an output with a specific string as it's contents in one step |
|
Output(String name,
String c)
Convenience constructor for creating an output with a specific string as it's contents and a name in one step |
|
| Method Summary | |
void |
addNested(Output o)
Add a new nested output item to this item |
void |
clearUsedCount()
Clears the used count |
Object |
clone()
Deep copy clone the object |
static ControllerElement |
fromXML(org.w3c.dom.Node n)
Return a controller element based upon the xml fragment |
String |
getAlignment()
Get the suggested alignment for this item |
String |
getContent()
Get the "contents" of this Output, the string value that this Output object represents |
String |
getKey()
Get the name of this output element |
String |
getStyle()
/** Return the suggested "style" for displaying this Output item |
long |
getUsedCount()
|
boolean |
hasNested(String nestedName)
Does this output have a nested item with the given name? |
void |
incrementUsedCount()
|
void |
setAlignment(String newAlignment)
Method used by the Controller to specify a suggested alignment for this Output item |
void |
setContent(String newContent)
Used by the Controller to specify the contents string of this Output |
void |
setKey(String newKey)
|
void |
setStyle(String newStyle)
Used by the Controller to set a suggested "style" for displaying this Output item |
FastStringBuffer |
toXML(FastStringBuffer stream)
Concert the object to an xml fragment. |
| Methods inherited from class com.jcorporate.expresso.core.controller.ControllerElement |
addNested, allNested, fromXML, getAttribute, getAttributes, getAttributesOrNull, getContent, getContents, getControllerResponse, getDescription, getDisplayLength, getLabel, getLines, getName, getNested, getNested, getNestedCount, getNestedIterator, getNestedMap, getNestedOrNull, getParent, getTitle, getType, remove, removeNested, setAttribute, setControllerResponse, setDescription, setDisplayLength, setLabel, setLines, setName, setParent, setType |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Output()
public Output(String c)
c - The string contents of this Output item
public Output(String name,
String c)
throws ControllerException
name - The name of this new Output itemc - The string contents of the Output item
ControllerException| Method Detail |
public void addNested(Output o)
o - The new Output item to be nested into this onepublic void clearUsedCount()
public Object clone()
throws CloneNotSupportedException
clone in class ControllerElementCloneNotSupportedExceptionpublic String getAlignment()
public String getContent()
public String getKey()
getKey in interface Cacheablepublic String getStyle()
public long getUsedCount()
public boolean hasNested(String nestedName)
throws ControllerException
nestedName - The name to check against
ControllerException - upon errorpublic void incrementUsedCount()
public void setAlignment(String newAlignment)
newAlignment - A String suggesting an alignment to the client
when displaying this Output itempublic void setContent(String newContent)
newContent - The new contents stringpublic void setKey(String newKey)
newKey - The new Key for the outputpublic void setStyle(String newStyle)
newStyle - The new "style" to set for this output objectpublic FastStringBuffer toXML(FastStringBuffer stream)
toXML in class ControllerElementstream - The fastStringBuffer to append to
public static ControllerElement fromXML(org.w3c.dom.Node n)
throws ControllerException
n - a DOM node
ControllerException - if the nodes do not match what we expect
|
Expresso 5-5-0 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||