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
-
canActivate()
- Checks if the button has the active state and presentation.
-
clone()
- Returns a clone of this button.
-
getState()
- Returns the boolean state of the button.
-
isActive()
- Checks if the button is active.
-
setActive(boolean)
- Activates the button.
-
setState(boolean)
- Sets the button to the specifed boolean state.
getState
public boolean getState()
- Returns the boolean state of the button.
- Returns:
- the boolean state of the button.
setState
public void setState(boolean b)
- Sets the button to the specifed boolean state.
- Parameters:
- b - the boolean state.
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.
isActive
public boolean isActive()
- Checks if the button is active.
- Returns:
-
true
if the button is active;
false
otherwise.
setActive
public void setActive(boolean b)
- Activates the button.
- Parameters:
- b - if true, the button becomes active.
clone
public Object clone()
- Returns a clone of this button.
- Overrides:
- clone in class VLabel
All Packages Class Hierarchy This Package Previous Next Index