public class VCheckbox extends VAbstractButton
VCheckbox class implements the visual checkbox that
acts as a checkbox model. The checkbox creates different visual
presentations according to the style and the state.| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected static java.awt.Dimension |
BoxSize
The constat for the box size.
|
static int |
EXCLUSIVE
The checkbox style constat for the exclusive style.
|
static int |
INCLUSIVE
The checkbox style constat for the inclusive style.
|
protected static int |
Offset
The constat for the offset.
|
protected int |
style
The style of the checkbox.
|
statedisabledBackground, disabledForeground, disabledLabel1, disabledLabel2, enabled, focused, focusedBordervisualizable| 修飾子 | コンストラクタと説明 |
|---|---|
|
VCheckbox()
Constructs a exclusive checkbox with the
false state. |
|
VCheckbox(boolean state)
Constructs a exclusive checkbox with the specified state.
|
|
VCheckbox(boolean state,
int style)
Constructs a checkbox with the specified state and the specified style.
|
|
VCheckbox(int style)
Constructs a checkbox with the
false state,
and the specified style. |
|
VCheckbox(java.lang.String str)
Constructs a exclusive checkbox with the
false state,
and the specified string. |
|
VCheckbox(java.lang.String str,
boolean state)
Constructs a exclusive checkbox with the specified string and the
specified state.
|
|
VCheckbox(java.lang.String str,
boolean state,
int style)
Constructs a checkbox with the specified string, the specified state,
and the specified style.
|
|
VCheckbox(java.lang.String str,
int style)
Constructs a checkbox with the
false state,
the specified string, and the specified style. |
|
VCheckbox(Text text)
Constructs a exclusive checkbox with the
false state,
and the specified text. |
|
VCheckbox(Text text,
boolean state)
Constructs a exclusive checkbox with the specified text and the
specified state.
|
|
VCheckbox(Text text,
boolean state,
int style)
Constructs a checkbox with the specified text, the specified state,
and the specified style.
|
|
VCheckbox(Text text,
int style)
Constructs a checkbox with the
false state,
the specified text, and the specified style. |
|
VCheckbox(Visualizable visualizable)
Constructs a exclusive checkbox with the
false state,
and the specified visual object. |
|
VCheckbox(Visualizable visualizable,
boolean state)
Constructs a exclusive checkbox with the specified visual object
and the specified state.
|
protected |
VCheckbox(Visualizable visualizable,
boolean enabled,
boolean focused,
boolean state,
int style)
Constructs a checkbox with the specified visual object,
the specified states, and the specified style.
|
|
VCheckbox(Visualizable visualizable,
boolean state,
int style)
Constructs a checkbox with the specified visual object,
the specified state, and the specified style.
|
|
VCheckbox(Visualizable visualizable,
int style)
Constructs a checkbox with the
false state,
the specified visual object, and the specified style. |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
java.lang.Object |
clone()
Returns a clone of this checkbox.
|
VLabel |
deriveLabel(Visualizable visualizable)
Creates a new checkbox by replicating this checkbox with a new visual
object associated with it.
|
java.awt.Dimension |
getSize()
Returns the size of this checkbox.
|
int |
getStyle()
Returns the style of the checkbox.
|
void |
paint(java.awt.Graphics g,
java.awt.Point p,
java.awt.Component comp)
Paints the checkbox at the specified location with the component.
|
protected void |
paintExclusiveCheckbox(java.awt.Graphics g,
int x,
int y)
Paints the exclusive checkbox at the specified location.
|
protected void |
paintInclusiveCheckbox(java.awt.Graphics g,
int x,
int y)
Paints the inclusive checkbox at the specified location.
|
void |
setSize(java.awt.Dimension d)
Resizes the checkbox to the specified dimension.
|
void |
setStyle(int style)
Sets the style of the checkbox to the specified style.
|
canActivate, getState, isActive, setActive, setStateclearDisabledVisualizable, getDisabledBackground, getDisabledForeground, getFocusedSize, isEnabled, isFocused, makeDisabledLabel, paint, paint, paintDisabled, paintDisabled, paintEnabled, paintFocused, setDisabledBackground, setDisabledForeground, setEnabled, setFocused, setFocusedSize, setVisualizablegetVisualizable, isResizableprotected int style
public static final int EXCLUSIVE
public static final int INCLUSIVE
protected static final java.awt.Dimension BoxSize
protected static final int Offset
public VCheckbox()
false state.public VCheckbox(boolean state)
state - the state of the checkbox.public VCheckbox(int style)
false state,
and the specified style.style - the style of teh checkbox.public VCheckbox(boolean state,
int style)
state - the state of teh checkbox.style - the style of teh checkbox.public VCheckbox(java.lang.String str)
false state,
and the specified string.str - the string.public VCheckbox(java.lang.String str,
boolean state)
str - the string.state - the state of the checkbox.public VCheckbox(java.lang.String str,
int style)
false state,
the specified string, and the specified style.str - the string.style - the style of the checkbox.public VCheckbox(java.lang.String str,
boolean state,
int style)
str - the string.state - the state of teh checkbox.style - the style of teh checkbox.public VCheckbox(Text text)
false state,
and the specified text.text - the text.public VCheckbox(Text text, boolean state)
text - the text.state - the state of the checkbox.public VCheckbox(Text text, int style)
false state,
the specified text, and the specified style.text - the text.style - the style of the checkbox.public VCheckbox(Text text, boolean state, int style)
text - the text.state - the state of teh checkbox.style - the style of teh checkbox.public VCheckbox(Visualizable visualizable)
false state,
and the specified visual object.visualizable - the visual object.public VCheckbox(Visualizable visualizable, boolean state)
visualizable - the visual object.state - the state of the checkbox.public VCheckbox(Visualizable visualizable, int style)
false state,
the specified visual object, and the specified style.visualizable - the visual object.style - the style of the checkbox.public VCheckbox(Visualizable visualizable, boolean state, int style)
visualizable - the visual object.state - the state of teh checkbox.style - the style of teh checkbox.protected VCheckbox(Visualizable visualizable, boolean enabled, boolean focused, boolean state, int style)
visualizable - the visual object.enabled - the enabled state of teh checkbox.focused - the focused state of teh checkbox.state - the state of teh checkbox.style - the style of teh checkbox.public VLabel deriveLabel(Visualizable visualizable)
deriveLabel クラス内 VLabelvisualizable - the visual object for the new checkbox.public int getStyle()
public void setStyle(int style)
public java.awt.Dimension getSize()
getSize インタフェース内 VisualizablegetSize クラス内 VLabelVisualizable.getSize()public void setSize(java.awt.Dimension d)
setSize インタフェース内 VisualizablesetSize クラス内 VLabeld - the visual object dimension.Visualizable.setSize(java.awt.Dimension)public void paint(java.awt.Graphics g,
java.awt.Point p,
java.awt.Component comp)
public java.lang.Object clone()
clone インタフェース内 Visualizableclone クラス内 VAbstractButtonprotected void paintExclusiveCheckbox(java.awt.Graphics g,
int x,
int y)
protected void paintInclusiveCheckbox(java.awt.Graphics g,
int x,
int y)