public static class UIFragment.DefaultComponentFactory extends Object implements UIFragment.ComponentFactory
Constructor and Description |
---|
DefaultComponentFactory() |
Modifier and Type | Method and Description |
---|---|
Component |
newComponent(Element el)
Creates a new component given its XML description.
|
Object |
newConstraint(Container parent,
Element parentEl,
Component child,
Element childEl)
Creates a layout constraint for adding a child component to a parent component.
|
public Component newComponent(Element el)
UIFragment.ComponentFactory
newComponent
in interface UIFragment.ComponentFactory
el
- The XML elementpublic Object newConstraint(Container parent, Element parentEl, Component child, Element childEl)
UIFragment.ComponentFactory
newConstraint
in interface UIFragment.ComponentFactory
parent
- The parent component.parentEl
- The XML element for the parent component.child
- The child component.childEl
- The XML element for the child component.