edu.swri.swiftvis.util
Class EditableBoolean
java.lang.Object
edu.swri.swiftvis.util.EditableBoolean
- All Implemented Interfaces:
- java.io.Serializable
public final class EditableBoolean
- extends java.lang.Object
- implements java.io.Serializable
This class can be used to store booleans that need to be edited in a GUI. Using this class
prevents the programmer from having to write event handlers. It also makes it so that
when the value is changed the GUI component is updates.
- Author:
- Mark Lewis
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
value
private boolean value
field
private transient javax.swing.JCheckBox field
listener
private transient EditableBoolean.Listener listener
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
EditableBoolean
public EditableBoolean(boolean val)
getValue
public boolean getValue()
setValue
public void setValue(boolean val)
getCheckBox
public javax.swing.JCheckBox getCheckBox(java.lang.String prompt,
EditableBoolean.Listener ebl)
valueChanged
private void valueChanged()