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).


Variable Index

 o StateFlag
Flag reflecting the current state (checked or not).

Constructor Index

 o xt_CheckBox()
Create an initially unselected checkbox button with no text, no icon.
 o xt_CheckBox(Icon)
Create an initially unselected checkbox with an icon.
 o xt_CheckBox(Icon, boolean)
Create a checkbox with an icon and specifies whether or not it is initially selected.
 o xt_CheckBox(String)
Create an initially unselected checkbox with text.
 o xt_CheckBox(String, boolean)
Create a checkbox with text and specifies whether or not it is initially selected.
 o xt_CheckBox(String, Icon)
Create an initially unselected checkbox with the specified text and icon.
 o xt_CheckBox(String, Icon, boolean)
Create a checkbox with text and icon, and specifies whether or not it is initially selected.

Method Index

 o getState()
Get the current state (checked or not).
 o itemStateChanged(ItemEvent)
Something's happened: determine the state of the check box.
 o setState(boolean)
Set the current state of this check box.

Variables

 o StateFlag
 protected boolean StateFlag
Flag reflecting the current state (checked or not). It defaults to 'false'.

Constructors

 o xt_CheckBox
 public xt_CheckBox()
Create an initially unselected checkbox button with no text, no icon.

 o xt_CheckBox
 public xt_CheckBox(Icon icon)
Create an initially unselected checkbox with an icon.

Parameters:
icon - the Icon image to display
 o 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
 o xt_CheckBox
 public xt_CheckBox(String text)
Create an initially unselected checkbox with text.

Parameters:
text - the text of the checkbox.
 o 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
 o 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
 o 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

Methods

 o itemStateChanged
 public void itemStateChanged(ItemEvent InputItemEvent)
Something's happened: determine the state of the check box.

 o setState
 public void setState(boolean InputStateFlag)
Set the current state of this check box.

 o getState
 public boolean getState()
Get the current state (checked or not).


All Packages  Class Hierarchy  This Package  Previous  Next  Index