|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 DataWidgetpublic String getId()
AbstractWidget
getId in interface WidgetgetId in class AbstractWidgetpublic void readFromRequest(FormContext formContext)
Widget
readFromRequest in interface Widgetpublic boolean validate(FormContext formContext)
WidgetWidget.generateSaxFragment(ContentHandler, Locale) method.
validate in interface Widgetvalidate in class AbstractWidget
public void generateSaxFragment(ContentHandler contentHandler,
Locale locale)
throws SAXException
Widget
generateSaxFragment in interface WidgetSAXException
public void generateLabel(ContentHandler contentHandler)
throws SAXException
Widget
generateLabel in interface WidgetgenerateLabel in class AbstractWidgetSAXExceptionpublic Object getValue()
Widget
getValue in interface WidgetgetValue in class AbstractWidgetpublic void setValue(Object object)
Widget
setValue in interface WidgetsetValue in class AbstractWidget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||