net.sf.doolin.gui.docking.storage
Class DefaultStorage

java.lang.Object
  extended by net.sf.doolin.gui.docking.storage.DefaultStorage
All Implemented Interfaces:
Storage

public class DefaultStorage
extends Object
implements Storage

Implementation for Storage that stores data associated with a window in the preferences.

Author:
Damien Coraboeuf

Constructor Summary
DefaultStorage()
           
 
Method Summary
 String retrieve(GUIWindow<?> window)
          Retrieves the value for a window.
 void store(GUIWindow<?> window, String value)
          Stores the value for a window
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultStorage

public DefaultStorage()
Method Detail

retrieve

public String retrieve(GUIWindow<?> window)
Description copied from interface: Storage
Retrieves the value for a window.

Specified by:
retrieve in interface Storage
Parameters:
window - Window
Returns:
Retrieved value or null if not found

store

public void store(GUIWindow<?> window,
                  String value)
Description copied from interface: Storage
Stores the value for a window

Specified by:
store in interface Storage
Parameters:
window - Window
value - Value to store


Copyright © 2011. All Rights Reserved.