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 Details

    • newComponent

      Component newComponent(Element el)

      Creates a new component given its XML description.

      Parameters
      • el: The XML element
      Returns

      A Component.

    • newConstraint

      Object newConstraint(Container parent, Element parentEl, Component child, Element childEl)

      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.