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. package javax.swing.undo;
  8. import java.util.Hashtable;
  9. /**
  10. * StateEditable defines the interface for objects that can have
  11. * their state undone/redone by a StateEdit.
  12. *
  13. * @see StateEdit
  14. */
  15. public interface StateEditable {
  16. /** Resource ID for this class. */
  17. public static final String RCSID = "$Id: StateEditable.java,v 1.2 1997/09/08 19:39:08 marklin Exp $";
  18. /**
  19. * Upon receiving this message the receiver should place any relevant
  20. * state into <EM>state</EM>.
  21. */
  22. public void storeState(Hashtable<Object,Object> state);
  23. /**
  24. * Upon receiving this message the receiver should extract any relevant
  25. * state out of <EM>state</EM>.
  26. */
  27. public void restoreState(Hashtable<?,?> state);
  28. } // End of interface StateEditable