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
-
down
-
-
group
-
-
label
- The label that is displayed on the button.
-
value
-
-
ButtonWidget()
-
-
focusInterest()
- All buttons supports input focus.
-
getBooleanValue()
- Get the value as a boolean.
-
getCurrent()
- Get the current button with the value in the group.
-
getGroup()
- Get the group.
-
getLabel()
- Get the label.
-
getNext()
- Get the next button in the same group that is not disabled.
-
getPrevious()
- Get the previous button in the same group that is not disabled.
-
getProperties(PropertyList)
- Get the properties of this widget.
-
getSticky()
- Get the sticky-ness.
-
getText()
- Get the label of the button.
-
getValue()
- Get the value.
-
groupCount()
- Count the number of widgets in this group.
-
handleEvent(Event)
- Handle mouse events.
-
paint(Graphics)
- Paint the button.
-
paintButton(Graphics)
- Paint the button itself.
-
paintLabel(Graphics)
- Paint the button label.
-
paramString(StringBuffer)
- Debugging.
-
setGroup(String)
- Set the group.
-
setLabel(String)
- Set the label.
-
setProperties(PropertyList)
- Set the properties of this widget.
-
setSticky(boolean)
- Set the sticky-ness.
-
setText(String)
- Set the label of the button.
-
setValue(boolean)
- Set the value of the button.
-
setValue(Object)
- Set the value.
down
public boolean down
value
public boolean value
group
public String group
label
public String label
- The label that is displayed on the button.
- See Also:
- getText, setText
ButtonWidget
public ButtonWidget()
getProperties
public void getProperties(PropertyList list)
- Get the properties of this widget.
- Overrides:
- getProperties in class Widget
setProperties
public void setProperties(PropertyList list)
- Set the properties of this widget.
- Overrides:
- setProperties in class Widget
getGroup
public String getGroup()
- Get the group.
setGroup
public void setGroup(String group)
- Set the group.
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
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
getCurrent
public ButtonWidget getCurrent()
- Get the current button with the value in the group.
- See Also:
- getNext, getPrevious, groupCount
groupCount
public int groupCount()
- Count the number of widgets in this group.
- See Also:
- getNext, getPrevious, getCurrent
getBooleanValue
public boolean getBooleanValue()
- Get the value as a boolean.
getValue
public Object getValue()
- Get the value.
- Overrides:
- getValue in class Widget
setValue
public void setValue(Object value)
- Set the value.
- Overrides:
- setValue in class Widget
setValue
public void setValue(boolean value)
- Set the value of the button.
getText
public String getText()
- Get the label of the button.
- Overrides:
- getText in class Widget
- See Also:
- label, getLabel
setText
public void setText(String label)
- Set the label of the button.
- Overrides:
- setText in class Widget
- See Also:
- label, setLabel
getLabel
public String getLabel()
- Get the label.
- See Also:
- label
setLabel
public void setLabel(String label)
- Set the label.
- See Also:
- label
getSticky
public boolean getSticky()
- Get the sticky-ness.
setSticky
public void setSticky(boolean sticky)
- Set the sticky-ness. This functions does nothing here, but is overridden in subclasses when necessary.
paintLabel
public void paintLabel(Graphics g)
- Paint the button label.
paintButton
public void paintButton(Graphics g)
- Paint the button itself.
paint
public void paint(Graphics g)
- Paint the button.
- Overrides:
- paint in class Widget
handleEvent
public boolean handleEvent(Event evt)
- Handle mouse events.
- Overrides:
- handleEvent in class Widget
focusInterest
public boolean focusInterest()
- All buttons supports input focus.
- Overrides:
- focusInterest in class Widget
paramString
public void paramString(StringBuffer buf)
- Debugging.
- Overrides:
- paramString in class Widget
All Packages Class Hierarchy This Package Previous Next Index