@Override
public void loadState(String prefix, Properties properties) {
String property = properties.getProperty(
prefix + FreezeLayer.PERSISTENCE_TOP_LEFT_POSITION);
PositionCoordinate topLeftPosition = null;
if (property != null) {
StringTokenizer tok = new StringTokenizer(property,
IPersistable.VALUE_SEPARATOR);
String columnPosition = tok.nextToken();
String rowPosition = tok.nextToken();
topLeftPosition = new PositionCoordinate(
this.freezeLayer,
Integer.valueOf(columnPosition),
Integer.valueOf(rowPosition));
}
property = properties.getProperty(
prefix + FreezeLayer.PERSISTENCE_BOTTOM_RIGHT_POSITION);
PositionCoordinate bottomRightPosition = null;
if (property != null) {
StringTokenizer tok =
new StringTokenizer(property, IPersistable.VALUE_SEPARATOR);
String columnPosition = tok.nextToken();
String rowPosition = tok.nextToken();
bottomRightPosition = new PositionCoordinate(
this.freezeLayer,
Integer.valueOf(columnPosition),
Integer.valueOf(rowPosition));
}