org.jfree.layouting
Interface State
- Serializable
- AbstractRenderer.RendererState, AbstractStyleResolver.AbstractStyleResolverState, ContentNormalizer.ContentNormalizerState, DefaultRenderableTextFactory.DefaultRenderableTextFactoryState, InstantiationState, PaginatingRenderer.DefaultFlowRendererState, StreamingRenderer.DefaultFlowRendererState
public interface State
extends 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.
restore
public 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.
layoutProcess
- the layout process that controls it all