Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel Class Reference

Inheritance diagram for cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel:

Inheritance graph
[legend]
Collaboration diagram for cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel:

Collaboration graph
[legend]
List of all members.

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

final String OK_EVENT = "OK"

Detailed Description

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.


Constructor & Destructor Documentation

cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::ReversibleModel Node.Property  property,
Object[]  beans
[inline]
 

Parameters:
property 
beans 


Member Function Documentation

void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::actionPerformed ActionEvent  e  )  [inline]
 

void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::commit  )  throws InvocationTargetException [inline]
 

Object cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::getValue  )  throws InvocationTargetException [inline]
 

Implements PropertyModel interface.

Reimplemented from cern::gp::explorer::properties::PropertyField::SimpleModel.

boolean cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::isModified  )  [inline]
 

void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::revert  )  [inline]
 

void cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::setValue Object  v  )  throws InvocationTargetException [inline]
 

Implements PropertyModel interface.

Reimplemented from cern::gp::explorer::properties::PropertyField::SimpleModel.


Member Data Documentation

final String cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::OK_EVENT = "OK" [static, private]
 

Object cern::gp::explorer::properties::ReversiblePropertyField::ReversibleModel::tmpValue [private]
 


The documentation for this class was generated from the following file:
Generated on Thu Apr 30 03:08:30 2009 for ACS Java API by doxygen 1.3.8