public class CheckEntry extends EntryItem
Constructor and Description |
---|
CheckEntry(java.lang.String text,
boolean init)
Creates a check box with given label text and default check/uncheck
sign.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JCheckBox |
getCheckBox()
Returns the underlaying JCheckBox.
|
boolean |
getValue()
Returns the current state of the check box.
|
boolean |
isTouched()
Returns true, if check box control was hit by the mouse until the last call if this method.
|
void |
setEnabled(boolean enable)
Enable/disable the button.
|
void |
setValue(boolean value)
Sets the current state of the check box programmatically.
|
public CheckEntry(java.lang.String text, boolean init)
text
- the information textinit
- if true, the box is checked; otherwise it is uncheckedpublic javax.swing.JCheckBox getCheckBox()
public boolean getValue()
public void setValue(boolean value)
value
- if true, the box is checked; otherwise uncheckedpublic void setEnabled(boolean enable)
public boolean isTouched()