|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JToggleButton
javax.swing.JCheckBox
com.zfqjava.swing.XCheckBox
public class XCheckBox
XCheckBox is a three state CheckBox.
| Nested Class Summary | |
|---|---|
protected class |
XCheckBox.AccessibleXCheckBox
This class implements accessibility support for the XCheckBox class. |
| Nested classes/interfaces inherited from class javax.swing.JCheckBox |
|---|
JCheckBox.AccessibleJCheckBox |
| Nested classes/interfaces inherited from class javax.swing.JToggleButton |
|---|
JToggleButton.AccessibleJToggleButton, JToggleButton.ToggleButtonModel |
| Nested classes/interfaces inherited from class javax.swing.AbstractButton |
|---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
static int |
DESELECTED
Type used for deselected state. |
static int |
PENDING
Type used for pending state. |
static int |
SELECTED
Type used for selected state. |
| Fields inherited from class javax.swing.JCheckBox |
|---|
BORDER_PAINTED_FLAT_CHANGED_PROPERTY |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
XCheckBox()
Constructs a three state check box. |
|
XCheckBox(Action a)
Creates a check box where properties are taken from the Action supplied. |
|
XCheckBox(Icon icon)
Creates an initially unselected check box with an icon. |
|
XCheckBox(Icon icon,
boolean selected)
Creates a check box with an icon and specifies whether or not it is initially selected. |
|
XCheckBox(String text)
Creates an initially unselected check box with text. |
|
XCheckBox(String text,
boolean selected)
Creates a check box with text and specifies whether or not it is initially selected. |
|
XCheckBox(String text,
Icon icon)
Creates an initially unselected check box with the specified text and icon. |
|
XCheckBox(String text,
Icon icon,
boolean selected)
Creates a check box with text and icon, and specifies whether or not it is initially selected. |
|
XCheckBox(String text,
Icon icon,
int state)
Creates a check box with text and icon, and specifies select state. |
|
| Method Summary | |
|---|---|
AccessibleContext |
getAccessibleContext()
Gets the AccessibleContext associated with this XCheckBox. |
Icon |
getDisabledPendingIcon()
Returns the disabled pending icon. |
Icon |
getPendingIcon()
Returns the pending icon. |
Icon |
getRolloverPendingIcon()
Returns the the rollover pending icon. |
int |
getSelectState()
Returns the select state. |
String |
getUIClassID()
Returns a string that specifies the name of the L&F class that renders this component. |
boolean |
isPendingState()
Determines the pending state. |
boolean |
isSelected()
Overide the method to return the selected value. |
protected String |
paramString()
Returns a string representation of this XCheckBox. |
void |
setDisabledPendingIcon(Icon disabledPendingIcon)
Sets the disabled pending icon. |
void |
setPendingIcon(Icon pendingIcon)
Sets the pending icon. |
void |
setRolloverPendingIcon(Icon rolloverPendingIcon)
Sets the rollover pending icon. |
void |
setSelected(boolean b)
Overide the method to set the selected state. |
void |
setSelectState(int state)
Sets the select state. |
void |
updateUI()
Resets the UI property with a value from the current look and feel. |
| Methods inherited from class javax.swing.JCheckBox |
|---|
isBorderPaintedFlat, setBorderPaintedFlat |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int SELECTED
public static final int DESELECTED
public static final int PENDING
| Constructor Detail |
|---|
public XCheckBox()
public XCheckBox(Icon icon)
icon - the Icon image to display
public XCheckBox(Icon icon,
boolean selected)
icon - the Icon image to displayselected - a boolean value indicating the initial selection
state. If true the check box is selectedpublic XCheckBox(String text)
text - the text of the check box.public XCheckBox(Action a)
a - the action
public XCheckBox(String text,
boolean selected)
text - the text of the check box.selected - a boolean value indicating the initial selection
state. If true the check box is selected
public XCheckBox(String text,
Icon icon)
text - the text of the check box.icon - the Icon image to display
public XCheckBox(String text,
Icon icon,
boolean selected)
text - the text of the check box.icon - the Icon image to displayselected - a boolean value indicating the initial selection
state. If true the check box is selected
public XCheckBox(String text,
Icon icon,
int state)
text - the text of the check boxicon - the Icon image to displaystate - the select state, one of 3 legal values:
| Method Detail |
|---|
public void updateUI()
updateUI in class JCheckBoxJComponent.updateUI()public String getUIClassID()
getUIClassID in class JCheckBoxJComponent.getUIClassID(),
UIDefaults.getUI(javax.swing.JComponent)public void setPendingIcon(Icon pendingIcon)
pendingIcon - the pending state icongetPendingIconpublic Icon getPendingIcon()
setPendingIconpublic void setRolloverPendingIcon(Icon rolloverPendingIcon)
rolloverPendingIcon - the rollover pending icongetRolloverPendingIcon()public Icon getRolloverPendingIcon()
setRolloverPendingIcon(javax.swing.Icon)public void setDisabledPendingIcon(Icon disabledPendingIcon)
disabledPendingIcon - the disabled pending icongetDisabledPendingIcon()public Icon getDisabledPendingIcon()
setDisabledPendingIcon(javax.swing.Icon)public void setSelected(boolean b)
setSelected in class AbstractButtonpublic boolean isSelected()
isSelected in class AbstractButtonpublic int getSelectState()
setSelectState(int)public void setSelectState(int state)
state - the select state, one of 3 legal values:
setSelectState(int)public boolean isPendingState()
protected String paramString()
null.
paramString in class JCheckBoxpublic AccessibleContext getAccessibleContext()
getAccessibleContext in interface AccessiblegetAccessibleContext in class JCheckBox
|
JComponentPack 1.5.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||