public final class Forms extends Object
| Modifier and Type | Method and Description |
|---|---|
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. |
static JComponent |
buttonBar(JComponent... buttons)
Creates and returns a panel where the given button
are laid out horizontally using a ButtonBarBuilder.
|
static JComponent |
buttonStack(JComponent... buttons)
Creates and returns a panel where the given button
are laid out vertically using a ButtonStackBuilder.
|
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 boxe
are laid out horizontally.
|
static JComponent |
checkBoxStack(JCheckBox... checkBoxes)
Builds and returns a panel where the given check boxe
are laid out vertically.
|
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 button
are laid horizontally.
|
static JComponent |
radioButtonStack(JRadioButton... radioButtons)
Builds and returns a panel where the given radio button
are laid vertically.
|
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.
|
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 outNullPointerException - if columnSpec, rowSpec
or component is nullIllegalArgumentException - if columnSpec or rowSpecpublic static JComponent centered(JComponent component)
component is centered
The panel grows both horizontally and vertically as its container grows
component - the component to centerNullPointerException - if component is nullpublic 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 wrapNullPointerException - if border or componentnullpublic static JComponent border(String emptyBorderSpec, JComponent component)
component is surrounde
by an empty border as described by emptyBorderSpec
component - the component to wrapNullPointerException - if emptyBorderSpeccomponent is nullpublic static JComponent horizontal(String gapColSpec, JComponent... components)
gapColSpec - describes the horizontal gap between the componentscomponents - the components to be laid outNullPointerException - if components is nullIllegalArgumentException - if components is emptypublic static JComponent vertical(String gapRowSpec, JComponent... components)
gapRowSpec - describes the vertical gap between the componentscomponents - the components to be laid outNullPointerException - if components is nullIllegalArgumentException - if components is emptypublic static JComponent buttonBar(JComponent... buttons)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
buttons - the buttons to add to the button barNullPointerException - if buttons is nullIllegalArgumentException - if buttons is emptyButtonBarBuilderpublic static JComponent buttonStack(JComponent... buttons)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
buttons - the buttons to add to the button stackNullPointerException - if buttons is nullIllegalArgumentException - if buttons is emptyButtonStackBuilderpublic static JComponent checkBoxBar(JCheckBox... checkBoxes)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
checkBoxes - the check boxes to lay out in a rowNullPointerException - if checkBoxes is nullIllegalArgumentException - if checkBoxes is emptypublic static JComponent checkBoxStack(JCheckBox... checkBoxes)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
checkBoxes - the check boxes to lay out in a stackNullPointerException - if checkBoxes is nullIllegalArgumentException - if checkBoxes is emptypublic static JComponent radioButtonBar(JRadioButton... radioButtons)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
radioButtons - the radio buttons to lay out in a rowNullPointerException - if radioButtons is nullIllegalArgumentException - if radioButtons is emptypublic static JComponent radioButtonStack(JRadioButton... radioButtons)
com.jgoodies.jsdl.common.focus.FocusTraversalUtils
radioButtons - the radio buttons to lay out in a stackNullPointerException - if radioButtons is nullIllegalArgumentException - if radioButtons is emptyCopyright © 2002-2014 JGoodies Software GmbH. All Rights Reserved.