@Deprecated public final class ButtonBarFactory extends Object
ButtonBarBuilder2
that in turn uses the FormLayout
to lay out the bars.The button bars returned by this builder comply with popular UI style guides.
LayoutStyle
Modifier and Type | Method and Description |
---|---|
static JPanel |
buildAddRemoveBar(JButton add,
JButton remove)
Deprecated.
Builds and returns a filled button bar with Add and Remove.
|
static JPanel |
buildAddRemoveLeftBar(JButton add,
JButton remove)
Deprecated.
Builds and returns a left aligned button bar with
Add and Remove.
|
static JPanel |
buildAddRemovePropertiesBar(JButton add,
JButton remove,
JButton properties)
Deprecated.
Builds and returns a filled button bar with Add, Remove, and
Properties.
|
static JPanel |
buildAddRemovePropertiesLeftBar(JButton add,
JButton remove,
JButton properties)
Deprecated.
Builds and returns a left aligned button bar with
Add, Remove, and Properties.
|
static JPanel |
buildAddRemovePropertiesRightBar(JButton add,
JButton remove,
JButton properties)
Deprecated.
Builds and returns a right aligned button bar with
Add, Remove, and Properties.
|
static JPanel |
buildAddRemoveRightBar(JButton add,
JButton remove)
Deprecated.
Builds and returns a right aligned button bar with
Add and Remove.
|
static JPanel |
buildCenteredBar(JButton... buttons)
Deprecated.
Builds and returns a centered button bar with the given buttons.
|
static JPanel |
buildCenteredBar(JButton button1)
Deprecated.
Builds and returns a centered bar with one button.
|
static JPanel |
buildCloseBar(JButton close)
Deprecated.
Builds and returns a button bar with Close.
|
static JPanel |
buildCloseHelpBar(JButton close,
JButton help)
Deprecated.
Builds and returns a button bar with
Close and Help.
|
static JPanel |
buildGrowingBar(JButton... buttons)
Deprecated.
Builds and returns a button bar with the given buttons.
|
static JPanel |
buildGrowingBar(JButton button1)
Deprecated.
Builds and returns a filled bar with one button.
|
static JPanel |
buildHelpBar(JButton help,
JButton... buttons)
Deprecated.
Builds and returns a right aligned bar with help and other buttons.
|
static JPanel |
buildHelpBar(JButton help,
JButton button1)
Deprecated.
Builds and returns a right aligned bar with help and one button.
|
static JPanel |
buildHelpCloseBar(JButton help,
JButton close)
Deprecated.
Builds and returns a button bar with
Help and Close.
|
static JPanel |
buildHelpOKBar(JButton help,
JButton ok)
Deprecated.
Builds and returns a button bar with
Help and OK.
|
static JPanel |
buildHelpOKCancelApplyBar(JButton help,
JButton ok,
JButton cancel,
JButton apply)
Deprecated.
Builds and returns a button bar with
Help, OK, Cancel and Apply.
|
static JPanel |
buildHelpOKCancelBar(JButton help,
JButton ok,
JButton cancel)
Deprecated.
Builds and returns a button bar with
Help, OK and Cancel.
|
static JPanel |
buildLeftAlignedBar(JButton... buttons)
Deprecated.
Builds and returns a left aligned button bar with the given buttons.
|
static JPanel |
buildLeftAlignedBar(JButton button1)
Deprecated.
Builds and returns a left aligned bar with one button.
|
static JPanel |
buildLeftAlignedBar(JButton[] buttons,
boolean leftToRightButtonOrder)
Deprecated.
Builds and returns a left aligned button bar with the given buttons.
|
static JPanel |
buildOKBar(JButton ok)
Deprecated.
Builds and returns a button bar with OK.
|
static JPanel |
buildOKCancelApplyBar(JButton ok,
JButton cancel,
JButton apply)
Deprecated.
Builds and returns a button bar with OK, Cancel and Apply.
|
static JPanel |
buildOKCancelApplyHelpBar(JButton ok,
JButton cancel,
JButton apply,
JButton help)
Deprecated.
Builds and returns a button bar with
OK, Cancel, Apply and Help.
|
static JPanel |
buildOKCancelBar(JButton ok,
JButton cancel)
Deprecated.
Builds and returns a button bar with OK and Cancel.
|
static JPanel |
buildOKCancelHelpBar(JButton ok,
JButton cancel,
JButton help)
Deprecated.
Builds and returns a button bar with
OK, Cancel, and Help.
|
static JPanel |
buildOKHelpBar(JButton ok,
JButton help)
Deprecated.
Builds and returns a button bar with
OK and Help.
|
static JPanel |
buildRightAlignedBar(JButton... buttons)
Deprecated.
Builds and returns a right aligned button bar with the given buttons.
|
static JPanel |
buildRightAlignedBar(JButton button1)
Deprecated.
Builds and returns a right aligned bar with one button.
|
static JPanel |
buildRightAlignedBar(JButton[] buttons,
boolean leftToRightButtonOrder)
Deprecated.
Builds and returns a right aligned button bar with the given buttons.
|
static JPanel |
buildWizardBar(JButton[] leftAlignedButtons,
JButton back,
JButton next,
JButton[] rightAlignedButtons)
Deprecated.
Builds and returns a wizard button bar.
|
static JPanel |
buildWizardBar(JButton[] leftAlignedButtons,
JButton back,
JButton next,
JButton overlaidFinish,
JButton[] rightAlignedButtons)
Deprecated.
Builds and returns a wizard button bar.
|
static JPanel |
buildWizardBar(JButton back,
JButton next,
JButton[] rightAlignedButtons)
Deprecated.
Builds and returns a wizard button bar that consists of the back and
next buttons, and some right aligned buttons.
|
static JPanel |
buildWizardBar(JButton back,
JButton next,
JButton finish,
JButton cancel)
Deprecated.
Builds and returns a wizard button bar with:
Back, Next, Finish, Cancel.
|
static JPanel |
buildWizardBar(JButton help,
JButton back,
JButton next,
JButton finish,
JButton cancel)
Deprecated.
Builds and returns a wizard button bar with:
Help and Back, Next, Finish, Cancel.
|
public static JPanel buildLeftAlignedBar(JButton button1)
button1
- the first button to addpublic static JPanel buildLeftAlignedBar(JButton... buttons)
buttons
- an array of buttons to addpublic static JPanel buildLeftAlignedBar(JButton[] buttons, boolean leftToRightButtonOrder)
buttons
- an array of buttons to addleftToRightButtonOrder
- the order in which the buttons to addpublic static JPanel buildCenteredBar(JButton button1)
button1
- the first button to addpublic static JPanel buildCenteredBar(JButton... buttons)
buttons
- an array of buttons to addpublic static JPanel buildGrowingBar(JButton button1)
button1
- the first button to addpublic static JPanel buildGrowingBar(JButton... buttons)
buttons
- an array of buttons to addpublic static JPanel buildRightAlignedBar(JButton button1)
button1
- the first button to addpublic static JPanel buildRightAlignedBar(JButton... buttons)
buttons
- an array of buttons to addpublic static JPanel buildRightAlignedBar(JButton[] buttons, boolean leftToRightButtonOrder)
buttons
- an array of buttons to addleftToRightButtonOrder
- the order in which the buttons to addpublic static JPanel buildHelpBar(JButton help, JButton button1)
help
- the help button to add on the left sidebutton1
- the first button to addpublic static JPanel buildHelpBar(JButton help, JButton... buttons)
help
- the help button to add on the left sidebuttons
- an array of buttons to addpublic static JPanel buildCloseBar(JButton close)
close
- the Close buttonpublic static JPanel buildOKBar(JButton ok)
ok
- the OK buttonpublic static JPanel buildOKCancelBar(JButton ok, JButton cancel)
ok
- the OK buttoncancel
- the Cancel buttonpublic static JPanel buildOKCancelApplyBar(JButton ok, JButton cancel, JButton apply)
ok
- the OK buttoncancel
- the Cancel buttonapply
- the Apply buttonpublic static JPanel buildHelpCloseBar(JButton help, JButton close)
help
- the Help buttonclose
- the Close buttonpublic static JPanel buildHelpOKBar(JButton help, JButton ok)
help
- the Help buttonok
- the OK buttonpublic static JPanel buildHelpOKCancelBar(JButton help, JButton ok, JButton cancel)
help
- the Help buttonok
- the OK buttoncancel
- the Cancel buttonpublic static JPanel buildHelpOKCancelApplyBar(JButton help, JButton ok, JButton cancel, JButton apply)
help
- the Help buttonok
- the OK buttoncancel
- the Cancel buttonapply
- the Apply buttonpublic static JPanel buildCloseHelpBar(JButton close, JButton help)
close
- the Close buttonhelp
- the Help buttonpublic static JPanel buildOKHelpBar(JButton ok, JButton help)
ok
- the OK buttonhelp
- the Help buttonpublic static JPanel buildOKCancelHelpBar(JButton ok, JButton cancel, JButton help)
ok
- the OK buttoncancel
- the Cancel buttonhelp
- the Help buttonpublic static JPanel buildOKCancelApplyHelpBar(JButton ok, JButton cancel, JButton apply, JButton help)
ok
- the OK buttoncancel
- the Cancel buttonapply
- the Apply buttonhelp
- the Help buttonpublic static JPanel buildAddRemoveLeftBar(JButton add, JButton remove)
add
- the Add buttonremove
- the Remove buttonpublic static JPanel buildAddRemoveBar(JButton add, JButton remove)
add
- the Add buttonremove
- the Remove buttonpublic static JPanel buildAddRemoveRightBar(JButton add, JButton remove)
add
- the Add buttonremove
- the Remove buttonpublic static JPanel buildAddRemovePropertiesLeftBar(JButton add, JButton remove, JButton properties)
add
- the Add buttonremove
- the Remove buttonproperties
- the Properties buttonpublic static JPanel buildAddRemovePropertiesBar(JButton add, JButton remove, JButton properties)
add
- the Add buttonremove
- the Remove buttonproperties
- the Properties buttonpublic static JPanel buildAddRemovePropertiesRightBar(JButton add, JButton remove, JButton properties)
add
- the Add buttonremove
- the Remove buttonproperties
- the Properties buttonpublic static JPanel buildWizardBar(JButton back, JButton next, JButton finish, JButton cancel)
back
- the Back buttonnext
- the Next buttonfinish
- the Finish buttoncancel
- the Cancel buttonpublic static JPanel buildWizardBar(JButton help, JButton back, JButton next, JButton finish, JButton cancel)
help
- the Help buttonback
- the Back buttonnext
- the Next buttonfinish
- the Finish buttoncancel
- the Cancel buttonpublic static JPanel buildWizardBar(JButton back, JButton next, JButton[] rightAlignedButtons)
back
- the mandatory back buttonnext
- the mandatory next buttonrightAlignedButtons
- an optional array of buttons that will be
located in the bar's right hand sidepublic static JPanel buildWizardBar(JButton[] leftAlignedButtons, JButton back, JButton next, JButton[] rightAlignedButtons)
leftAlignedButtons
- an optional array of buttons that will be
positioned in the bar's left hand sideback
- the mandatory back buttonnext
- the mandatory next buttonrightAlignedButtons
- an optional array of buttons that will be
located in the bar's right hand sidepublic static JPanel buildWizardBar(JButton[] leftAlignedButtons, JButton back, JButton next, JButton overlaidFinish, JButton[] rightAlignedButtons)
overlayedFinish
parameter.leftAlignedButtons
- an optional array of buttons that will be
positioned in the bar's left hand sideback
- the mandatory back buttonnext
- the mandatory next buttonoverlaidFinish
- the optional overlaid finish buttonrightAlignedButtons
- an optional array of buttons that will be
located in the bar's right hand sideCopyright © 2012 JGoodies. All Rights Reserved.