All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VAbstractButton

java.lang.Object
   |
   +----jp.kyasu.graphics.VWrapper
           |
           +----jp.kyasu.graphics.VLabel
                   |
                   +----jp.kyasu.graphics.VAbstractButton

public abstract class VAbstractButton
extends VLabel
The VAbstractButton class is the abstract base class for the visual buttons that act as the button models. The button has a boolean state that determins whether the button is pressed or not.

Version:
17 Aug 1997
Author:
Kazuki YASUMATSU
See Also:
AbstractButton

Method Index

 o canActivate()
Checks if the button has the active state and presentation.
 o clone()
Returns a clone of this button.
 o getState()
Returns the boolean state of the button.
 o isActive()
Checks if the button is active.
 o setActive(boolean)
Activates the button.
 o setState(boolean)
Sets the button to the specifed boolean state.

Methods

 o getState
 public boolean getState()
Returns the boolean state of the button.

Returns:
the boolean state of the button.
 o setState
 public void setState(boolean b)
Sets the button to the specifed boolean state.

Parameters:
b - the boolean state.
 o canActivate
 public boolean canActivate()
Checks if the button has the active state and presentation.

Returns:
true if the button has the active state; false otherwise.
 o isActive
 public boolean isActive()
Checks if the button is active.

Returns:
true if the button is active; false otherwise.
 o setActive
 public void setActive(boolean b)
Activates the button.

Parameters:
b - if true, the button becomes active.
 o clone
 public Object clone()
Returns a clone of this button.

Overrides:
clone in class VLabel

All Packages  Class Hierarchy  This Package  Previous  Next  Index