com.jstatcom.project
Interface ProjectStateHandler

All Known Implementing Classes:
ModelFrame, TSCalcFrame

public interface ProjectStateHandler

Interface to be implemented by classes that should save and restore their state from an instance of ProjectState. This interface is typically implemented by ModelFrame subclasses that are the top-level components for modules.

Author:
Markus Kraetzig

Method Summary
 java.lang.String getID()
          Gets the ID of this handler for this project state.
 ProjectState getState()
          Gets the current state of the implementing class.
 void setState(ProjectState state)
          Sets the state of the implementing class according to the state argument.
 

Method Detail

setState

void setState(ProjectState state)
Sets the state of the implementing class according to the state argument.

Parameters:
state - project state instance holding all relevant information

getState

ProjectState getState()
Gets the current state of the implementing class.

Returns:
project state

getID

java.lang.String getID()
Gets the ID of this handler for this project state. This is required by the ProjectManager to retrieve the handler instance from a deserialized ProjectState.

Returns:
fully identified class name of corresponding handler