Revision 1328 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.impl/src/main/java/org/gvsig/raster/util/persistence/GenericPersistentColorTable.java

View differences:

GenericPersistentColorTable.java
1 1
package org.gvsig.raster.util.persistence;
2 2

  
3
import org.gvsig.fmap.dal.coverage.store.props.ColorTable;
4
import org.gvsig.tools.persistence.PersistentState;
5
import org.gvsig.tools.persistence.exception.PersistenceException;
3 6

  
7

  
4 8
/**
5 9
 * 
6 10
 * @author Nacho Brodin (nachobrodin@gmail.com)
7 11
 *
8 12
 */
9
public class GenericPersistentColorTable extends GenericPersistentBaseForObjs {
10
	
13
public class GenericPersistentColorTable extends GenericPersistentObject {
14
	public void loadFromState(PersistentState state) throws PersistenceException {
15
		obj = (ColorTable)state.get("value");
16
	}
17
	public void saveToState(PersistentState state) throws PersistenceException {
18
		state.set("value", ((ColorTable)obj));
19
	}
11 20
}

Also available in: Unified diff