|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jgoodies.forms.factories.Forms
public final class Forms
Provides convenience behavior for building forms.
| Method Summary | |
|---|---|
static JComponent |
border(Border border,
JComponent component)
Creates and returns a panel where component is surrounde
by the given border. |
static JComponent |
border(String emptyBorderSpec,
JComponent component)
Creates and returns a panel where component is surrounde
by an empty border as described by emptyBorderSpec. |
protected static JComponent |
buildGroupedButtonBar(AbstractButton... buttons)
Builds and returns a button bar that consists of the given buttons. |
static JComponent |
buttonBar(JComponent... buttons)
Creates and returns a panel where the given buttons are laid ou using a ButtonBarBuilder. |
static JComponent |
centered(JComponent component)
Creates and returns a panel where component is centered. |
static JComponent |
checkBoxBar(JCheckBox... checkBoxes)
Builds and returns a panel where the given check boxes are laid ou in a row. |
static JComponent |
horizontal(String gapColSpec,
JComponent... components)
Builds and returns a panel where the given components are laid ou horizontally separated by gaps as described by the give FormLayout gap (column) specification. |
static JComponent |
radioButtonBar(JRadioButton... radioButtons)
Builds and returns a panel where the given radio buttons are laid ou in a row. |
static JComponent |
single(String columnSpec,
String rowSpec,
JComponent component)
Creates and returns a panel where component is laid ou
using a FormLayout with the given column and row specifications. |
static JComponent |
vertical(String gapRowSpec,
JComponent... components)
Builds and returns a panel where the given components are laid ou vertically separated by gaps as described by the give FormLayout gap (row) specification. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static JComponent single(String columnSpec,
String rowSpec,
JComponent component)
component is laid ou
using a FormLayout with the given column and row specifications
columnSpec - a FormLayout column specification for a single columnrowSpec - a FormLayout row specification for a single rowcomponent - the component to lay out
NullPointerException - if columnSpec, rowSpec
or component is null
IllegalArgumentException - if columnSpec or rowSpec
public static JComponent centered(JComponent component)
component is centered
The panel grows both horizontally and vertically as its container grows
component - the component to center
NullPointerException - if component is null
public static JComponent border(Border border,
JComponent component)
component is surrounde
by the given border
border - the border used to surround the componentcomponent - the component to wrap
NullPointerException - if border or componentnull
public static JComponent border(String emptyBorderSpec,
JComponent component)
component is surrounde
by an empty border as described by emptyBorderSpec
component - the component to wrap
NullPointerException - if emptyBorderSpeccomponent is null
public static JComponent horizontal(String gapColSpec,
JComponent... components)
gapColSpec - describes the horizontal gap between the componentscomponents - the components to be laid out
NullPointerException - if components is null
IllegalArgumentException - if components is empty
public static JComponent vertical(String gapRowSpec,
JComponent... components)
gapRowSpec - describes the vertical gap between the componentscomponents - the components to be laid out
NullPointerException - if components is null
IllegalArgumentException - if components is emptypublic static JComponent buttonBar(JComponent... buttons)
buttons - the buttons to add to the button bar
NullPointerException - if buttons is null
IllegalArgumentException - if buttons is emptyButtonBarBuilderpublic static JComponent checkBoxBar(JCheckBox... checkBoxes)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
checkBoxes - the check boxes to lay out in a row
NullPointerException - if checkBoxes is null
IllegalArgumentException - if checkBoxes is emptypublic static JComponent radioButtonBar(JRadioButton... radioButtons)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
radioButtons - the radio buttons to lay out in a row
NullPointerException - if radioButtons is null
IllegalArgumentException - if radioButtons is emptyprotected static JComponent buildGroupedButtonBar(AbstractButton... buttons)
FocusTraversalUtils
if in the classpath.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||