class LayoutFactory
extends BeanFactory
Base factory for creating layout managers and exposing layout constants.
| Modifiers | Name | Description |
|---|---|---|
static String |
DEFAULT_DELEGATE_PROPERTY_CONSTRAINT |
Default child attribute name for layout constraints. |
static String |
DELEGATE_PROPERTY_CONSTRAINT |
Builder context key for the child constraints attribute name. |
| Fields inherited from class | Fields |
|---|---|
class BeanFactory |
leaf |
| Type | Name and description |
|---|---|
Object |
contextPropsCached layout constants copied into the builder context. |
| Properties inherited from class | Properties |
|---|---|
class BeanFactory |
beanClass |
| Constructor and description |
|---|
LayoutFactory(Class klass)Creates a new base factory for creating layout managers and exposing layout constants |
LayoutFactory(Class klass, boolean leaf)Creates a new base factory for creating layout managers and exposing layout constants |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
addLayoutProperties(Object context, Class layoutClass)Copies layout constants into the builder context. |
|
void |
addLayoutProperties(Object context)Copies layout constants into the builder context. |
|
static Object |
constraintsAttributeDelegate(Object builder, Object node, Object attributes)Captures a constraints attribute for later child insertion. |
|
static Container |
getLayoutTarget(Container parent)Returns the container whose layout should be updated. |
|
Object |
newInstance(FactoryBuilderSupport builder, Object name, Object value, Map attributes)Creates the node handled by this factory. |
|
void |
setParent(FactoryBuilderSupport builder, Object parent, Object child)Attaches the current node to its parent when parent-specific handling is required. |
| Methods inherited from class | Name |
|---|---|
class BeanFactory |
isLeaf, newInstance |
class AbstractFactory |
isHandlesNodeChildren, isLeaf, onFactoryRegistration, onHandleNodeAttributes, onNodeChildren, onNodeCompleted, setChild, setParent |
Default child attribute name for layout constraints.
Builder context key for the child constraints attribute name.
Cached layout constants copied into the builder context.
Creates a new base factory for creating layout managers and exposing layout constants
klass - the widget class to instantiateCreates a new base factory for creating layout managers and exposing layout constants
klass - the widget class to instantiateleaf - whether created nodes are leaf nodesCopies layout constants into the builder context.
context - the builder contextlayoutClass - the layout class whose constants should be copiedCopies layout constants into the builder context.
context - the builder contextCaptures a constraints attribute for later child insertion.
builder - the factory buildernode - the current nodeattributes - the node attributesReturns the container whose layout should be updated.
parent - the parent nodeCreates the node handled by this factory.
builder - the factory buildername - the node namevalue - the node valueattributes - the node attributesAttaches the current node to its parent when parent-specific handling is required.
builder - the factory builderparent - the parent nodechild - the child nodeCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.