Package com.jgoodies.forms.factories
Class ButtonBarFactory
- java.lang.Object
-
- com.jgoodies.forms.factories.ButtonBarFactory
-
public final class ButtonBarFactory extends java.lang.ObjectA factory class that consists only of static methods to build frequently used button bars. Utilizes theButtonBarBuilderthat in turn uses theFormLayoutto lay out the bars.The button bars returned by this builder comply with popular UI style guides.
- Version:
- $Revision$
- Author:
- Karsten Lentzsch
- See Also:
ButtonBarBuilder,LayoutStyle
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.swing.JPanelbuildAddRemoveBar(javax.swing.JButton add, javax.swing.JButton remove)Builds and returns a filled button bar with Add and Remove.static javax.swing.JPanelbuildAddRemoveLeftBar(javax.swing.JButton add, javax.swing.JButton remove)Builds and returns a left aligned button bar with Add and Remove.static javax.swing.JPanelbuildAddRemovePropertiesBar(javax.swing.JButton add, javax.swing.JButton remove, javax.swing.JButton properties)Builds and returns a filled button bar with Add, Remove, and Properties.static javax.swing.JPanelbuildAddRemovePropertiesLeftBar(javax.swing.JButton add, javax.swing.JButton remove, javax.swing.JButton properties)Builds and returns a left aligned button bar with Add, Remove, and Properties.static javax.swing.JPanelbuildAddRemovePropertiesRightBar(javax.swing.JButton add, javax.swing.JButton remove, javax.swing.JButton properties)Builds and returns a right aligned button bar with Add, Remove, and Properties.static javax.swing.JPanelbuildAddRemoveRightBar(javax.swing.JButton add, javax.swing.JButton remove)Builds and returns a right aligned button bar with Add and Remove.static javax.swing.JPanelbuildCenteredBar(javax.swing.JButton button1)Builds and returns a centered bar with one button.static javax.swing.JPanelbuildCenteredBar(javax.swing.JButton[] buttons)Builds and returns a centered button bar with the given buttons.static javax.swing.JPanelbuildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a centered bar with two buttons.static javax.swing.JPanelbuildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a centered bar with three buttons.static javax.swing.JPanelbuildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a centered bar with four buttons.static javax.swing.JPanelbuildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a centered bar with five buttons.static javax.swing.JPanelbuildCloseBar(javax.swing.JButton close)Builds and returns a button bar with Close.static javax.swing.JPanelbuildCloseHelpBar(javax.swing.JButton close, javax.swing.JButton help)Builds and returns a button bar with Close and Help.static javax.swing.JPanelbuildGrowingBar(javax.swing.JButton button1)Builds and returns a filled bar with one button.static javax.swing.JPanelbuildGrowingBar(javax.swing.JButton[] buttons)Builds and returns a button bar with the given buttons.static javax.swing.JPanelbuildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a filled button bar with two buttons.static javax.swing.JPanelbuildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a filled bar with three buttons.static javax.swing.JPanelbuildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a filled bar with four buttons.static javax.swing.JPanelbuildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a filled bar with five buttons.static javax.swing.JPanelbuildHelpBar(javax.swing.JButton help, javax.swing.JButton button1)Builds and returns a right aligned bar with help and one button.static javax.swing.JPanelbuildHelpBar(javax.swing.JButton help, javax.swing.JButton[] buttons)Builds and returns a right aligned bar with help and other buttons.static javax.swing.JPanelbuildHelpBar(javax.swing.JButton help, javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a right aligned bar with help and two buttons.static javax.swing.JPanelbuildHelpBar(javax.swing.JButton help, javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a right aligned bar with help and three buttons.static javax.swing.JPanelbuildHelpBar(javax.swing.JButton help, javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a right aligned bar with help and four buttons.static javax.swing.JPanelbuildHelpCloseBar(javax.swing.JButton help, javax.swing.JButton close)Builds and returns a button bar with Help and Close.static javax.swing.JPanelbuildHelpOKBar(javax.swing.JButton help, javax.swing.JButton ok)Builds and returns a button bar with Help and OK.static javax.swing.JPanelbuildHelpOKCancelApplyBar(javax.swing.JButton help, javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton apply)Builds and returns a button bar with Help, OK, Cancel and Apply.static javax.swing.JPanelbuildHelpOKCancelBar(javax.swing.JButton help, javax.swing.JButton ok, javax.swing.JButton cancel)Builds and returns a button bar with Help, OK and Cancel.static javax.swing.JPanelbuildLeftAlignedBar(javax.swing.JButton button1)Builds and returns a left aligned bar with one button.static javax.swing.JPanelbuildLeftAlignedBar(javax.swing.JButton[] buttons)Builds and returns a left aligned button bar with the given buttons.static javax.swing.JPanelbuildLeftAlignedBar(javax.swing.JButton[] buttons, boolean leftToRightButtonOrder)Builds and returns a left aligned button bar with the given buttons.static javax.swing.JPanelbuildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a left aligned bar with two buttons.static javax.swing.JPanelbuildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a left aligned bar with three buttons.static javax.swing.JPanelbuildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a left aligned bar with four buttons.static javax.swing.JPanelbuildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a left aligned bar with five buttons.static javax.swing.JPanelbuildOKBar(javax.swing.JButton ok)Builds and returns a button bar with OK.static javax.swing.JPanelbuildOKCancelApplyBar(javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton apply)Builds and returns a button bar with OK, Cancel and Apply.static javax.swing.JPanelbuildOKCancelApplyHelpBar(javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton apply, javax.swing.JButton help)Builds and returns a button bar with OK, Cancel, Apply and Help.static javax.swing.JPanelbuildOKCancelBar(javax.swing.JButton ok, javax.swing.JButton cancel)Builds and returns a button bar with OK and Cancel.static javax.swing.JPanelbuildOKCancelHelpBar(javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton help)Builds and returns a button bar with OK, Cancel, and Help.static javax.swing.JPanelbuildOKHelpBar(javax.swing.JButton ok, javax.swing.JButton help)Builds and returns a button bar with OK and Help.static javax.swing.JPanelbuildRightAlignedBar(javax.swing.JButton button1)Builds and returns a right aligned bar with one button.static javax.swing.JPanelbuildRightAlignedBar(javax.swing.JButton[] buttons)Builds and returns a right aligned button bar with the given buttons.static javax.swing.JPanelbuildRightAlignedBar(javax.swing.JButton[] buttons, boolean leftToRightButtonOrder)Builds and returns a right aligned button bar with the given buttons.static javax.swing.JPanelbuildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a right aligned bar with two buttons.static javax.swing.JPanelbuildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a right aligned bar with three buttons.static javax.swing.JPanelbuildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a right aligned bar with four buttons.static javax.swing.JPanelbuildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a right aligned bar with five buttons.static javax.swing.JPanelbuildWizardBar(javax.swing.JButton[] leftAlignedButtons, javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton[] rightAlignedButtons)Builds and returns a wizard button bar.static javax.swing.JPanelbuildWizardBar(javax.swing.JButton[] leftAlignedButtons, javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton overlayedFinish, javax.swing.JButton[] rightAlignedButtons)Builds and returns a wizard button bar.static javax.swing.JPanelbuildWizardBar(javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton[] rightAlignedButtons)Builds and returns a wizard button bar that consists of the back and next buttons, and some right aligned buttons.static javax.swing.JPanelbuildWizardBar(javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton finish, javax.swing.JButton cancel)Builds and returns a wizard button bar with: Back, Next, Finish, Cancel.static javax.swing.JPanelbuildWizardBar(javax.swing.JButton help, javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton finish, javax.swing.JButton cancel)Builds and returns a wizard button bar with: Help and Back, Next, Finish, Cancel.
-
-
-
Method Detail
-
buildLeftAlignedBar
public static javax.swing.JPanel buildLeftAlignedBar(javax.swing.JButton button1)
Builds and returns a left aligned bar with one button.- Parameters:
button1- the first button to add- Returns:
- a button bar with the given button
-
buildLeftAlignedBar
public static javax.swing.JPanel buildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a left aligned bar with two buttons.- Parameters:
button1- the first button to addbutton2- the second button to add- Returns:
- a button bar with the given buttons
-
buildLeftAlignedBar
public static javax.swing.JPanel buildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a left aligned bar with three buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to add- Returns:
- a button bar with the given buttons
-
buildLeftAlignedBar
public static javax.swing.JPanel buildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a left aligned bar with four buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to add- Returns:
- a button bar with the given buttons
-
buildLeftAlignedBar
public static javax.swing.JPanel buildLeftAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a left aligned bar with five buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to addbutton5- the fifth button to add- Returns:
- a button bar with the given buttons
-
buildLeftAlignedBar
public static javax.swing.JPanel buildLeftAlignedBar(javax.swing.JButton[] buttons)
Builds and returns a left aligned button bar with the given buttons.- Parameters:
buttons- an array of buttons to add- Returns:
- a left aligned button bar with the given buttons
-
buildLeftAlignedBar
public static javax.swing.JPanel buildLeftAlignedBar(javax.swing.JButton[] buttons, boolean leftToRightButtonOrder)Builds and returns a left aligned button bar with the given buttons.- Parameters:
buttons- an array of buttons to addleftToRightButtonOrder- the order in which the buttons to add- Returns:
- a left aligned button bar with the given buttons
-
buildCenteredBar
public static javax.swing.JPanel buildCenteredBar(javax.swing.JButton button1)
Builds and returns a centered bar with one button.- Parameters:
button1- the first button to add- Returns:
- a button bar with the given button
-
buildCenteredBar
public static javax.swing.JPanel buildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a centered bar with two buttons.- Parameters:
button1- the first button to addbutton2- the second button to add- Returns:
- a button bar with the given buttons
-
buildCenteredBar
public static javax.swing.JPanel buildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a centered bar with three buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to add- Returns:
- a button bar with the given buttons
-
buildCenteredBar
public static javax.swing.JPanel buildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a centered bar with four buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to add- Returns:
- a button bar with the given buttons
-
buildCenteredBar
public static javax.swing.JPanel buildCenteredBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a centered bar with five buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to addbutton5- the fifth button to add- Returns:
- a button bar with the given buttons
-
buildCenteredBar
public static javax.swing.JPanel buildCenteredBar(javax.swing.JButton[] buttons)
Builds and returns a centered button bar with the given buttons.- Parameters:
buttons- an array of buttons to add- Returns:
- a centered button bar with the given buttons
-
buildGrowingBar
public static javax.swing.JPanel buildGrowingBar(javax.swing.JButton button1)
Builds and returns a filled bar with one button.- Parameters:
button1- the first button to add- Returns:
- a button bar with the given button
-
buildGrowingBar
public static javax.swing.JPanel buildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a filled button bar with two buttons.- Parameters:
button1- the first button to addbutton2- the second button to add- Returns:
- a button bar with the given buttons
-
buildGrowingBar
public static javax.swing.JPanel buildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a filled bar with three buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to add- Returns:
- a button bar with the given buttons
-
buildGrowingBar
public static javax.swing.JPanel buildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a filled bar with four buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to add- Returns:
- a button bar with the given buttons
-
buildGrowingBar
public static javax.swing.JPanel buildGrowingBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a filled bar with five buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to addbutton5- the fifth button to add- Returns:
- a button bar with the given buttons
-
buildGrowingBar
public static javax.swing.JPanel buildGrowingBar(javax.swing.JButton[] buttons)
Builds and returns a button bar with the given buttons. All button columns will grow with the bar.- Parameters:
buttons- an array of buttons to add- Returns:
- a filled button bar with the given buttons
-
buildRightAlignedBar
public static javax.swing.JPanel buildRightAlignedBar(javax.swing.JButton button1)
Builds and returns a right aligned bar with one button.- Parameters:
button1- the first button to add- Returns:
- a button bar with the given button
-
buildRightAlignedBar
public static javax.swing.JPanel buildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a right aligned bar with two buttons.- Parameters:
button1- the first button to addbutton2- the second button to add- Returns:
- a button bar with the given buttons
-
buildRightAlignedBar
public static javax.swing.JPanel buildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a right aligned bar with three buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to add- Returns:
- a button bar with the given buttons
-
buildRightAlignedBar
public static javax.swing.JPanel buildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a right aligned bar with four buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to add- Returns:
- a button bar with the given buttons
-
buildRightAlignedBar
public static javax.swing.JPanel buildRightAlignedBar(javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4, javax.swing.JButton button5)Builds and returns a right aligned bar with five buttons.- Parameters:
button1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to addbutton5- the fifth button to add- Returns:
- a button bar with the given buttons
-
buildRightAlignedBar
public static javax.swing.JPanel buildRightAlignedBar(javax.swing.JButton[] buttons)
Builds and returns a right aligned button bar with the given buttons.- Parameters:
buttons- an array of buttons to add- Returns:
- a right aligned button bar with the given buttons
-
buildRightAlignedBar
public static javax.swing.JPanel buildRightAlignedBar(javax.swing.JButton[] buttons, boolean leftToRightButtonOrder)Builds and returns a right aligned button bar with the given buttons.- Parameters:
buttons- an array of buttons to addleftToRightButtonOrder- the order in which the buttons to add- Returns:
- a right aligned button bar with the given buttons
-
buildHelpBar
public static javax.swing.JPanel buildHelpBar(javax.swing.JButton help, javax.swing.JButton button1)Builds and returns a right aligned bar with help and one button.- Parameters:
help- the help button to add on the left sidebutton1- the first button to add- Returns:
- a button bar with the given buttons
-
buildHelpBar
public static javax.swing.JPanel buildHelpBar(javax.swing.JButton help, javax.swing.JButton button1, javax.swing.JButton button2)Builds and returns a right aligned bar with help and two buttons.- Parameters:
help- the help button to add on the left sidebutton1- the first button to addbutton2- the second button to add- Returns:
- a button bar with the given buttons
-
buildHelpBar
public static javax.swing.JPanel buildHelpBar(javax.swing.JButton help, javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3)Builds and returns a right aligned bar with help and three buttons.- Parameters:
help- the help button to add on the left sidebutton1- the first button to addbutton2- the second button to addbutton3- the third button to add- Returns:
- a button bar with the given buttons
-
buildHelpBar
public static javax.swing.JPanel buildHelpBar(javax.swing.JButton help, javax.swing.JButton button1, javax.swing.JButton button2, javax.swing.JButton button3, javax.swing.JButton button4)Builds and returns a right aligned bar with help and four buttons.- Parameters:
help- the help button to add on the left sidebutton1- the first button to addbutton2- the second button to addbutton3- the third button to addbutton4- the fourth button to add- Returns:
- a button bar with the given buttons
-
buildHelpBar
public static javax.swing.JPanel buildHelpBar(javax.swing.JButton help, javax.swing.JButton[] buttons)Builds and returns a right aligned bar with help and other buttons.- Parameters:
help- the help button to add on the left sidebuttons- an array of buttons to add- Returns:
- a right aligned button bar with the given buttons
-
buildCloseBar
public static javax.swing.JPanel buildCloseBar(javax.swing.JButton close)
Builds and returns a button bar with Close.- Parameters:
close- the Close button- Returns:
- a panel that contains the button(s)
-
buildOKBar
public static javax.swing.JPanel buildOKBar(javax.swing.JButton ok)
Builds and returns a button bar with OK.- Parameters:
ok- the OK button- Returns:
- a panel that contains the button(s)
-
buildOKCancelBar
public static javax.swing.JPanel buildOKCancelBar(javax.swing.JButton ok, javax.swing.JButton cancel)Builds and returns a button bar with OK and Cancel.- Parameters:
ok- the OK buttoncancel- the Cancel button- Returns:
- a panel that contains the button(s)
-
buildOKCancelApplyBar
public static javax.swing.JPanel buildOKCancelApplyBar(javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton apply)Builds and returns a button bar with OK, Cancel and Apply.- Parameters:
ok- the OK buttoncancel- the Cancel buttonapply- the Apply button- Returns:
- a panel that contains the button(s)
-
buildHelpCloseBar
public static javax.swing.JPanel buildHelpCloseBar(javax.swing.JButton help, javax.swing.JButton close)Builds and returns a button bar with Help and Close.- Parameters:
help- the Help buttonclose- the Close button- Returns:
- a panel that contains the button(s)
-
buildHelpOKBar
public static javax.swing.JPanel buildHelpOKBar(javax.swing.JButton help, javax.swing.JButton ok)Builds and returns a button bar with Help and OK.- Parameters:
help- the Help buttonok- the OK button- Returns:
- a panel that contains the button(s)
-
buildHelpOKCancelBar
public static javax.swing.JPanel buildHelpOKCancelBar(javax.swing.JButton help, javax.swing.JButton ok, javax.swing.JButton cancel)Builds and returns a button bar with Help, OK and Cancel.- Parameters:
help- the Help buttonok- the OK buttoncancel- the Cancel button- Returns:
- a panel that contains the button(s)
-
buildHelpOKCancelApplyBar
public static javax.swing.JPanel buildHelpOKCancelApplyBar(javax.swing.JButton help, javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton apply)Builds and returns a button bar with Help, OK, Cancel and Apply.- Parameters:
help- the Help buttonok- the OK buttoncancel- the Cancel buttonapply- the Apply button- Returns:
- a panel that contains the button(s)
-
buildCloseHelpBar
public static javax.swing.JPanel buildCloseHelpBar(javax.swing.JButton close, javax.swing.JButton help)Builds and returns a button bar with Close and Help.- Parameters:
close- the Close buttonhelp- the Help button- Returns:
- a panel that contains the button(s)
-
buildOKHelpBar
public static javax.swing.JPanel buildOKHelpBar(javax.swing.JButton ok, javax.swing.JButton help)Builds and returns a button bar with OK and Help.- Parameters:
ok- the OK buttonhelp- the Help button- Returns:
- a panel that contains the button(s)
-
buildOKCancelHelpBar
public static javax.swing.JPanel buildOKCancelHelpBar(javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton help)Builds and returns a button bar with OK, Cancel, and Help.- Parameters:
ok- the OK buttoncancel- the Cancel buttonhelp- the Help button- Returns:
- a panel that contains the button(s)
-
buildOKCancelApplyHelpBar
public static javax.swing.JPanel buildOKCancelApplyHelpBar(javax.swing.JButton ok, javax.swing.JButton cancel, javax.swing.JButton apply, javax.swing.JButton help)Builds and returns a button bar with OK, Cancel, Apply and Help.- Parameters:
ok- the OK buttoncancel- the Cancel buttonapply- the Apply buttonhelp- the Help button- Returns:
- a panel that contains the button(s)
-
buildAddRemoveLeftBar
public static javax.swing.JPanel buildAddRemoveLeftBar(javax.swing.JButton add, javax.swing.JButton remove)Builds and returns a left aligned button bar with Add and Remove.- Parameters:
add- the Add buttonremove- the Remove button- Returns:
- a panel that contains the button(s)
-
buildAddRemoveBar
public static javax.swing.JPanel buildAddRemoveBar(javax.swing.JButton add, javax.swing.JButton remove)Builds and returns a filled button bar with Add and Remove.- Parameters:
add- the Add buttonremove- the Remove button- Returns:
- a panel that contains the button(s)
-
buildAddRemoveRightBar
public static javax.swing.JPanel buildAddRemoveRightBar(javax.swing.JButton add, javax.swing.JButton remove)Builds and returns a right aligned button bar with Add and Remove.- Parameters:
add- the Add buttonremove- the Remove button- Returns:
- a panel that contains the button(s)
-
buildAddRemovePropertiesLeftBar
public static javax.swing.JPanel buildAddRemovePropertiesLeftBar(javax.swing.JButton add, javax.swing.JButton remove, javax.swing.JButton properties)Builds and returns a left aligned button bar with Add, Remove, and Properties.- Parameters:
add- the Add buttonremove- the Remove buttonproperties- the Properties button- Returns:
- a panel that contains the button(s)
-
buildAddRemovePropertiesBar
public static javax.swing.JPanel buildAddRemovePropertiesBar(javax.swing.JButton add, javax.swing.JButton remove, javax.swing.JButton properties)Builds and returns a filled button bar with Add, Remove, and Properties.- Parameters:
add- the Add buttonremove- the Remove buttonproperties- the Properties button- Returns:
- a panel that contains the button(s)
-
buildAddRemovePropertiesRightBar
public static javax.swing.JPanel buildAddRemovePropertiesRightBar(javax.swing.JButton add, javax.swing.JButton remove, javax.swing.JButton properties)Builds and returns a right aligned button bar with Add, Remove, and Properties.- Parameters:
add- the Add buttonremove- the Remove buttonproperties- the Properties button- Returns:
- a panel that contains the button(s)
-
buildWizardBar
public static javax.swing.JPanel buildWizardBar(javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton finish, javax.swing.JButton cancel)Builds and returns a wizard button bar with: Back, Next, Finish, Cancel.- Parameters:
back- the Back buttonnext- the Next buttonfinish- the Finish buttoncancel- the Cancel button- Returns:
- a wizard button bar for back, next, finish, cancel
-
buildWizardBar
public static javax.swing.JPanel buildWizardBar(javax.swing.JButton help, javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton finish, javax.swing.JButton cancel)Builds and returns a wizard button bar with: Help and Back, Next, Finish, Cancel.- Parameters:
help- the Help buttonback- the Back buttonnext- the Next buttonfinish- the Finish buttoncancel- the Cancel button- Returns:
- a wizard button bar for help, back, next, finish, cancel
-
buildWizardBar
public static javax.swing.JPanel buildWizardBar(javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton[] rightAlignedButtons)Builds and returns a wizard button bar that consists of the back and next buttons, and some right aligned buttons.- Parameters:
back- the mandatory back buttonnext- the mandatory next buttonrightAlignedButtons- an optional array of buttons that will be located in the bar's right hand side- Returns:
- a wizard button bar with back, next and a bunch of buttons
-
buildWizardBar
public static javax.swing.JPanel buildWizardBar(javax.swing.JButton[] leftAlignedButtons, javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton[] rightAlignedButtons)Builds and returns a wizard button bar. It consists of some left aligned buttons, the back and next buttons, and some right aligned buttons.- Parameters:
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 side- Returns:
- a wizard button bar with back, next and a bunch of buttons
-
buildWizardBar
public static javax.swing.JPanel buildWizardBar(javax.swing.JButton[] leftAlignedButtons, javax.swing.JButton back, javax.swing.JButton next, javax.swing.JButton overlayedFinish, javax.swing.JButton[] rightAlignedButtons)Builds and returns a wizard button bar. It consists of some left aligned buttons, the back, next group, and some right aligned buttons. To allow the finish button to overlay the next button, you can optionally provide theoverlayedFinishparameter.- Parameters:
leftAlignedButtons- an optional array of buttons that will be positioned in the bar's left hand sideback- the mandatory back buttonnext- the mandatory next buttonoverlayedFinish- the optional overlayed finish buttonrightAlignedButtons- an optional array of buttons that will be located in the bar's right hand side- Returns:
- a wizard button bar with back, next and a bunch of buttons
-
-