

Public Member Functions | |
| ReversibleModel (Node.Property property, Object[] beans) | |
| Object | getValue () throws InvocationTargetException |
| void | setValue (Object v) throws InvocationTargetException |
| void | actionPerformed (ActionEvent e) |
| boolean | isModified () |
| void | commit () throws InvocationTargetException |
| void | revert () |
Private Attributes | |
| Object | tmpValue |
Static Private Attributes | |
| static final String | OK_EVENT = "OK" |
A model implementation that keeps a copy of the value set with setValue(Object) locally and only sends it to the underlying bean when the an ActionEvent with "OK" has been received or the commit() method has been called directly. If the ActionEvent is something else than "OK", or if the revert() method is called, the change is abandoned.
| cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::ReversibleModel | ( | Node.Property | property, | |
| Object[] | beans | |||
| ) | [inline] |
| property | ||
| beans |
| void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::actionPerformed | ( | ActionEvent | e | ) | [inline] |
| void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::commit | ( | ) | throws InvocationTargetException [inline] |
References tmpValue.
Referenced by actionPerformed(), and cern::gp::explorer::properties::ReversiblePropertyField::commit().
| Object cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::getValue | ( | ) | throws InvocationTargetException [inline] |
Implements PropertyModel interface.
Reimplemented from cern::gp::explorer::properties::PropertyField::SimpleModel.
References tmpValue.
| boolean cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::isModified | ( | ) | [inline] |
References tmpValue.
| void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::revert | ( | ) | [inline] |
References tmpValue.
Referenced by actionPerformed(), and cern::gp::explorer::properties::ReversiblePropertyField::revert().
| void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::setValue | ( | Object | v | ) | throws InvocationTargetException [inline] |
Implements PropertyModel interface.
Reimplemented from cern::gp::explorer::properties::PropertyField::SimpleModel.
References tmpValue.
final String cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::OK_EVENT = "OK" [static, private] |
Referenced by actionPerformed().
Referenced by commit(), getValue(), isModified(), revert(), and setValue().
1.6.2