All Packages Class Hierarchy This Package Previous Next Index
Class xt.xt_CheckBox
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----com.sun.java.swing.JComponent
|
+----com.sun.java.swing.AbstractButton
|
+----com.sun.java.swing.JToggleButton
|
+----com.sun.java.swing.JCheckBox
|
+----xt.xt_CheckBox
- public class xt_CheckBox
- extends JCheckBox
- implements ItemListener
A JCheckBox which keeps track of its own state. That is, it is so advanced
that you can ask it whether it is checked or not (and it has to go to great
lengths to do so).
-
StateFlag
- Flag reflecting the current state (checked or not).
-
xt_CheckBox()
- Create an initially unselected checkbox button with no text, no icon.
-
xt_CheckBox(Icon)
- Create an initially unselected checkbox with an icon.
-
xt_CheckBox(Icon, boolean)
- Create a checkbox with an icon and specifies whether or not it is initially
selected.
-
xt_CheckBox(String)
- Create an initially unselected checkbox with text.
-
xt_CheckBox(String, boolean)
- Create a checkbox with text and specifies whether or not it is initially
selected.
-
xt_CheckBox(String, Icon)
- Create an initially unselected checkbox with the specified text and icon.
-
xt_CheckBox(String, Icon, boolean)
- Create a checkbox with text and icon, and specifies whether or not it is
initially selected.
-
getState()
- Get the current state (checked or not).
-
itemStateChanged(ItemEvent)
- Something's happened: determine the state of the check box.
-
setState(boolean)
- Set the current state of this check box.
StateFlag
protected boolean StateFlag
- Flag reflecting the current state (checked or not). It defaults to 'false'.
xt_CheckBox
public xt_CheckBox()
- Create an initially unselected checkbox button with no text, no icon.
xt_CheckBox
public xt_CheckBox(Icon icon)
- Create an initially unselected checkbox with an icon.
- Parameters:
- icon - the Icon image to display
xt_CheckBox
public xt_CheckBox(Icon icon,
boolean selected)
- Create a checkbox with an icon and specifies whether or not it is initially
selected.
- Parameters:
- icon - the Icon image to display
- selected - a boolean value indicating the initial selection
state. If
true
the checkbox is selected
xt_CheckBox
public xt_CheckBox(String text)
- Create an initially unselected checkbox with text.
- Parameters:
- text - the text of the checkbox.
xt_CheckBox
public xt_CheckBox(String text,
boolean selected)
- Create a checkbox with text and specifies whether or not it is initially
selected.
- Parameters:
- text - the text of the checkbox.
- selected - a boolean value indicating the initial selection
state. If
true
the checkbox is selected
xt_CheckBox
public xt_CheckBox(String text,
Icon icon)
- Create an initially unselected checkbox with the specified text and icon.
- Parameters:
- text - the text of the checkbox.
- icon - the Icon image to display
xt_CheckBox
public xt_CheckBox(String text,
Icon icon,
boolean selected)
- Create a checkbox with text and icon, and specifies whether or not it is
initially selected.
- Parameters:
- text - the text of the checkbox.
- icon - the Icon image to display
- selected - a boolean value indicating the initial selection
state. If
true
the checkbox is selected
itemStateChanged
public void itemStateChanged(ItemEvent InputItemEvent)
- Something's happened: determine the state of the check box.
setState
public void setState(boolean InputStateFlag)
- Set the current state of this check box.
getState
public boolean getState()
- Get the current state (checked or not).
All Packages Class Hierarchy This Package Previous Next Index