biz.chitec.qapp.gjsaadminclient
Class BooleanEditElement
java.lang.Object
biz.chitec.qapp.gjsaadminclient.AbstractEditElement
biz.chitec.qapp.gjsaadminclient.BooleanEditElement
- All Implemented Interfaces:
- EditElement
- public class BooleanEditElement
- extends AbstractEditElement
Edit element for boolean values.
Uses a JCheckBox for presenting the value.
- Version:
- $Id: 8a3f53da3065c4568223ad06b4e403de768c17a0 $
- Author:
- cantamen/Dirk Hillbrecht 2007. Released under the GPL.
Field Summary |
private javax.swing.JCheckBox |
checkbox
|
private boolean |
edited
|
Method Summary |
protected javax.swing.JComponent |
getEditComponent()
Create the edit component and return it.
|
protected java.lang.Object |
getValueFromEditComponent()
Get edited value out of the edit component.
|
protected void |
setValueInEditComponent(java.lang.Object value)
Pass value of the property to the edit component in an appropriate way.
|
Methods inherited from class biz.chitec.qapp.gjsaadminclient.AbstractEditElement |
addPropertyChangeListener, addTransferActionListener, checkButtons, finalizeChange, fireIsChangedChange, getPropertyName, getValue, isChanged, isEqualInNonNullCase, realize, resetChange, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
checkbox
private javax.swing.JCheckBox checkbox
edited
private boolean edited
BooleanEditElement
public BooleanEditElement()
getEditComponent
protected javax.swing.JComponent getEditComponent()
- Description copied from class:
AbstractEditElement
- Create the edit component and return it.
Only called once per instance. Returns the actual edit element and performs certain initialisation steps on it.
It's up to the derived implementation to do the right things with the edit component in advance.
- Specified by:
getEditComponent
in class AbstractEditElement
- Returns:
- Fully initialized edit component
getValueFromEditComponent
protected java.lang.Object getValueFromEditComponent()
- Description copied from class:
AbstractEditElement
- Get edited value out of the edit component.
The value has to be converted from the representation in the edit component to real representation.
- Specified by:
getValueFromEditComponent
in class AbstractEditElement
- Returns:
- Edited value.
setValueInEditComponent
protected void setValueInEditComponent(java.lang.Object value)
- Description copied from class:
AbstractEditElement
- Pass value of the property to the edit component in an appropriate way.
The representation of the value to be edited is up to the edit component and completely encapsulated in this method.
- Specified by:
setValueInEditComponent
in class AbstractEditElement
- Parameters:
value
- Value to show in the edit component