org.jfree.layouting
Interface State
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- InstantiationState
public interface State
- extends java.io.Serializable
As it is said. Its a state. A state object is created by a StatefullComponent
and is used to save and restore the state of that component. The state object
must be immutable - and the restore methods must make sure that the state
object's contents are not modified in any way.
- Author:
- Thomas Morgner
restore
StatefullComponent restore(LayoutProcess layoutProcess)
throws StateException
- Creates a restored instance of the saved component.
By using this factory-like approach, we gain independence from having to
know the actual implementation. This makes things a lot easier.
- Parameters:
layoutProcess
- the layout process that controls it all
- Returns:
- the saved state
- Throws:
StateException