public class FormBuilder
extends java.lang.Object
UI.PanelFactory
for non-trivial formsConstructor and Description |
---|
FormBuilder() |
Modifier and Type | Method and Description |
---|---|
FormBuilder |
addComponent(javax.swing.JComponent component) |
FormBuilder |
addComponent(javax.swing.JComponent component,
int topInset) |
FormBuilder |
addComponentFillVertically(javax.swing.JComponent component,
int topInset) |
FormBuilder |
addComponentToRightColumn(javax.swing.JComponent component) |
FormBuilder |
addComponentToRightColumn(javax.swing.JComponent component,
int topInset) |
FormBuilder |
addLabeledComponent(javax.swing.JComponent label,
javax.swing.JComponent component) |
FormBuilder |
addLabeledComponent(javax.swing.JComponent label,
javax.swing.JComponent component,
boolean labelOnTop) |
FormBuilder |
addLabeledComponent(javax.swing.JComponent label,
javax.swing.JComponent component,
int topInset) |
FormBuilder |
addLabeledComponent(javax.swing.JComponent label,
javax.swing.JComponent component,
int topInset,
boolean labelOnTop) |
FormBuilder |
addLabeledComponent(java.lang.String labelText,
javax.swing.JComponent component) |
FormBuilder |
addLabeledComponent(java.lang.String labelText,
javax.swing.JComponent component,
boolean labelOnTop) |
FormBuilder |
addLabeledComponent(java.lang.String labelText,
javax.swing.JComponent component,
int topInset) |
FormBuilder |
addLabeledComponent(java.lang.String labelText,
javax.swing.JComponent component,
int topInset,
boolean labelOnTop) |
FormBuilder |
addLabeledComponentFillVertically(java.lang.String labelText,
javax.swing.JComponent component) |
FormBuilder |
addSeparator() |
FormBuilder |
addSeparator(int topInset) |
FormBuilder |
addTooltip(java.lang.String text) |
FormBuilder |
addVerticalGap(int height) |
static FormBuilder |
createFormBuilder() |
protected int |
getFill(javax.swing.JComponent component) |
int |
getLineCount() |
javax.swing.JPanel |
getPanel() |
FormBuilder |
setAlignLabelOnRight(boolean alignLabelOnRight) |
FormBuilder |
setFormLeftIndent(int formLeftIndent) |
FormBuilder |
setHorizontalGap(int horizontalGap) |
FormBuilder |
setVertical(boolean vertical) |
FormBuilder |
setVerticalGap(int verticalGap) |
public static FormBuilder createFormBuilder()
public FormBuilder addLabeledComponent(javax.swing.JComponent label, javax.swing.JComponent component)
public FormBuilder addLabeledComponent(javax.swing.JComponent label, javax.swing.JComponent component, int topInset)
public FormBuilder addLabeledComponent(javax.swing.JComponent label, javax.swing.JComponent component, boolean labelOnTop)
public FormBuilder addLabeledComponent(java.lang.String labelText, javax.swing.JComponent component)
public FormBuilder addLabeledComponent(java.lang.String labelText, javax.swing.JComponent component, int topInset)
public FormBuilder addLabeledComponent(java.lang.String labelText, javax.swing.JComponent component, boolean labelOnTop)
public FormBuilder addLabeledComponent(java.lang.String labelText, javax.swing.JComponent component, int topInset, boolean labelOnTop)
public FormBuilder addComponent(javax.swing.JComponent component)
public FormBuilder addComponent(javax.swing.JComponent component, int topInset)
public FormBuilder addComponentFillVertically(javax.swing.JComponent component, int topInset)
public FormBuilder addSeparator(int topInset)
public FormBuilder addSeparator()
public FormBuilder addVerticalGap(int height)
public FormBuilder addTooltip(java.lang.String text)
public FormBuilder addComponentToRightColumn(javax.swing.JComponent component)
public FormBuilder addComponentToRightColumn(javax.swing.JComponent component, int topInset)
public FormBuilder addLabeledComponent(javax.swing.JComponent label, javax.swing.JComponent component, int topInset, boolean labelOnTop)
public FormBuilder addLabeledComponentFillVertically(java.lang.String labelText, javax.swing.JComponent component)
protected int getFill(javax.swing.JComponent component)
public javax.swing.JPanel getPanel()
public int getLineCount()
public FormBuilder setAlignLabelOnRight(boolean alignLabelOnRight)
public FormBuilder setVertical(boolean vertical)
public FormBuilder setVerticalGap(int verticalGap)
public FormBuilder setHorizontalGap(int horizontalGap)
public FormBuilder setFormLeftIndent(int formLeftIndent)