Class marimba.gui.CommandButtonWidget
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class marimba.gui.CommandButtonWidget

java.lang.Object
   |
   +----marimba.gui.Widget
           |
           +----marimba.gui.ButtonWidget
                   |
                   +----marimba.gui.CommandButtonWidget

public class CommandButtonWidget
extends ButtonWidget
A command button widget.
Version:
1.66, 01/08/97
Author:
Arthur van Hoff, Klaas Waslander

Variable Index

 o img
The image that is used for the command button.
 o isDefault
A button can be the default button.
 o mode
A CommandButton can be invisible, raised, filled, square, rounded and can contain a picture.
 o modeOptions
The possible options for the mode.
 o src
The source-file for the image.
 o sticky
A sticky button remains down or up after a mouse-click to visualize that the value remains set or unset.

Constructor Index

 o CommandButtonWidget()
Constructor
 o CommandButtonWidget(String)
Constructor
 o CommandButtonWidget(String, int)
Constructor

Method Index

 o focusInterest()
CommandButtons can only support input focus when they are not sticky and their mode is not invisible.
 o getEditor()
Get the editor.
 o getImage()
The image for the command button.
 o getMode()
Get the mode of this button.
 o getModeOptions()
Get the possible options for the mode.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getSource()
Get the source-file for the image.
 o getSticky()
This function has been replaced by isSticky().
 o handleEvent(Event)
Handle keyboard event when pressing return and do some defaultButton operations when it gets the focus.
 o imageUpdate(Image, int, int, int, int, int)
Update the image.
 o isDefault()
Check if this commandbutton is the default one.
 o isSticky()
Get the sticky-ness.
 o paintButton(Graphics)
Paint the button.
 o paintFocus(Graphics)
Paint something more when focused.
 o paintLabel(Graphics)
Paint the button label.
 o paintLabel(Graphics, String, int, int)
Paint the button label.
 o paramString(StringBuffer)
Debugging.
 o requestFocus()
A sticky commandButton cannot request the focus.
 o setDefault(boolean)
Set if this button is the default button or not.
 o setImage(Image)
Set the image for the command button.
 o setMode(int)
Set the mode for the button.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setSource(String)
Set the source-file for the image.
 o setSticky(boolean)
Set the sticky-ness.
 o start()
Start loading the image label (if any)

Variables

 o mode
  public int mode
A CommandButton can be invisible, raised, filled, square, rounded and can contain a picture.
See Also:
getMode, setMode, modeOptions
 o modeOptions
  public static Options modeOptions
The possible options for the mode.
See Also:
getModeOptions, mode
 o sticky
  public boolean sticky
A sticky button remains down or up after a mouse-click to visualize that the value remains set or unset.
See Also:
isSticky, setSticky
 o src
  public String src
The source-file for the image.
See Also:
getSource, setSource
 o isDefault
  public boolean isDefault
A button can be the default button.
See Also:
isDefault, setDefault
 o img
  public Image img
The image that is used for the command button. You can set the image by setting the source and in that way persistify it, or set the image directly.
See Also:
getImage, setImage

Constructors

 o CommandButtonWidget
  public CommandButtonWidget()
Constructor
 o CommandButtonWidget
  public CommandButtonWidget(String label)
Constructor
 o CommandButtonWidget
  public CommandButtonWidget(String label,
                             int mode)
Constructor

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class ButtonWidget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class ButtonWidget
 o getModeOptions
  public Options getModeOptions()
Get the possible options for the mode.
See Also:
modeOptions
 o isDefault
  public boolean isDefault()
Check if this commandbutton is the default one.
See Also:
isDefault
 o setDefault
  public void setDefault(boolean isDefault)
Set if this button is the default button or not.
See Also:
isDefault
 o getEditor
  public String getEditor()
Get the editor.
Overrides:
getEditor in class Widget
 o isSticky
  public boolean isSticky()
Get the sticky-ness.
See Also:
sticky
 o setSticky
  public void setSticky(boolean sticky)
Set the sticky-ness.
Overrides:
setSticky in class ButtonWidget
See Also:
sticky
 o getSource
  public String getSource()
Get the source-file for the image.
See Also:
src
 o setSource
  public void setSource(String src)
Set the source-file for the image.
See Also:
src
 o getImage
  public Image getImage()
The image for the command button.
 o setImage
  public void setImage(Image img)
Set the image for the command button.
 o getMode
  public int getMode()
Get the mode of this button.
See Also:
mode
 o setMode
  public void setMode(int mode)
Set the mode for the button.
See Also:
mode
 o start
  public void start()
Start loading the image label (if any)
Overrides:
start in class Widget
 o imageUpdate
  public boolean imageUpdate(Image newimg,
                             int flags,
                             int x,
                             int y,
                             int w,
                             int h)
Update the image.
Overrides:
imageUpdate in class Widget
 o requestFocus
  public void requestFocus()
A sticky commandButton cannot request the focus. So when the button is sticky this method won't do anything.
Overrides:
requestFocus in class Widget
 o paintLabel
  public void paintLabel(Graphics g,
                         String str,
                         int x,
                         int y)
Paint the button label.
 o paintLabel
  public void paintLabel(Graphics g)
Paint the button label.
Overrides:
paintLabel in class ButtonWidget
 o paintButton
  public void paintButton(Graphics g)
Paint the button.
Overrides:
paintButton in class ButtonWidget
 o paintFocus
  public void paintFocus(Graphics g)
Paint something more when focused.
 o handleEvent
  public boolean handleEvent(Event evt)
Handle keyboard event when pressing return and do some defaultButton operations when it gets the focus.
Overrides:
handleEvent in class ButtonWidget
 o focusInterest
  public boolean focusInterest()
CommandButtons can only support input focus when they are not sticky and their mode is not invisible.
Overrides:
focusInterest in class ButtonWidget
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class ButtonWidget
 o getSticky
  public boolean getSticky()
This function has been replaced by isSticky(). It is only here for backward compatibility but will be removed in a future version.
Overrides:
getSticky in class ButtonWidget
See Also:
isSticky

All Packages  Class Hierarchy  This Package  Previous  Next  Index