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

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

public class XMLDockingStorage
extends Object
implements DockingStorage

Implementation of DockingStorage that stores the docking description as XML, using a Storage instance for the actual storage.

Author:
Damien Coraboeuf

Constructor Summary
XMLDockingStorage()
           
 
Method Summary
 DockDescription retrieve(GUIWindow<?> window)
          Retrieves the DockDescription for the window.
 void setStorage(Storage storage)
          Sets the Storage that actually stores the XML for the window
 void setTemplateManager(TemplateManager templateManager)
          Sets the template manager which is used for the XML generation.
 void store(GUIWindow<?> window, DockDescription description)
          Stores the DockDescription for the window.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDockingStorage

public XMLDockingStorage()
Method Detail

retrieve

public DockDescription retrieve(GUIWindow<?> window)
Description copied from interface: DockingStorage
Retrieves the DockDescription for the window.

Specified by:
retrieve in interface DockingStorage
Parameters:
window - Window
Returns:
DockDescription or null if not found

setStorage

public void setStorage(Storage storage)
Sets the Storage that actually stores the XML for the window

Parameters:
storage - Storage

setTemplateManager

public void setTemplateManager(TemplateManager templateManager)
Sets the template manager which is used for the XML generation.

Parameters:
templateManager - Template manager

store

public void store(GUIWindow<?> window,
                  DockDescription description)
Description copied from interface: DockingStorage
Stores the DockDescription for the window.

Specified by:
store in interface DockingStorage
Parameters:
window - Window
description - DockDescription to store


Copyright © 2011. All Rights Reserved.