|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
public abstract class AbstractWidgetDefinition
Provides functionality that is common across many WidgetDefinition implementations.
Field Summary | |
---|---|
protected WidgetDefinition |
parent
|
Constructor Summary | |
---|---|
AbstractWidgetDefinition()
|
Method Summary | |
---|---|
void |
addValidator(WidgetValidator validator)
|
void |
generateDisplayData(ContentHandler contentHandler)
Generates SAX events for display data. |
void |
generateDisplayData(String name,
ContentHandler contentHandler)
Generates SAX events for named display data. |
void |
generateLabel(ContentHandler contentHandler)
Generates SAX events for the label of this widget. |
FormDefinition |
getFormDefinition()
Gets the FormDefinition . |
String |
getId()
Gets id of this widget definition. |
String |
getLocation()
Gets source location of this widget definition. |
WidgetDefinition |
getParent()
Gets the parent of this definition. |
void |
setDisplayData(Map displayData)
Sets the various display data for this widget. |
protected void |
setId(String id)
|
protected void |
setLocation(String location)
|
void |
setParent(WidgetDefinition definition)
Sets the parent of this definition |
boolean |
validate(Widget widget,
FormContext context)
Validate a widget using the validators that were defined in its definition. |
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.WidgetDefinition |
---|
createInstance |
Field Detail |
---|
protected WidgetDefinition parent
Constructor Detail |
---|
public AbstractWidgetDefinition()
Method Detail |
---|
public FormDefinition getFormDefinition()
WidgetDefinition
FormDefinition
.
getFormDefinition
in interface WidgetDefinition
public void setParent(WidgetDefinition definition)
setParent
in interface WidgetDefinition
public WidgetDefinition getParent()
protected void setLocation(String location)
public String getLocation()
WidgetDefinition
getLocation
in interface WidgetDefinition
public String getId()
WidgetDefinition
getId
in interface WidgetDefinition
protected void setId(String id)
public void generateLabel(ContentHandler contentHandler) throws SAXException
WidgetDefinition
generateLabel
in interface WidgetDefinition
SAXException
public void setDisplayData(Map displayData)
displayData
- an association of {name, sax fragment}public void addValidator(WidgetValidator validator)
public void generateDisplayData(String name, ContentHandler contentHandler) throws SAXException
WidgetDefinition
generateDisplayData
in interface WidgetDefinition
SAXException
public void generateDisplayData(ContentHandler contentHandler) throws SAXException
WidgetDefinition
generateDisplayData
in interface WidgetDefinition
SAXException
public boolean validate(Widget widget, FormContext context)
widget
- the widgetcontext
- the form context
true
if validation was successful.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |