org.eodisp.ui.sm.models
Class SmAppConfigModel

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

public class SmAppConfigModel
extends AbstractEodispModel

Version:
$Id:$
Author:
eglimi

Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
 
Constructor Summary
SmAppConfigModel()
          Default constructor.
 
Method Summary
 void doSave()
          Executes the save command in the model.
 org.eodisp.util.configuration.Configuration getConfigurator()
          Returns the configuration object.
 boolean hasChanges()
          Returns a value stating whether the model has some changes since the last change.
 void undo()
          This makes and undo of the last command executed by the model.
 
Methods inherited from class org.eodisp.ui.common.components.AbstractEodispModel
addModelListener, doUpdate, fireModelChanged, getModelListener, redo, removeModelListener
 
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

SmAppConfigModel

public SmAppConfigModel()
Default constructor.

Method Detail

doSave

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

Throws:
java.io.IOException - thrown when the data could not be saved persistently. This should lead to a visual indication to the user.

undo

public void undo()
This makes and undo of the last command executed by the model. How an undo is implemented depends on the model. This operation might not be available on all models. Models not supporting undo should ignore such a request.

Specified by:
undo in interface EodispModel
Overrides:
undo 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.

getConfigurator

public org.eodisp.util.configuration.Configuration getConfigurator()
Returns the configuration object.

Returns:
The configuration object.