|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.form.builder.AbstractFormBuilder
org.springframework.richclient.form.builder.FormLayoutFormBuilder
public class FormLayoutFormBuilder
Layout builder based on the JGoodies Framework.
Shortcuts have been provided to directly place a local and a component. For this, you provide the coordinates for the label (x, y), and the component will be places (x + 2, y). If width or height spanning is provided, this will be applied to the component.
FormBuilder builder = new FormBuilder(getBindingFactory(), myLayout); //... add everything ... JPanel myFirstPanel = builder.getPanel(); // set new layout, new panel builder.setPanel(mySecondLayout); //... add everything ... JPanel mySecondPanel = builder.getPanel();
Nested Class Summary | |
---|---|
static class |
FormLayoutFormBuilder.FormModelEnabledListener
|
Field Summary | |
---|---|
static String |
ALIGN_LEFT_BOTTOM
|
static String |
ALIGN_LEFT_CENTER
|
static String |
ALIGN_LEFT_TOP
|
static String |
ALIGN_RIGHT_BOTTOM
|
static String |
ALIGN_RIGHT_CENTER
|
static String |
ALIGN_RIGHT_TOP
|
Constructor Summary | |
---|---|
FormLayoutFormBuilder(BindingFactory bindingFactory,
com.jgoodies.forms.layout.FormLayout layout)
Constructor. |
|
FormLayoutFormBuilder(BindingFactory bindingFactory,
com.jgoodies.forms.layout.FormLayout layout,
JPanel panel)
Constructor. |
Method Summary | |
---|---|
JComponent |
addBinding(Binding binding)
Add a binder to column 1 and the current row. |
JComponent |
addBinding(Binding binding,
int column)
Add a binder to a column and the current row. |
JComponent |
addBinding(Binding binding,
int column,
int row)
Add a binder to a column and a row. |
JComponent |
addBinding(Binding binding,
int column,
int row,
int widthSpan,
int heightSpan)
Add a binder to a column and a row with width and height spanning. |
void |
addComponent(JComponent component)
|
void |
addComponent(JComponent component,
int column)
|
void |
addComponent(JComponent component,
int column,
int row)
|
void |
addComponent(JComponent component,
int column,
int row,
int widthSpan,
int heightSpan)
|
void |
addComponent(JComponent component,
int column,
int row,
int widthSpan,
int heightSpan,
String attributes)
|
void |
addHorizontalSeparator()
|
void |
addHorizontalSeparator(int widthSpan)
|
void |
addHorizontalSeparator(int column,
int widthSpan)
|
void |
addHorizontalSeparator(int column,
int row,
int widthSpan)
|
void |
addHorizontalSeparator(String text)
|
void |
addHorizontalSeparator(String text,
int widthSpan)
|
void |
addHorizontalSeparator(String text,
int column,
int widthSpan)
|
JLabel |
addLabel(String property)
|
JLabel |
addLabel(String property,
int column)
|
JLabel |
addLabel(String property,
int column,
int row)
|
JLabel |
addLabel(String property,
int column,
int row,
String attributes)
|
JLabel |
addLabel(String property,
JComponent forComponent,
int column,
int row)
|
JLabel |
addLabel(String property,
JComponent forComponent,
int column,
int row,
int widthSpan,
int heightSpan,
String attributes)
|
JComponent |
addNestedPropertyReadOnly(String property,
String nestedProperty)
|
JComponent |
addNestedPropertyReadOnly(String property,
String nestedProperty,
int column)
|
JComponent |
addNestedPropertyReadOnly(String property,
String nestedProperty,
int column,
int row)
|
JComponent |
addNestedPropertyReadOnly(String property,
String nestedProperty,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addNestedPropertyReadOnlyAndLabel(String property,
String nestedProperty)
|
JComponent[] |
addNestedPropertyReadOnlyAndLabel(String property,
String nestedProperty,
int column)
|
JComponent[] |
addNestedPropertyReadOnlyAndLabel(String property,
String nestedProperty,
int column,
int row)
|
JComponent[] |
addNestedPropertyReadOnlyAndLabel(String property,
String nestedProperty,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent |
addPasswordField(String propertyName)
|
JComponent |
addPasswordField(String propertyName,
int column)
|
JComponent |
addPasswordField(String propertyName,
int column,
int row)
|
JComponent |
addPasswordField(String propertyName,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addPasswordFieldAndLabel(String propertyName)
|
JComponent[] |
addPasswordFieldAndLabel(String propertyName,
int column)
|
JComponent[] |
addPasswordFieldAndLabel(String propertyName,
int column,
int row)
|
JComponent[] |
addPasswordFieldAndLabel(String propertyName,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addPasswordFieldAndLabel(String propertyName,
int column,
int row,
int widthSpan,
int heightSpan,
String attributes)
|
JComponent[] |
addPasswordFieldAndLabel(String propertyName,
int column,
int row,
String attributes)
|
JComponent |
addProperty(String property)
Add a property to column 1 and the current row. |
JComponent |
addProperty(String property,
int column)
Add a property to a column and the current row. |
JComponent |
addProperty(String property,
int column,
int row)
|
JComponent |
addProperty(String property,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent |
addProperty(String property,
String binderId)
|
JComponent |
addProperty(String property,
String binderId,
int column)
|
JComponent |
addProperty(String property,
String binderId,
int column,
int row)
|
JComponent |
addProperty(String property,
String binderId,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent |
addProperty(String property,
String binderId,
Map<?,?> contextMap)
|
JComponent |
addProperty(String property,
String binderId,
Map<?,?> contextMap,
int column)
|
JComponent |
addProperty(String property,
String binderId,
Map<?,?> contextMap,
int column,
int row)
|
JComponent |
addProperty(String property,
String binderId,
Map<?,?> contextMap,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addPropertyAndLabel(String property)
|
JComponent[] |
addPropertyAndLabel(String property,
int column)
|
JComponent[] |
addPropertyAndLabel(String property,
int column,
int row)
|
JComponent[] |
addPropertyAndLabel(String property,
int column,
int row,
int widthSpan)
|
JComponent[] |
addPropertyAndLabel(String property,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addPropertyAndLabel(String property,
int column,
int row,
int widthSpan,
int heightSpan,
String attributes)
|
JComponent[] |
addPropertyAndLabel(String property,
int column,
int row,
int widthSpan,
String attributes)
|
JComponent[] |
addPropertyAndLabel(String property,
int column,
int row,
String attributes)
|
JComponent[] |
addPropertyAndLabel(String property,
int column,
String binderId)
|
JComponent[] |
addPropertyAndLabel(String property,
String binderId)
|
JComponent[] |
addPropertyAndLabel(String property,
String binderId,
int column,
int row)
|
JComponent[] |
addPropertyAndLabel(String property,
String binderId,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addPropertyAndLabel(String property,
String binderId,
int column,
int row,
int widthSpan,
int heightSpan,
String attributes)
|
JComponent[] |
addPropertyAndLabel(String property,
String binderId,
int column,
int row,
int widthSpan,
String attributes)
|
JComponent[] |
addPropertyAndLabel(String property,
String binderId,
int column,
int row,
String attributes)
|
JComponent[] |
addTextArea(String propertyName)
|
JComponent[] |
addTextArea(String propertyName,
int column)
|
JComponent[] |
addTextArea(String propertyName,
int column,
int row)
|
JComponent[] |
addTextArea(String propertyName,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addTextArea(String propertyName,
int column,
int row,
int widthSpan,
int heightSpan,
int vsbPolicy,
int hsbPolicy)
|
JComponent[] |
addTextAreaAndLabel(String propertyName,
int column,
int row)
|
JComponent[] |
addTextAreaAndLabel(String propertyName,
int column,
int row,
int widthSpan,
int heightSpan)
|
JComponent[] |
addTextAreaAndLabel(String propertyName,
int column,
int row,
int widthSpan,
int heightSpan,
String attributes)
|
JComponent[] |
addTextAreaAndLabel(String propertyName,
int column,
int row,
String attributes)
|
void |
addVerticalSeparator()
|
void |
addVerticalSeparator(int heightSpan)
|
void |
addVerticalSeparator(int column,
int heightSpan)
|
void |
addVerticalSeparator(int column,
int row,
int heightSpan)
|
FormLayoutFormBuilder.FormModelEnabledListener |
getFormModelEnabledListener()
|
JPanel |
getPanel()
|
int |
getRow()
Returns the current row. |
FormLayoutFormBuilder |
nextRow()
Move to the next line, minding the line gap |
FormLayoutFormBuilder |
nextRow(com.jgoodies.forms.layout.RowSpec rowSpec)
|
FormLayoutFormBuilder |
nextRow(String rowSpec)
|
void |
setBorder(Border border)
Set the border for the panel. |
void |
setComponentAttributes(String attributes)
|
void |
setLabelAttributes(String attributes)
|
void |
setLayout(com.jgoodies.forms.layout.FormLayout layout)
Create a new panel with the provided layout en default DIALOG_BORDER. |
void |
setLayout(com.jgoodies.forms.layout.FormLayout layout,
JPanel panel)
Set a panel with the provided layout layout. |
void |
setRow(int row)
Sets the current row |
Methods inherited from class org.springframework.richclient.form.builder.AbstractFormBuilder |
---|
createBinding, createBinding, createDefaultBinding, createLabelFor, createPasswordField, createScrollPane, createSelector, createTextArea, getBindingFactory, getComponentFactory, getFormComponentInterceptor, getFormModel, setComponentFactory, setFormComponentInterceptorFactory |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String ALIGN_LEFT_TOP
public static final String ALIGN_LEFT_CENTER
public static final String ALIGN_LEFT_BOTTOM
public static final String ALIGN_RIGHT_TOP
public static final String ALIGN_RIGHT_CENTER
public static final String ALIGN_RIGHT_BOTTOM
Constructor Detail |
---|
public FormLayoutFormBuilder(BindingFactory bindingFactory, com.jgoodies.forms.layout.FormLayout layout)
bindingFactory
- BindingFactory.layout
- JGoodies FormLayoutpublic FormLayoutFormBuilder(BindingFactory bindingFactory, com.jgoodies.forms.layout.FormLayout layout, JPanel panel)
bindingFactory
- BindingFactory.layout
- JGoodies FormLayoutpanel
- JPanel on which the builder will place the components.Method Detail |
---|
public FormLayoutFormBuilder nextRow()
public FormLayoutFormBuilder nextRow(String rowSpec)
public FormLayoutFormBuilder nextRow(com.jgoodies.forms.layout.RowSpec rowSpec)
public int getRow()
public void setRow(int row)
row
- The current rowpublic void setLayout(com.jgoodies.forms.layout.FormLayout layout)
layout
- JGoodies FormLayoutpublic void setLayout(com.jgoodies.forms.layout.FormLayout layout, JPanel panel)
layout
- JGoodies FormLayoutpanel
- JPanel on which the builder will place the components.public void setBorder(Border border)
border
- The border for the panelpublic JComponent addBinding(Binding binding)
binding
- The binding to addaddBinding(Binding, int, int)
public JComponent addBinding(Binding binding, int column)
binding
- The binding to addcolumn
- The column on which the binding must be added
addBinding(Binding, int, int)
public JComponent addBinding(Binding binding, int column, int row)
binding
- The binding to addcolumn
- The column on which the binding must be addedcolumn
- The row on which the binding must be added
addBinding(Binding, int, int, int, int)
public JComponent addBinding(Binding binding, int column, int row, int widthSpan, int heightSpan)
public JComponent addProperty(String property)
addProperty(String, int, int)
public JComponent addProperty(String property, int column)
addProperty(String, int, int)
public JComponent addProperty(String property, String binderId)
public JComponent addProperty(String property, String binderId, Map<?,?> contextMap)
public JComponent addProperty(String property, String binderId, int column)
public JComponent addProperty(String property, String binderId, Map<?,?> contextMap, int column)
public JComponent addProperty(String property, int column, int row)
public JComponent addProperty(String property, String binderId, int column, int row)
public JComponent addProperty(String property, String binderId, Map<?,?> contextMap, int column, int row)
public JComponent addProperty(String property, int column, int row, int widthSpan, int heightSpan)
public JComponent addProperty(String property, String binderId, int column, int row, int widthSpan, int heightSpan)
public JComponent addProperty(String property, String binderId, Map<?,?> contextMap, int column, int row, int widthSpan, int heightSpan)
public JLabel addLabel(String property)
public JLabel addLabel(String property, int column)
public JLabel addLabel(String property, int column, int row)
public JLabel addLabel(String property, int column, int row, String attributes)
public JLabel addLabel(String property, JComponent forComponent, int column, int row)
public JLabel addLabel(String property, JComponent forComponent, int column, int row, int widthSpan, int heightSpan, String attributes)
public void addComponent(JComponent component)
public void addComponent(JComponent component, int column)
public void addComponent(JComponent component, int column, int row)
public void addComponent(JComponent component, int column, int row, int widthSpan, int heightSpan)
public void addComponent(JComponent component, int column, int row, int widthSpan, int heightSpan, String attributes)
public JComponent[] addPropertyAndLabel(String property)
public JComponent[] addPropertyAndLabel(String property, int column)
public JComponent[] addPropertyAndLabel(String property, String binderId)
public JComponent[] addPropertyAndLabel(String property, int column, String binderId)
public JComponent[] addPropertyAndLabel(String property, int column, int row)
public JComponent[] addPropertyAndLabel(String property, String binderId, int column, int row)
public JComponent[] addPropertyAndLabel(String property, int column, int row, String attributes)
public JComponent[] addPropertyAndLabel(String property, String binderId, int column, int row, String attributes)
public JComponent[] addPropertyAndLabel(String property, int column, int row, int widthSpan)
public JComponent[] addPropertyAndLabel(String property, int column, int row, int widthSpan, String attributes)
public JComponent[] addPropertyAndLabel(String property, String binderId, int column, int row, int widthSpan, String attributes)
public JComponent[] addPropertyAndLabel(String property, int column, int row, int widthSpan, int heightSpan)
public JComponent[] addPropertyAndLabel(String property, String binderId, int column, int row, int widthSpan, int heightSpan)
public JComponent[] addPropertyAndLabel(String property, int column, int row, int widthSpan, int heightSpan, String attributes)
public JComponent[] addPropertyAndLabel(String property, String binderId, int column, int row, int widthSpan, int heightSpan, String attributes)
public JPanel getPanel()
public void setLabelAttributes(String attributes)
public void setComponentAttributes(String attributes)
public JComponent[] addTextArea(String propertyName, int column, int row)
public JComponent[] addTextArea(String propertyName, int column)
public JComponent[] addTextArea(String propertyName)
public JComponent[] addTextArea(String propertyName, int column, int row, int widthSpan, int heightSpan)
public JComponent[] addTextArea(String propertyName, int column, int row, int widthSpan, int heightSpan, int vsbPolicy, int hsbPolicy)
public JComponent[] addTextAreaAndLabel(String propertyName, int column, int row)
public JComponent[] addTextAreaAndLabel(String propertyName, int column, int row, String attributes)
public JComponent[] addTextAreaAndLabel(String propertyName, int column, int row, int widthSpan, int heightSpan)
public JComponent[] addTextAreaAndLabel(String propertyName, int column, int row, int widthSpan, int heightSpan, String attributes)
public JComponent addPasswordField(String propertyName, int column)
public JComponent addPasswordField(String propertyName)
public JComponent addPasswordField(String propertyName, int column, int row)
public JComponent addPasswordField(String propertyName, int column, int row, int widthSpan, int heightSpan)
public JComponent[] addPasswordFieldAndLabel(String propertyName, int column)
public JComponent[] addPasswordFieldAndLabel(String propertyName)
public JComponent[] addPasswordFieldAndLabel(String propertyName, int column, int row)
public JComponent[] addPasswordFieldAndLabel(String propertyName, int column, int row, String attributes)
public JComponent[] addPasswordFieldAndLabel(String propertyName, int column, int row, int widthSpan, int heightSpan)
public JComponent[] addPasswordFieldAndLabel(String propertyName, int column, int row, int widthSpan, int heightSpan, String attributes)
public void addHorizontalSeparator(int column, int row, int widthSpan)
public void addHorizontalSeparator()
public void addHorizontalSeparator(int widthSpan)
public void addHorizontalSeparator(int column, int widthSpan)
public void addHorizontalSeparator(String text)
public void addHorizontalSeparator(String text, int widthSpan)
public void addHorizontalSeparator(String text, int column, int widthSpan)
public void addVerticalSeparator(int column, int row, int heightSpan)
public void addVerticalSeparator()
public void addVerticalSeparator(int heightSpan)
public void addVerticalSeparator(int column, int heightSpan)
public JComponent addNestedPropertyReadOnly(String property, String nestedProperty)
public JComponent addNestedPropertyReadOnly(String property, String nestedProperty, int column)
public JComponent addNestedPropertyReadOnly(String property, String nestedProperty, int column, int row)
public JComponent addNestedPropertyReadOnly(String property, String nestedProperty, int column, int row, int widthSpan, int heightSpan)
public JComponent[] addNestedPropertyReadOnlyAndLabel(String property, String nestedProperty)
public JComponent[] addNestedPropertyReadOnlyAndLabel(String property, String nestedProperty, int column)
public JComponent[] addNestedPropertyReadOnlyAndLabel(String property, String nestedProperty, int column, int row)
public JComponent[] addNestedPropertyReadOnlyAndLabel(String property, String nestedProperty, int column, int row, int widthSpan, int heightSpan)
public FormLayoutFormBuilder.FormModelEnabledListener getFormModelEnabledListener()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |