|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.form.builder.AbstractFormBuilder
org.springframework.richclient.form.builder.GridBagLayoutFormBuilder
public class GridBagLayoutFormBuilder
GridBagLayoutFormBuilder.FormModelAwareGridBagLayoutBuilder
Nested Class Summary | |
---|---|
protected class |
GridBagLayoutFormBuilder.FormModelAwareGridBagLayoutBuilder
|
Constructor Summary | |
---|---|
GridBagLayoutFormBuilder(BindingFactory bindingFactory)
|
Method Summary | |
---|---|
GridBagLayoutFormBuilder |
appendLabeledField(String propertyName)
Appends a label and field to the end of the current line. |
GridBagLayoutFormBuilder |
appendLabeledField(String propertyName,
int colSpan)
Appends a label and field to the end of the current line. |
GridBagLayoutFormBuilder |
appendLabeledField(String propertyName,
JComponent field,
LabelOrientation labelOrientation)
Appends a label and field to the end of the current line. |
GridBagLayoutFormBuilder |
appendLabeledField(String propertyName,
JComponent field,
LabelOrientation labelOrientation,
int colSpan)
Appends a label and field to the end of the current line. |
GridBagLayoutFormBuilder |
appendLabeledField(String propertyName,
JComponent field,
LabelOrientation labelOrientation,
int colSpan,
int rowSpan,
boolean expandX,
boolean expandY)
Appends a label and field to the end of the current line. |
GridBagLayoutFormBuilder |
appendLabeledField(String propertyName,
LabelOrientation labelOrientation)
Appends a label and field to the end of the current line. |
GridBagLayoutFormBuilder |
appendLabeledField(String propertyName,
LabelOrientation labelOrientation,
int colSpan)
Appends a label and field to the end of the current line. |
GridBagLayoutFormBuilder |
appendSeparator()
Appends a separator (usually a horizontal line). |
GridBagLayoutFormBuilder |
appendSeparator(String labelKey)
Appends a separator (usually a horizontal line) using the provided string as the key to look in the ComponentFactory's message
bundle for the text to put along with the separator. |
GridBagLayoutBuilder |
getBuilder()
Returns the underlying GridBagLayoutFormBuilder.FormModelAwareGridBagLayoutBuilder . |
JPanel |
getPanel()
Creates and returns a JPanel with all the given components in it, using the "hints" that were provided to the builder. |
GridBagLayoutFormBuilder |
nextLine()
Ends the current line and starts a new one |
void |
setAutoSpanLastComponent(boolean autoSpanLastComponent)
|
void |
setComponentFactory(ComponentFactory componentFactory)
Set the ComponentFactory . |
void |
setShowGuidelines(boolean showGuidelines)
Should this show "guidelines"? Useful for debugging layouts. |
Methods inherited from class org.springframework.richclient.form.builder.AbstractFormBuilder |
---|
createBinding, createBinding, createDefaultBinding, createLabelFor, createPasswordField, createScrollPane, createSelector, createTextArea, getBindingFactory, getComponentFactory, getFormComponentInterceptor, getFormModel, setFormComponentInterceptorFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GridBagLayoutFormBuilder(BindingFactory bindingFactory)
Method Detail |
---|
public final GridBagLayoutBuilder getBuilder()
GridBagLayoutFormBuilder.FormModelAwareGridBagLayoutBuilder
. Should be used with
caution.
public void setComponentFactory(ComponentFactory componentFactory)
AbstractFormBuilder
ComponentFactory
.
setComponentFactory
in class AbstractFormBuilder
public GridBagLayoutFormBuilder appendLabeledField(String propertyName)
The label will be to the left of the field, and be right-justified.
The field will "grow" horizontally as space allows.
propertyName
- the name of the property to create the controls for
FormModelHelper#createLabel(String)
,
FormModelHelper#createBoundControl(String)
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, int colSpan)
The label will be to the left of the field, and be right-justified.
The field will "grow" horizontally as space allows.
propertyName
- the name of the property to create the controls forcolSpan
- the number of columns the field should span
FormModelHelper#createLabel(String)
,
FormModelHelper#createBoundControl(String)
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, LabelOrientation labelOrientation)
The label will be to the left of the field, and be right-justified.
The field will "grow" horizontally as space allows.
propertyName
- the name of the property to create the controls for
FormModelHelper#createLabel(String)
,
FormModelHelper#createBoundControl(String)
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, LabelOrientation labelOrientation, int colSpan)
The label will be to the left of the field, and be right-justified.
The field will "grow" horizontally as space allows.
propertyName
- the name of the property to create the controls forcolSpan
- the number of columns the field should span
FormModelHelper#createLabel(String)
,
FormModelHelper#createBoundControl(String)
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, JComponent field, LabelOrientation labelOrientation)
The label will be to the left of the field, and be right-justified.
The field will "grow" horizontally as space allows.
propertyName
- the name of the property to create the controls for
FormModelHelper#createLabel(String)
,
FormModelHelper#createBoundControl(String)
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, JComponent field, LabelOrientation labelOrientation, int colSpan)
The label will be to the left of the field, and be right-justified.
The field will "grow" horizontally as space allows.
propertyName
- the name of the property to create the controls forcolSpan
- the number of columns the field should span
FormModelHelper#createLabel(String)
,
FormComponentInterceptor.processLabel(String, JComponent)
public GridBagLayoutFormBuilder appendLabeledField(String propertyName, JComponent field, LabelOrientation labelOrientation, int colSpan, int rowSpan, boolean expandX, boolean expandY)
The label will be to the left of the field, and be right-justified.
The field will "grow" horizontally as space allows.
propertyName
- the name of the property to create the controls forcolSpan
- the number of columns the field should span
FormModelHelper#createLabel(String)
,
FormComponentInterceptor.processLabel(String, JComponent)
public GridBagLayoutFormBuilder appendSeparator()
nextLine()
before and after it.
public GridBagLayoutFormBuilder appendSeparator(String labelKey)
ComponentFactory's
message
bundle for the text to put along with the separator. Has an implicit
nextLine()
before and after it.
public GridBagLayoutFormBuilder nextLine()
public void setShowGuidelines(boolean showGuidelines)
public JPanel getPanel()
getPanel
in interface LayoutBuilder
public void setAutoSpanLastComponent(boolean autoSpanLastComponent)
GridBagLayoutBuilder.setAutoSpanLastComponent(boolean)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |