public static class UIFragment.DefaultComponentFactory

  1. Object
  2. 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

el Element
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

parent Container
The parent component.
parentEl Element
The XML element for the parent component.
child Component
The child component.
childEl Element
The XML element for the child component.

Returns

Layout constraint for adding to the parent component.