org.eclipse.nebula.widgets.nattable.test.fixture
Class PersistableFixture

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.test.fixture.PersistableFixture
All Implemented Interfaces:
IPersistable

public class PersistableFixture
extends Object
implements IPersistable


Field Summary
 Properties loadedProperties
           
 Properties savedProperties
           
 boolean stateLoaded
           
 boolean stateSaved
           
 
Fields inherited from interface org.eclipse.nebula.widgets.nattable.persistence.IPersistable
DOT, VALUE_SEPARATOR
 
Constructor Summary
PersistableFixture()
           
 
Method Summary
 void loadState(String prefix, Properties properties)
          Restore the state out of the given Properties identified by the specified prefix.
 void saveState(String prefix, Properties properties)
          Saves the state to the given Properties using the specified prefix.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

loadedProperties

public Properties loadedProperties

savedProperties

public Properties savedProperties

stateLoaded

public boolean stateLoaded

stateSaved

public boolean stateSaved
Constructor Detail

PersistableFixture

public PersistableFixture()
Method Detail

loadState

public void loadState(String prefix,
                      Properties properties)
Description copied from interface: IPersistable
Restore the state out of the given Properties identified by the specified prefix. Note: The prefix must be prepended to the property key to support multiple states within one Properties instance.

Specified by:
loadState in interface IPersistable
Parameters:
prefix - The prefix to use for the state keys. Is also used as the state configuration name.
properties - The Properties instance to load the state from.

saveState

public void saveState(String prefix,
                      Properties properties)
Description copied from interface: IPersistable
Saves the state to the given Properties using the specified prefix. Note: The prefix must be prepended to the property key to support multiple states within one Properties instance.

Specified by:
saveState in interface IPersistable
Parameters:
prefix - The prefix to use for the state keys. Is also used as the state configuration name.
properties - The Properties instance to save the state to.


Copyright © 2015. All rights reserved.