Package org.jfree.layouting
Interface State
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
AbstractRenderer.RendererState
,AbstractStyleResolver.AbstractStyleResolverState
,ContentNormalizer.ContentNormalizerState
,DefaultRenderableTextFactory.DefaultRenderableTextFactoryState
,InstantiationState
,PaginatingRenderer.DefaultFlowRendererState
,StreamingRenderer.DefaultFlowRendererState
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
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StatefullComponent
restore(LayoutProcess layoutProcess)
Creates a restored instance of the saved component.
-
-
-
Method Detail
-
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
-
-