public static class UIFragment.DefaultComponentFactory
- Object
- UIFragment.DefaultComponentFactory
ImplementsUIFragment.ComponentFactory
Default component factory that is used in templates. Supports the following tags:
y
x
flow
layered
border
table
label
button
Constructors
public DefaultComponentFactory() |
Methods
public Component newComponent(Element el) | Creates a new component given its XML description. |
public Object newConstraint(Container parent, Element parentEl, Component child, Element childEl) | Creates a layout constraint for adding a child component to a parent component. |
Inherited methods
Constructor details
DefaultComponentFactory
public DefaultComponentFactory()Method details
newComponent
public Component newComponent(Element el)Creates a new component given its XML description.
Parameters
elElement- The XML element
Returns
A Component.
newConstraint
public Object newConstraint(Container parent, Element parentEl, Component child, Element childEl)Creates a layout constraint for adding a child component to a parent component.
Parameters
parentContainer- The parent component.
parentElElement- The XML element for the parent component.
childComponent- The child component.
childElElement- The XML element for the child component.
Returns
Layout constraint for adding to the parent component.