All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.graphics.VActiveButton

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

public class VActiveButton
extends VButton
The VActiveButton class implements the visual button that acts as a button model. The active button has an active state. The active button creates different visual presentations according to the active state.

Version:
12 Jun 1998
Author:
Kazuki YASUMATSU
See Also:
AbstractButton, Button, ToggleButton, TRIGGER, TOGGLE

Constructor Index

 o VActiveButton()
Constructs a trigger button with the false state.
 o VActiveButton(boolean)
Constructs a trigger button with the specified state.
 o VActiveButton(boolean, int)
Constructs a button with the specified state and the specified style.
 o VActiveButton(int)
Constructs a button with the false state, and the specified style.
 o VActiveButton(String)
Constructs a trigger button with the false state, and the specified string.
 o VActiveButton(String, boolean)
Constructs a trigger button with the specified string and the specified state.
 o VActiveButton(String, boolean, int)
Constructs a button with the specified string, the specified state, and the specified style.
 o VActiveButton(String, int)
Constructs a button with the false state, the specified string, and the specified style.
 o VActiveButton(Text)
Constructs a trigger button with the false state, and the specified text.
 o VActiveButton(Text, boolean)
Constructs a trigger button with the specified text and the specified state.
 o VActiveButton(Text, boolean, int)
Constructs a button with the specified text, the specified state, and the specified style.
 o VActiveButton(Text, int)
Constructs a button with the false state, the specified text, and the specified style.
 o VActiveButton(Visualizable)
Constructs a trigger button with the false state, and the specified visual object.
 o VActiveButton(Visualizable, boolean)
Constructs a trigger button with the specified visual object and the specified state.
 o VActiveButton(Visualizable, boolean, int)
Constructs a button with the specified visual object, the specified state, and the specified style.
 o VActiveButton(Visualizable, int)
Constructs a button with the false state, the specified visual object, and the specified style.

Method Index

 o canActivate()
Checks if the button has the active state and presentation.
 o clone()
Returns a clone of this button.
 o deriveLabel(Visualizable)
Creates a new button by replicating this button with a new visual object associated with it.
 o isActive()
Checks if the button is active.
 o setActive(boolean)
Activates the button.
 o setEnabled(boolean)
Sets the enabled state to be the specified boolean.

Constructors

 o VActiveButton
 public VActiveButton()
Constructs a trigger button with the false state.

 o VActiveButton
 public VActiveButton(boolean state)
Constructs a trigger button with the specified state.

Parameters:
state - the state of the button.
 o VActiveButton
 public VActiveButton(int style)
Constructs a button with the false state, and the specified style.

Parameters:
style - the style of teh button.
 o VActiveButton
 public VActiveButton(boolean state,
                      int style)
Constructs a button with the specified state and the specified style.

Parameters:
state - the state of teh button.
style - the style of teh button.
 o VActiveButton
 public VActiveButton(String str)
Constructs a trigger button with the false state, and the specified string.

Parameters:
str - the string.
 o VActiveButton
 public VActiveButton(String str,
                      boolean state)
Constructs a trigger button with the specified string and the specified state.

Parameters:
str - the string.
state - the state of the button.
 o VActiveButton
 public VActiveButton(String str,
                      int style)
Constructs a button with the false state, the specified string, and the specified style.

Parameters:
str - the string.
style - the style of the button.
 o VActiveButton
 public VActiveButton(String str,
                      boolean state,
                      int style)
Constructs a button with the specified string, the specified state, and the specified style.

Parameters:
str - the string.
state - the state of teh button.
style - the style of teh button.
 o VActiveButton
 public VActiveButton(Text text)
Constructs a trigger button with the false state, and the specified text.

Parameters:
text - the text.
 o VActiveButton
 public VActiveButton(Text text,
                      boolean state)
Constructs a trigger button with the specified text and the specified state.

Parameters:
text - the text.
state - the state of the button.
 o VActiveButton
 public VActiveButton(Text text,
                      int style)
Constructs a button with the false state, the specified text, and the specified style.

Parameters:
text - the text.
style - the style of the button.
 o VActiveButton
 public VActiveButton(Text text,
                      boolean state,
                      int style)
Constructs a button with the specified text, the specified state, and the specified style.

Parameters:
text - the text.
state - the state of teh button.
style - the style of teh button.
 o VActiveButton
 public VActiveButton(Visualizable visualizable)
Constructs a trigger button with the false state, and the specified visual object.

Parameters:
visualizable - the visual object.
 o VActiveButton
 public VActiveButton(Visualizable visualizable,
                      boolean state)
Constructs a trigger button with the specified visual object and the specified state.

Parameters:
visualizable - the visual object.
state - the state of the button.
 o VActiveButton
 public VActiveButton(Visualizable visualizable,
                      int style)
Constructs a button with the false state, the specified visual object, and the specified style.

Parameters:
visualizable - the visual object.
style - the style of the button.
 o VActiveButton
 public VActiveButton(Visualizable visualizable,
                      boolean state,
                      int style)
Constructs a button with the specified visual object, the specified state, and the specified style.

Parameters:
visualizable - the visual object.
state - the state of teh button.
style - the style of teh button.

Methods

 o deriveLabel
 public VLabel deriveLabel(Visualizable visualizable)
Creates a new button by replicating this button with a new visual object associated with it.

Parameters:
visualizable - the visual object for the new button.
Returns:
a new button.
Overrides:
deriveLabel in class VButton
 o setEnabled
 public void setEnabled(boolean b)
Sets the enabled state to be the specified boolean.

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

Overrides:
canActivate in class VAbstractButton
See Also:
canActivate
 o isActive
 public boolean isActive()
Checks if the button is active.

Overrides:
isActive in class VAbstractButton
See Also:
isActive
 o setActive
 public void setActive(boolean b)
Activates the button.

Overrides:
setActive in class VAbstractButton
See Also:
setActive
 o clone
 public Object clone()
Returns a clone of this button.

Overrides:
clone in class VButton

All Packages  Class Hierarchy  This Package  Previous  Next  Index