public abstract class VAbstractButton extends VLabel
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.AbstractButton,
直列化された形式| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
state
The button state.
|
disabledBackground, disabledForeground, disabledLabel1, disabledLabel2, enabled, focused, focusedBordervisualizable| 修飾子 | コンストラクタと説明 |
|---|---|
protected |
VAbstractButton(Visualizable visualizable,
boolean enabled,
boolean focused,
boolean state)
Constructs a button with the specified visual object and the
specified states.
|
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canActivate()
Checks if the button has the active state and presentation.
|
java.lang.Object |
clone()
Returns a clone of this button.
|
boolean |
getState()
Returns the boolean state of the button.
|
boolean |
isActive()
Checks if the button is active.
|
void |
setActive(boolean b)
Activates the button.
|
void |
setState(boolean b)
Sets the button to the specifed boolean state.
|
clearDisabledVisualizable, deriveLabel, getDisabledBackground, getDisabledForeground, getFocusedSize, getSize, isEnabled, isFocused, makeDisabledLabel, paint, paint, paint, paintDisabled, paintDisabled, paintEnabled, paintFocused, setDisabledBackground, setDisabledForeground, setEnabled, setFocused, setFocusedSize, setSize, setVisualizablegetVisualizable, isResizableprotected VAbstractButton(Visualizable visualizable, boolean enabled, boolean focused, boolean state)
visualizable - the visual object.enabled - the enabled state.focused - the focused state.state - the button state.public boolean getState()
public void setState(boolean b)
b - the boolean state.public boolean canActivate()
true if the button has the active state;
false otherwise.public boolean isActive()
true if the button is active;
false otherwise.public void setActive(boolean b)
b - if true, the button becomes active.public java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 VLabel