|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.woody.formmodel.AbstractWidget org.apache.cocoon.woody.formmodel.Output
public class Output
An Output widget can be used to show a non-editable value to the user.
An Output widget is associated with a certain
Datatype
.
An Output widget is always valid and never required.
Constructor Summary | |
---|---|
protected |
Output(OutputDefinition definition)
|
Method Summary | |
---|---|
void |
generateLabel(ContentHandler contentHandler)
Generates SAX events for the label of this widget. |
void |
generateSaxFragment(ContentHandler contentHandler,
Locale locale)
Generates an XML representation of this widget. |
Datatype |
getDatatype()
|
String |
getId()
Gets the id of this widget. |
OutputDefinition |
getOutputDefinition()
|
Object |
getValue()
Returns the value of the widget. |
void |
readFromRequest(FormContext formContext)
Lets this widget read its data from a request. |
void |
setValue(Object object)
Sets the value of this widget to the given object. |
boolean |
validate(FormContext formContext)
Validates this widget and returns the outcome. |
Methods inherited from class org.apache.cocoon.woody.formmodel.AbstractWidget |
---|
addValidator, broadcastEvent, generateItemSaxFragment, generateSaxFragment, getForm, getFullyQualifiedId, getLocation, getNamespace, getParent, getWidget, isRequired, removeValidator, setDefinition, setLocation, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.cocoon.woody.formmodel.Widget |
---|
broadcastEvent, getForm, getFullyQualifiedId, getLocation, getNamespace, getParent, getWidget, isRequired, setParent |
Constructor Detail |
---|
protected Output(OutputDefinition definition)
Method Detail |
---|
public OutputDefinition getOutputDefinition()
public Datatype getDatatype()
getDatatype
in interface DataWidget
public String getId()
AbstractWidget
getId
in interface Widget
getId
in class AbstractWidget
public void readFromRequest(FormContext formContext)
Widget
readFromRequest
in interface Widget
public boolean validate(FormContext formContext)
Widget
Widget.generateSaxFragment(ContentHandler, Locale)
method.
validate
in interface Widget
validate
in class AbstractWidget
public void generateSaxFragment(ContentHandler contentHandler, Locale locale) throws SAXException
Widget
generateSaxFragment
in interface Widget
SAXException
public void generateLabel(ContentHandler contentHandler) throws SAXException
Widget
generateLabel
in interface Widget
generateLabel
in class AbstractWidget
SAXException
public Object getValue()
Widget
getValue
in interface Widget
getValue
in class AbstractWidget
public void setValue(Object object)
Widget
setValue
in interface Widget
setValue
in class AbstractWidget
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |