org.eodisp.ui.sm.models
Class ExperimentChooserModel

java.lang.Object
  extended by org.eodisp.ui.common.components.AbstractEodispModel
      extended by org.eodisp.ui.sm.models.ExperimentChooserModel
All Implemented Interfaces:
EodispModel

public class ExperimentChooserModel
extends AbstractEodispModel

Version:
$Id:$
Author:
eglimi

Nested Class Summary
 class ExperimentChooserModel.ExpListModel
           
 
Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
 
Constructor Summary
ExperimentChooserModel()
          Default constructor.
 
Method Summary
 void doSave()
          Executes the save command in the model.
 void doUpdate()
           Instructs the model to do an update of its data.
 ExperimentChooserModel.ExpListModel getExpListModel()
           
 boolean hasChanges()
          Returns a value stating whether the model has some changes since the last change.
 
Methods inherited from class org.eodisp.ui.common.components.AbstractEodispModel
addModelListener, fireModelChanged, getModelListener, redo, removeModelListener, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

static org.apache.log4j.Logger logger
Log4J logger for this class

Constructor Detail

ExperimentChooserModel

public ExperimentChooserModel()
Default constructor.

Method Detail

doSave

public void doSave()
Executes the save command in the model. This saves the changes since the last save persistently.


doUpdate

public void doUpdate()
Description copied from class: AbstractEodispModel

Instructs the model to do an update of its data. Many EodispModels are just intermediated models for view components and do not hold the actual data. The actual data is usually retrieved and maintained by a persistency framework. Thus, if the real data has been changed, a model can be informed of this updated and it can be instructed to reload the data.

This should in most cases lead to an update of the visual component representing the data as well.

Specified by:
doUpdate in interface EodispModel
Overrides:
doUpdate in class AbstractEodispModel

hasChanges

public boolean hasChanges()
Returns a value stating whether the model has some changes since the last change.

Returns:
True if the model has changes since the last change or false, if there are no changes.

getExpListModel

public ExperimentChooserModel.ExpListModel getExpListModel()