org.eodisp.ui.mm.models
Class MmFederateInfoModel

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

public class MmFederateInfoModel
extends AbstractEodispModel

This is the model for the MmFederateInfoDialog dialog.

Version:
$Id:$
Author:
eglimi

Constructor Summary
MmFederateInfoModel(Federate federate)
          Constructor.
 
Method Summary
 void doSave()
          Executes the save command in the model.
 java.lang.String getInfoText()
          Returns the information text stored in the repository together with the federate.
 boolean hasChanges()
          Returns a value stating whether the model has some changes since the last change.
 void setInfoText(java.lang.String infoText)
          Sets the information text stored in the repository together with the federate.
 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
 

Constructor Detail

MmFederateInfoModel

public MmFederateInfoModel(Federate federate)
Constructor.

Parameters:
federate - The federate for which information should be received or stored.
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.

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.

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

getInfoText

public java.lang.String getInfoText()
Returns the information text stored in the repository together with the federate.

In order to get this text, the application must be connected to the repository and the federate must be registered.

Returns:
the additional information associated with the federate.

setInfoText

public void setInfoText(java.lang.String infoText)
Sets the information text stored in the repository together with the federate.

In order to set this text, the application must be connected to the repository and the federate must be registered.

Parameters:
infoText - the additional information to be associated with the federate.