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
-
VActiveButton()
- Constructs a trigger button with the
false
state.
-
VActiveButton(boolean)
- Constructs a trigger button with the specified state.
-
VActiveButton(boolean, int)
- Constructs a button with the specified state and the specified style.
-
VActiveButton(int)
- Constructs a button with the
false
state,
and the specified style.
-
VActiveButton(String)
- Constructs a trigger button with the
false
state,
and the specified string.
-
VActiveButton(String, boolean)
- Constructs a trigger button with the specified string and the
specified state.
-
VActiveButton(String, boolean, int)
- Constructs a button with the specified string, the specified state,
and the specified style.
-
VActiveButton(String, int)
- Constructs a button with the
false
state,
the specified string, and the specified style.
-
VActiveButton(Text)
- Constructs a trigger button with the
false
state,
and the specified text.
-
VActiveButton(Text, boolean)
- Constructs a trigger button with the specified text and the
specified state.
-
VActiveButton(Text, boolean, int)
- Constructs a button with the specified text, the specified state,
and the specified style.
-
VActiveButton(Text, int)
- Constructs a button with the
false
state,
the specified text, and the specified style.
-
VActiveButton(Visualizable)
- Constructs a trigger button with the
false
state,
and the specified visual object.
-
VActiveButton(Visualizable, boolean)
- Constructs a trigger button with the specified visual object
and the specified state.
-
VActiveButton(Visualizable, boolean, int)
- Constructs a button with the specified visual object,
the specified state, and the specified style.
-
VActiveButton(Visualizable, int)
- Constructs a button with the
false
state,
the specified visual object, and the specified style.
-
canActivate()
- Checks if the button has the active state and presentation.
-
clone()
- Returns a clone of this button.
-
deriveLabel(Visualizable)
- Creates a new button by replicating this button with a new visual
object associated with it.
-
isActive()
- Checks if the button is active.
-
setActive(boolean)
- Activates the button.
-
setEnabled(boolean)
- Sets the enabled state to be the specified boolean.
VActiveButton
public VActiveButton()
- Constructs a trigger button with the
false
state.
VActiveButton
public VActiveButton(boolean state)
- Constructs a trigger button with the specified state.
- Parameters:
- state - the state of the button.
VActiveButton
public VActiveButton(int style)
- Constructs a button with the
false
state,
and the specified style.
- Parameters:
- style - the style of teh button.
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.
VActiveButton
public VActiveButton(String str)
- Constructs a trigger button with the
false
state,
and the specified string.
- Parameters:
- str - the string.
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.
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.
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.
VActiveButton
public VActiveButton(Text text)
- Constructs a trigger button with the
false
state,
and the specified text.
- Parameters:
- text - the text.
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.
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.
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.
VActiveButton
public VActiveButton(Visualizable visualizable)
- Constructs a trigger button with the
false
state,
and the specified visual object.
- Parameters:
- visualizable - the visual object.
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.
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.
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.
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
setEnabled
public void setEnabled(boolean b)
- Sets the enabled state to be the specified boolean.
- Parameters:
- b - the boolean.
- Overrides:
- setEnabled in class VLabel
canActivate
public boolean canActivate()
- Checks if the button has the active state and presentation.
- Overrides:
- canActivate in class VAbstractButton
- See Also:
- canActivate
isActive
public boolean isActive()
- Checks if the button is active.
- Overrides:
- isActive in class VAbstractButton
- See Also:
- isActive
setActive
public void setActive(boolean b)
- Activates the button.
- Overrides:
- setActive in class VAbstractButton
- See Also:
- setActive
clone
public Object clone()
- Returns a clone of this button.
- Overrides:
- clone in class VButton
All Packages Class Hierarchy This Package Previous Next Index