org.eclipse.nebula.widgets.nattable.util
Class PersistenceUtils

java.lang.Object
  extended by org.eclipse.nebula.widgets.nattable.util.PersistenceUtils

public class PersistenceUtils
extends Object


Field Summary
static String COLUMN_VALUE_SEPARATOR
          The character that is used to separate the column and the value that should be stored for the column.
 
Constructor Summary
PersistenceUtils()
           
 
Method Summary
static String mapAsString(Map<Integer,String> map)
          Convert the Map to a String suitable for persisting in the Properties file.
static Map<Integer,String> parseString(Object property)
          Parse the persisted property and create a TreeMap<Integer, String> from it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLUMN_VALUE_SEPARATOR

public static final String COLUMN_VALUE_SEPARATOR
The character that is used to separate the column and the value that should be stored for the column.

See Also:
Constant Field Values
Constructor Detail

PersistenceUtils

public PersistenceUtils()
Method Detail

parseString

public static Map<Integer,String> parseString(Object property)
Parse the persisted property and create a TreeMap<Integer, String> from it. Works in conjunction with the mapAsString(Map).

Parameters:
property - from the properties file.

mapAsString

public static String mapAsString(Map<Integer,String> map)
Convert the Map to a String suitable for persisting in the Properties file. parseString(Object) can be used to reconstruct this Map object from the String.



Copyright © 2015. All rights reserved.