public abstract class AbstractBuilder extends Object
FormLayout.
ButtonBarBuilder,
ButtonStackBuilder,
PanelBuilder,
I15dPanelBuilder,
DefaultFormBuilder| Modifier and Type | Field and Description |
|---|---|
protected CellConstraints |
currentCellConstraints
Holds an instance of
CellConstraints that will be used t
specify the location, extent and alignments of the component to b
added next. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBuilder(FormLayout layout,
Container container)
Constructs an AbstractBuilde
for the given FormLayout and layout container.
|
| Modifier and Type | Method and Description |
|---|---|
protected ComponentFactory |
createComponentFactory()
Invoked when the per-instance component factory is lazily initialized.
|
int |
getColumnCount()
Returns the number of columns in the form.
|
ComponentFactory |
getComponentFactory()
Returns this builder's component factory.
|
Container |
getContainer()
Returns the container used to build the form.
|
FormLayout |
getLayout()
Returns the FormLayout instance used to build this form.
|
int |
getRowCount()
Returns the number of rows in the form.
|
void |
setComponentFactory(ComponentFactory newFactory)
Sets a new component factory for this builder
overriding the default as provided b
FormsSetup.getComponentFactoryDefault(). |
protected final CellConstraints currentCellConstraints
CellConstraints that will be used t
specify the location, extent and alignments of the component to b
added next.protected AbstractBuilder(FormLayout layout, Container container)
layout - the FormLayout to usecontainer - the layout containerNullPointerException - if layout or container is nullpublic final Container getContainer()
public final FormLayout getLayout()
public final int getColumnCount()
public final int getRowCount()
public final ComponentFactory getComponentFactory()
FormsSetup.getComponentFactoryDefault().setComponentFactory(ComponentFactory)public final void setComponentFactory(ComponentFactory newFactory)
FormsSetup.getComponentFactoryDefault().newFactory - the component factory to be used for this buildergetComponentFactory()protected ComponentFactory createComponentFactory()
FormsSetup.setComponentFactoryDefault(ComponentFactory).
Copyright © 2002-2014 JGoodies Software GmbH. All Rights Reserved.