KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > swing > undo > StateEditable


1 /*
2  * @(#)StateEditable.java 1.12 04/05/05
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.swing.undo;
9
10 import java.util.Hashtable JavaDoc;
11
12
13 /**
14  * StateEditable defines the interface for objects that can have
15  * their state undone/redone by a StateEdit.
16  *
17  * @see StateEdit
18  */

19
20 public interface StateEditable {
21
22     /** Resource ID for this class. */
23     public static final String JavaDoc RCSID = "$Id: StateEditable.java,v 1.2 1997/09/08 19:39:08 marklin Exp $";
24
25     /**
26      * Upon receiving this message the receiver should place any relevant
27      * state into <EM>state</EM>.
28      */

29     public void storeState(Hashtable JavaDoc<Object JavaDoc,Object JavaDoc> state);
30
31     /**
32      * Upon receiving this message the receiver should extract any relevant
33      * state out of <EM>state</EM>.
34      */

35     public void restoreState(Hashtable JavaDoc<?,?> state);
36 } // End of interface StateEditable
37
Popular Tags