Interface UIFragment.ComponentFactory
- All Known Implementing Classes:
UIFragment.DefaultComponentFactory
- Enclosing class:
UIFragment
public static interface UIFragment.ComponentFactory
A factory for converting XML elements to Components.
See also
-
#setFactory(com.codename1.ui.UIFragment.ComponentFactory)
-
#getFactory()
-
Method Summary
Modifier and TypeMethodDescriptionnewComponent(Element el) Creates a new component given its XML description.newConstraint(Container parent, Element parentEl, Component child, Element childEl) Creates a layout constraint for adding a child component to a parent component.
-
Method Details
-
newComponent
-
newConstraint
Creates a layout constraint for adding a child component to a parent component.
Parameters
-
parent: The parent component. -
parentEl: The XML element for the parent component. -
child: The child component. -
childEl: The XML element for the child component.
Returns
Layout constraint for adding to the parent component.
-
-