|
Sweet Home 3D 4.1 | |||||||||
| 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
com.eteks.sweethome3d.swing.NullableCheckBox
public class NullableCheckBox
A check box that accepts null values. Thus this check box is able to
display 3 states : null, false and true.
| Nested Class Summary |
|---|
| 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 String |
MNEMONIC_CHANGED_PROPERTY
Identifies a change in the check box mnemonic. |
static String |
TEXT_CHANGED_PROPERTY
Identifies a change in the check box text. |
| 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 java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
NullableCheckBox(String text)
Creates a nullable check box. |
|
| Method Summary | |
|---|---|
void |
addChangeListener(ChangeListener l)
Adds a listener to this component. |
int |
getMnemonic()
Returns the mnemonic of this component. |
String |
getText()
Returns the text of this component. |
Boolean |
getValue()
Returns null, Boolean.TRUE or Boolean.FALSE. |
boolean |
isEnabled()
|
boolean |
isNullable()
Returns true if this check box is nullable. |
void |
removeChangeListener(ChangeListener l)
Removes a listener from this component. |
void |
setEnabled(boolean enabled)
|
void |
setMnemonic(int mnemonic)
Sets the mnemonic of this component. |
void |
setNullable(boolean nullable)
Sets whether this check box is nullable. |
void |
setText(String text)
Sets the text of this component. |
void |
setToolTipText(String text)
Sets the tool tip text displayed by this check box. |
void |
setValue(Boolean value)
Sets displayed value in check box. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String TEXT_CHANGED_PROPERTY
public static final String MNEMONIC_CHANGED_PROPERTY
| Constructor Detail |
|---|
public NullableCheckBox(String text)
| Method Detail |
|---|
public Boolean getValue()
null, Boolean.TRUE or Boolean.FALSE.
public void setValue(Boolean value)
value - null, Boolean.TRUE or Boolean.FALSEpublic boolean isNullable()
true if this check box is nullable.
public void setNullable(boolean nullable)
public void setMnemonic(int mnemonic)
mnemonic - a VK_... code defined in java.awt.event.KeyEvent.public int getMnemonic()
public void setText(String text)
text - a VK_... code defined in java.awt.event.KeyEvent.public String getText()
public void setToolTipText(String text)
setToolTipText in class JComponentpublic void setEnabled(boolean enabled)
setEnabled in class JComponentpublic boolean isEnabled()
isEnabled in class Componentpublic void addChangeListener(ChangeListener l)
public void removeChangeListener(ChangeListener l)
|
Sweet Home 3D 4.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
![]() |
© Copyrights 2006-2013 eTeks - All rights reserved
Distributed under GNU General Public License |