| java.lang.Object org.apache.cocoon.woody.formmodel.AbstractWidgetDefinition
All known Subclasses: org.apache.cocoon.woody.formmodel.MessagesDefinition, org.apache.cocoon.woody.formmodel.UploadDefinition, org.apache.cocoon.woody.formmodel.BooleanFieldDefinition, org.apache.cocoon.woody.formmodel.NewDefinition, org.apache.cocoon.woody.formmodel.ActionDefinition, org.apache.cocoon.woody.formmodel.AbstractContainerDefinition, org.apache.cocoon.woody.formmodel.AbstractDatatypeWidgetDefinition,
AbstractWidgetDefinition | abstract public class AbstractWidgetDefinition implements WidgetDefinition(Code) | | Provides functionality that is common across many WidgetDefinition implementations.
version: $Id: AbstractWidgetDefinition.java 433543 2006-08-22 06:22:54Z crossley $ |
getParent | public WidgetDefinition getParent()(Code) | | Gets the parent of this definition.
This method returns null for the root definition.
|
setDisplayData | public void setDisplayData(Map displayData)(Code) | | Sets the various display data for this widget. This includes the label, hint and help.
They must all be objects implementing the XMLizable interface. This approach
allows to have mixed content in these data.
Parameters: displayData - an association of {name, sax fragment} |
setLocation | protected void setLocation(String location)(Code) | | |
validate | public boolean validate(Widget widget, FormContext context)(Code) | | Validate a widget using the validators that were defined in its definition. If validation
fails, the validator has set a validation error on the widget or one of its children.
Parameters: widget - the widget Parameters: context - the form context true if validation was successful. |
|
|