|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.forms.builder.AbstractBuilder
public abstract class AbstractBuilder
An abstract class that minimizes the effort required to implemen
non-visual builders that use the FormLayout.
ButtonBarBuilder,
ButtonStackBuilder,
PanelBuilder,
I15dPanelBuilder,
DefaultFormBuilder| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
AbstractBuilder(FormLayout layout,
Container container)
Constructs an AbstractBuilde for the given FormLayout and layout container. |
| Method Summary | |
|---|---|
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. |
static ComponentFactory |
getComponentFactoryDefault()
Returns the factory that is used as default for new builder' as they are created. |
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 getComponentFactoryDefault(). |
static void |
setComponentFactoryDefault(ComponentFactory factory)
Sets the global default that is used to initialize the per-instanc component factory. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final CellConstraints currentCellConstraints
CellConstraints that will be used t
specify the location, extent and alignments of the component to b
added next.
| Constructor Detail |
|---|
protected AbstractBuilder(FormLayout layout,
Container container)
layout - the FormLayout to usecontainer - the layout container
NullPointerException - if layout or container is null| Method Detail |
|---|
public static ComponentFactory getComponentFactoryDefault()
DefaultComponentFactory.
public static void setComponentFactoryDefault(ComponentFactory factory)
factory - the factory to be used for all new builder instance
that do not override the defaultpublic final Container getContainer()
public final FormLayout getLayout()
public final int getColumnCount()
public final int getRowCount()
public final ComponentFactory getComponentFactory()
getComponentFactoryDefault().
setComponentFactory(ComponentFactory)public final void setComponentFactory(ComponentFactory newFactory)
getComponentFactoryDefault().
newFactory - the component factory to be used for this buildergetComponentFactory()protected ComponentFactory createComponentFactory()
setComponentFactoryDefault(ComponentFactory).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||