org.eodisp.ui.mm.models
Class MmAppConfigModel

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

public class MmAppConfigModel
extends AbstractEodispModel

This is the model for the application settings panel for the model manager application.

Version:
$Id:$
Author:
eglimi

Field Summary
(package private) static org.apache.log4j.Logger logger
          Log4J logger for this class
 
Constructor Summary
MmAppConfigModel()
          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

MmAppConfigModel

public MmAppConfigModel()
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.