com.japisoft.framework.dockable
Interface State

All Superinterfaces:
java.io.Serializable

public interface State
extends java.io.Serializable

Interface for a JDock state. The user must call getState or setState for using it from the JDock container. For saving or reading it from a stream the ObjectOutputStream or the ObjectInputStream must be used.

Here a sample for writing the current JDock state inside a file.

 JDock doc = new JDock();
 ...
 State currentState = doc.getState();
 FileOutputStream fout = new FileOutputStream( "jdoc.state" );
 ObjectOutputStream output = new ObjectOutputStream( fout );
 try {
 	output.writeObject( currentState );
 } finally {
 	output.close();
 }
 

Author:
(c) JAPISOft