public class VActiveButton extends VButton
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.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected boolean |
active
The active state.
|
statedisabledBackground, disabledForeground, disabledLabel1, disabledLabel2, enabled, focused, focusedBordervisualizable| 修飾子 | コンストラクタと説明 |
|---|---|
|
VActiveButton()
Constructs a trigger button with the
false state. |
|
VActiveButton(boolean state)
Constructs a trigger button with the specified state.
|
|
VActiveButton(boolean state,
int style)
Constructs a button with the specified state and the specified style.
|
|
VActiveButton(int style)
Constructs a button with the
false state,
and the specified style. |
|
VActiveButton(java.lang.String str)
Constructs a trigger button with the
false state,
and the specified string. |
|
VActiveButton(java.lang.String str,
boolean state)
Constructs a trigger button with the specified string and the
specified state.
|
|
VActiveButton(java.lang.String str,
boolean state,
int style)
Constructs a button with the specified string, the specified state,
and the specified style.
|
|
VActiveButton(java.lang.String str,
int style)
Constructs a button with the
false state,
the specified string, and the specified style. |
|
VActiveButton(Text text)
Constructs a trigger button with the
false state,
and the specified text. |
|
VActiveButton(Text text,
boolean state)
Constructs a trigger button with the specified text and the
specified state.
|
|
VActiveButton(Text text,
boolean state,
int style)
Constructs a button with the specified text, the specified state,
and the specified style.
|
|
VActiveButton(Text text,
int style)
Constructs a button with the
false state,
the specified text, and the specified style. |
|
VActiveButton(Visualizable visualizable)
Constructs a trigger button with the
false state,
and the specified visual object. |
|
VActiveButton(Visualizable visualizable,
boolean state)
Constructs a trigger button with the specified visual object
and the specified state.
|
protected |
VActiveButton(Visualizable visualizable,
boolean enabled,
boolean focused,
boolean state,
int style)
Constructs a button with the specified visual object,
states, and style.
|
|
VActiveButton(Visualizable visualizable,
boolean state,
int style)
Constructs a button with the specified visual object,
the specified state, and the specified style.
|
|
VActiveButton(Visualizable visualizable,
int style)
Constructs a button with the
false state,
the specified visual object, and the specified style. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
canActivate()
Checks if the button has the active state and presentation.
|
java.lang.Object |
clone()
Returns a clone of this button.
|
VLabel |
deriveLabel(Visualizable visualizable)
Creates a new button by replicating this button with a new visual
object associated with it.
|
boolean |
isActive()
Checks if the button is active.
|
protected void |
paintBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height)
Paints the border of the button with the specified dimension
at the specified location.
|
void |
setActive(boolean b)
Activates the button.
|
void |
setEnabled(boolean b)
Sets the enabled state to be the specified boolean.
|
getInsets, getSize, getStyle, paint, setInsets, setSize, setState, setStylegetStateclearDisabledVisualizable, getDisabledBackground, getDisabledForeground, getFocusedSize, isEnabled, isFocused, makeDisabledLabel, paint, paint, paintDisabled, paintDisabled, paintEnabled, paintFocused, setDisabledBackground, setDisabledForeground, setFocused, setFocusedSize, setVisualizablegetVisualizable, isResizablepublic VActiveButton()
false state.public VActiveButton(boolean state)
state - the state of the button.public VActiveButton(int style)
false state,
and the specified style.style - the style of teh button.public VActiveButton(boolean state,
int style)
state - the state of teh button.style - the style of teh button.public VActiveButton(java.lang.String str)
false state,
and the specified string.str - the string.public VActiveButton(java.lang.String str,
boolean state)
str - the string.state - the state of the button.public VActiveButton(java.lang.String str,
int style)
false state,
the specified string, and the specified style.str - the string.style - the style of the button.public VActiveButton(java.lang.String str,
boolean state,
int style)
str - the string.state - the state of teh button.style - the style of teh button.public VActiveButton(Text text)
false state,
and the specified text.text - the text.public VActiveButton(Text text, boolean state)
text - the text.state - the state of the button.public VActiveButton(Text text, int style)
false state,
the specified text, and the specified style.text - the text.style - the style of the button.public VActiveButton(Text text, boolean state, int style)
text - the text.state - the state of teh button.style - the style of teh button.public VActiveButton(Visualizable visualizable)
false state,
and the specified visual object.visualizable - the visual object.public VActiveButton(Visualizable visualizable, boolean state)
visualizable - the visual object.state - the state of the button.public VActiveButton(Visualizable visualizable, int style)
false state,
the specified visual object, and the specified style.visualizable - the visual object.style - the style of the button.public VActiveButton(Visualizable visualizable, boolean state, int style)
visualizable - the visual object.state - the state of teh button.style - the style of teh button.protected VActiveButton(Visualizable visualizable, boolean enabled, boolean focused, boolean state, int style)
visualizable - the visual object.enabled - the enabled state of teh button.focused - the focused state of teh button.state - the state of teh button.style - the style of teh button.public VLabel deriveLabel(Visualizable visualizable)
deriveLabel クラス内 VButtonvisualizable - the visual object for the new button.public void setEnabled(boolean b)
setEnabled クラス内 VLabelb - the boolean.public boolean canActivate()
canActivate クラス内 VAbstractButtontrue if the button has the active state;
false otherwise.VAbstractButton.canActivate()public boolean isActive()
isActive クラス内 VAbstractButtontrue if the button is active;
false otherwise.VAbstractButton.isActive()public void setActive(boolean b)
setActive クラス内 VAbstractButtonb - if true, the button becomes active.VAbstractButton.setActive(boolean)public java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 VButtonprotected void paintBorder(java.awt.Graphics g,
int x,
int y,
int width,
int height)
paintBorder クラス内 VButton