|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ComponentCreator is an interface that can be implemented to create components via the ComponentFactory. Classes that implement this interface should be instantiated and added to the ComponentFactory so that they are used in the creation of panels.
ComponentFactory
Method Summary | |
java.awt.Component |
createComponent(org.w3c.dom.Element element,
XmlPanel panel)
Given an element representing a cell in an XMLPanel, this method should construct the appropriate Component for the type that this component is looking for, setting all of the properties necessary. The XmlPanel is given in case it is needed to determine properties of the component. |
java.lang.String[] |
getComponentTypes()
|
Method Detail |
public java.awt.Component createComponent(org.w3c.dom.Element element, XmlPanel panel)
element
- XML element to parse throughpanel
- The XmlPanel that this component is being placed into - for
reference only!. This method should not mutate the panel
in any way. It is also possible that this parameter could be
null, so always check first.
java.awt.Component
java.lang.IllegalArgumentException
- Throw this exception if there is a problem in instantiating
the component - along with a good description of what the
problem was!public java.lang.String[] getComponentTypes()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |