|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| 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.ehsbe.commons.gui.JxCheckbox
public class JxCheckbox
Analog JxLabel.
| Nested Class Summary |
|---|
| 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 | |
|---|---|
protected Hints |
hints
hints for text decoration |
| 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 | |
|---|---|
JxCheckbox()
Creates an initially unselected check box button with no text, no icon. |
|
JxCheckbox(Action a)
Creates a check box where properties are taken from the Action supplied. |
|
JxCheckbox(Icon icon)
Creates an initially unselected check box with an icon. |
|
JxCheckbox(Icon icon,
boolean selected)
Creates a check box with an icon and specifies whether or not it is initially selected. |
|
JxCheckbox(String text)
Creates an initially unselected check box with text. |
|
JxCheckbox(String text,
boolean selected)
Creates a check box with text and specifies whether or not it is initially selected. |
|
JxCheckbox(String text,
Icon icon)
Creates an initially unselected check box with the specified text and icon. |
|
JxCheckbox(String text,
Icon icon,
boolean selected)
Creates a check box with text and icon, and specifies whether or not it is initially selected. |
|
| Method Summary | |
|---|---|
Hints |
getHints()
Get the hints assigned to this component. |
String |
getOriginalText()
Get the real aka original label text. |
boolean |
getPlainFont()
Check whether this component has been forced to use a plain font. |
protected void |
init(String text,
Icon icon)
|
void |
invalidate()
|
void |
setEnabled(boolean enabled)
|
void |
setForeground(Color fg)
|
void |
setPlainFont(boolean force)
Force this component to use a plain font (e.g. instead of a bold one). |
void |
setText(String text)
|
void |
updateUI()
|
| Methods inherited from class javax.swing.JCheckBox |
|---|
getAccessibleContext, getUIClassID, isBorderPaintedFlat, paramString, setBorderPaintedFlat |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected Hints hints
| Constructor Detail |
|---|
public JxCheckbox()
public JxCheckbox(Icon icon)
icon - the Icon image to display
public JxCheckbox(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 JxCheckbox(String text)
text - the text of the check box.public JxCheckbox(Action a)
a - action to use.
public JxCheckbox(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 JxCheckbox(String text,
Icon icon)
text - the text of the check box.icon - the Icon image to display
public JxCheckbox(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| Method Detail |
|---|
protected void init(String text,
Icon icon)
init in class AbstractButtonpublic void setText(String text)
setText in class AbstractButtonpublic void setForeground(Color fg)
setForeground in class JComponentpublic void setEnabled(boolean enabled)
setEnabled in class AbstractButtonpublic void invalidate()
invalidate in class Containerpublic String getOriginalText()
null if not set, the text otherwise.public Hints getHints()
null value.public void setPlainFont(boolean force)
force - if true use the plain font.public boolean getPlainFont()
true if forced to use a plain font.public void updateUI()
updateUI in class JCheckBox
|
ehsbe CommonsTM Version 1.1.0rc3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||