|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface WidgetDefinition
A WidgetDefinition holds all the static information about a Widget. It's function is a lot like that of the class in Java. Users of the Cocoon Forms framework usually won't have to bother with the WidgetDefinition's, but will rather use the Widget's themselves.
Method Summary | |
---|---|
void |
checkCompleteness()
Checks whether this definition is complete since we are allowed to have partial definitions in libraries. |
Widget |
createInstance()
Creates and returns a widget based on this widget definition. |
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. |
Object |
getAttribute(String name)
Gets an attribute that has been defined on the widget's definition. |
Library |
getEnclosingLibrary()
Gets the Library object containing this definition |
FormDefinition |
getFormDefinition()
Gets the FormDefinition . |
String |
getId()
Gets id of this widget definition. |
Location |
getLocation()
Gets source location of this widget definition. |
void |
initializeFrom(WidgetDefinition definition)
Initializes this definition with values from the given other definition |
void |
setEnclosingLibrary(Library library)
Sets the Library object containing this definition (should only be used by Library itself!) |
void |
setParent(WidgetDefinition definition)
Sets the parent of this definition. |
boolean |
validate(Widget widget)
Validate a widget using the validators that were defined in its definition. |
Method Detail |
---|
void initializeFrom(WidgetDefinition definition) throws Exception
Exception
FormDefinition getFormDefinition()
FormDefinition
.
Library getEnclosingLibrary()
void setEnclosingLibrary(Library library)
void setParent(WidgetDefinition definition)
Location getLocation()
getLocation
in interface Locatable
String getId()
Object getAttribute(String name)
name
- the attribute name
boolean validate(Widget widget)
widget
- the widget
true
if validation was successful.void checkCompleteness() throws IncompletenessException
IncompletenessException
Widget createInstance()
void generateDisplayData(String name, ContentHandler contentHandler) throws SAXException
SAXException
void generateDisplayData(ContentHandler contentHandler) throws SAXException
SAXException
void generateLabel(ContentHandler contentHandler) throws SAXException
SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |