de.jaret.util.ui.table.addon
Class ViewstateSaver

java.lang.Object
  extended by de.jaret.util.ui.table.addon.ViewstateSaver
All Implemented Interfaces:
IViewstateSaver

public class ViewstateSaver
extends java.lang.Object
implements IViewstateSaver

Implementation of an IViewstateSaver. This implementation saves and restores

It does not alter This viewstate saver can be used as a singleton and is imlemented as one.

Version:
$Id: ViewstateSaver.java 354 2007-04-09 13:53:45Z olk $
Author:
Peter Kliem

Constructor Summary
ViewstateSaver()
           
 
Method Summary
static ViewstateSaver getInstance()
          Get the singleton instance.
 void restoreViewstate(de.jaret.util.ui.table.JaretTable jaretTable, java.lang.String additionalId, org.eclipse.ui.IMemento memento)
          Restore the viewstate of a table.
 void saveViewstate(de.jaret.util.ui.table.JaretTable jaretTable, java.lang.String additionalId, org.eclipse.ui.IMemento memento)
          Save the viewstate of a jaret table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewstateSaver

public ViewstateSaver()
Method Detail

getInstance

public static ViewstateSaver getInstance()
Get the singleton instance.

Returns:
singleton instance

saveViewstate

public void saveViewstate(de.jaret.util.ui.table.JaretTable jaretTable,
                          java.lang.String additionalId,
                          org.eclipse.ui.IMemento memento)
Save the viewstate of a jaret table.

Specified by:
saveViewstate in interface IViewstateSaver
Parameters:
jaretTable - table to save the viewstate of
additionalId - additional id for structuring (may be null if not needed)
memento - memento to store the viewstate in

restoreViewstate

public void restoreViewstate(de.jaret.util.ui.table.JaretTable jaretTable,
                             java.lang.String additionalId,
                             org.eclipse.ui.IMemento memento)
Restore the viewstate of a table.

Specified by:
restoreViewstate in interface IViewstateSaver
Parameters:
jaretTable - table to set the viewstate on
additionalId - additional id (may be null)
memento - memento to read from


Copyright © 2012. All Rights Reserved.