maspack.widgets
Class ButtonCreator
java.lang.Object
maspack.widgets.ButtonCreator
public class ButtonCreator
- extends java.lang.Object
Method Summary |
static javax.swing.JButton |
createGenericButton(javax.swing.Icon icon,
java.lang.String buttonText,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
java.awt.Dimension dim,
java.awt.event.ActionListener actionListenerObject)
generic button making function used by: createIconicButton(), and
createTextButton() |
static javax.swing.JButton |
createIconicButton(javax.swing.Icon icon,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
boolean large,
java.awt.event.ActionListener actionListener)
to create iconic button |
static javax.swing.JButton |
createTextButton(java.lang.String buttonText,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
boolean large,
java.awt.event.ActionListener actionListener)
to create button with text |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUTTON_ENABLED
public static final boolean BUTTON_ENABLED
- See Also:
- Constant Field Values
BUTTON_DISABLED
public static final boolean BUTTON_DISABLED
- See Also:
- Constant Field Values
SMALL_BUTTON_SIZE
public static final java.awt.Dimension SMALL_BUTTON_SIZE
LARGE_BUTTON_SIZE
public static final java.awt.Dimension LARGE_BUTTON_SIZE
ButtonCreator
public ButtonCreator()
createIconicButton
public static javax.swing.JButton createIconicButton(javax.swing.Icon icon,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
boolean large,
java.awt.event.ActionListener actionListener)
- to create iconic button
- Parameters:
icon
- actionCommand
- toolTip
-
- Returns:
- iconic button
createTextButton
public static javax.swing.JButton createTextButton(java.lang.String buttonText,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
boolean large,
java.awt.event.ActionListener actionListener)
- to create button with text
- Parameters:
buttonText
- actionCommand
- toolTip
-
- Returns:
- text button
createGenericButton
public static javax.swing.JButton createGenericButton(javax.swing.Icon icon,
java.lang.String buttonText,
java.lang.String actionCommand,
java.lang.String toolTip,
boolean enabled,
java.awt.Dimension dim,
java.awt.event.ActionListener actionListenerObject)
- generic button making function used by: createIconicButton(), and
createTextButton()
- Parameters:
icon
- buttonText
- actionCommand
- toolTip
-
- Returns:
- generic button