1. /*
  2. * @(#)StateEditable.java 1.8 00/02/02
  3. *
  4. * Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.swing.undo;
  11. import java.util.Hashtable;
  12. /**
  13. * StateEditable defines the interface for objects that can have
  14. * their state undone/redone by a StateEdit.
  15. *
  16. * @see StateEdit
  17. */
  18. public interface StateEditable {
  19. /** Resource ID for this class. */
  20. public static final String RCSID = "$Id: StateEditable.java,v 1.2 1997/09/08 19:39:08 marklin Exp $";
  21. /**
  22. * Upon receiving this message the receiver should place any relevant
  23. * state into <EM>state</EM>.
  24. */
  25. public void storeState(Hashtable state);
  26. /**
  27. * Upon receiving this message the receiver should extract any relevant
  28. * state out of <EM>state</EM>.
  29. */
  30. public void restoreState(Hashtable state);
  31. } // End of interface StateEditable