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

Class marimba.gui.ButtonWidget

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

public class ButtonWidget
extends Widget
A button widget. This is the base class for all button-like widgets.
Version:
1.29, 11/28/96
Author:
Arthur van Hoff

Variable Index

 o down
 o group
 o label
The label that is displayed on the button.
 o value

Constructor Index

 o ButtonWidget()

Method Index

 o focusInterest()
All buttons supports input focus.
 o getBooleanValue()
Get the value as a boolean.
 o getCurrent()
Get the current button with the value in the group.
 o getGroup()
Get the group.
 o getLabel()
Get the label.
 o getNext()
Get the next button in the same group that is not disabled.
 o getPrevious()
Get the previous button in the same group that is not disabled.
 o getProperties(PropertyList)
Get the properties of this widget.
 o getSticky()
Get the sticky-ness.
 o getText()
Get the label of the button.
 o getValue()
Get the value.
 o groupCount()
Count the number of widgets in this group.
 o handleEvent(Event)
Handle mouse events.
 o paint(Graphics)
Paint the button.
 o paintButton(Graphics)
Paint the button itself.
 o paintLabel(Graphics)
Paint the button label.
 o paramString(StringBuffer)
Debugging.
 o setGroup(String)
Set the group.
 o setLabel(String)
Set the label.
 o setProperties(PropertyList)
Set the properties of this widget.
 o setSticky(boolean)
Set the sticky-ness.
 o setText(String)
Set the label of the button.
 o setValue(boolean)
Set the value of the button.
 o setValue(Object)
Set the value.

Variables

 o down
  public boolean down
 o value
  public boolean value
 o group
  public String group
 o label
  public String label
The label that is displayed on the button.
See Also:
getText, setText

Constructors

 o ButtonWidget
  public ButtonWidget()

Methods

 o getProperties
  public void getProperties(PropertyList list)
Get the properties of this widget.
Overrides:
getProperties in class Widget
 o setProperties
  public void setProperties(PropertyList list)
Set the properties of this widget.
Overrides:
setProperties in class Widget
 o getGroup
  public String getGroup()
Get the group.
 o setGroup
  public void setGroup(String group)
Set the group.
 o getNext
  public ButtonWidget getNext()
Get the next button in the same group that is not disabled.
Returns:
This button if no group has been specified or this is the last button in the group, otherwise the next button.
See Also:
getPrevious, getCurrent, groupCount
 o getPrevious
  public ButtonWidget getPrevious()
Get the previous button in the same group that is not disabled.
Returns:
This button if no group has been specified or this is the first button in the group, otherwise the previous button.
See Also:
getNext, getCurrent, groupCount
 o getCurrent
  public ButtonWidget getCurrent()
Get the current button with the value in the group.
See Also:
getNext, getPrevious, groupCount
 o groupCount
  public int groupCount()
Count the number of widgets in this group.
See Also:
getNext, getPrevious, getCurrent
 o getBooleanValue
  public boolean getBooleanValue()
Get the value as a boolean.
 o getValue
  public Object getValue()
Get the value.
Overrides:
getValue in class Widget
 o setValue
  public void setValue(Object value)
Set the value.
Overrides:
setValue in class Widget
 o setValue
  public void setValue(boolean value)
Set the value of the button.
 o getText
  public String getText()
Get the label of the button.
Overrides:
getText in class Widget
See Also:
label, getLabel
 o setText
  public void setText(String label)
Set the label of the button.
Overrides:
setText in class Widget
See Also:
label, setLabel
 o getLabel
  public String getLabel()
Get the label.
See Also:
label
 o setLabel
  public void setLabel(String label)
Set the label.
See Also:
label
 o getSticky
  public boolean getSticky()
Get the sticky-ness.
 o setSticky
  public void setSticky(boolean sticky)
Set the sticky-ness. This functions does nothing here, but is overridden in subclasses when necessary.
 o paintLabel
  public void paintLabel(Graphics g)
Paint the button label.
 o paintButton
  public void paintButton(Graphics g)
Paint the button itself.
 o paint
  public void paint(Graphics g)
Paint the button.
Overrides:
paint in class Widget
 o handleEvent
  public boolean handleEvent(Event evt)
Handle mouse events.
Overrides:
handleEvent in class Widget
 o focusInterest
  public boolean focusInterest()
All buttons supports input focus.
Overrides:
focusInterest in class Widget
 o paramString
  public void paramString(StringBuffer buf)
Debugging.
Overrides:
paramString in class Widget

All Packages  Class Hierarchy  This Package  Previous  Next  Index