org.gwtopenmaps.openlayers.client.strategy
Class SaveStrategy

java.lang.Object
  extended by org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
      extended by org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
          extended by org.gwtopenmaps.openlayers.client.strategy.Strategy
              extended by org.gwtopenmaps.openlayers.client.strategy.SaveStrategy

public class SaveStrategy
extends Strategy

Author:
Maciej Jezierski - Pinocchio

Constructor Summary
SaveStrategy()
           
SaveStrategy(JSObject strategy)
           
 
Method Summary
 boolean activate()
           
 boolean deactivate()
           
 void save()
          Tell the layer protocol to commit unsaved features.
 void save(JSObject array)
          Tell the layer protocol which features should be saved
 void setAuto(boolean enable)
          Feature will be saved immediately after being added to the layer and with each modification or deletion
 void setAuto(int interval)
          Features will be saved on an interval provided by the value (in seconds)
 
Methods inherited from class org.gwtopenmaps.openlayers.client.OpenLayersObjectWrapper
getClassName, getEvents, narrowToOpenLayersObjectWrapper
 
Methods inherited from class org.gwtopenmaps.openlayers.client.util.JSObjectWrapper
getJSObject, setJSObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveStrategy

public SaveStrategy()

SaveStrategy

public SaveStrategy(JSObject strategy)
Method Detail

activate

public boolean activate()

deactivate

public boolean deactivate()

setAuto

public void setAuto(boolean enable)
Feature will be saved immediately after being added to the layer and with each modification or deletion

Parameters:
enable -

setAuto

public void setAuto(int interval)
Features will be saved on an interval provided by the value (in seconds)

Parameters:
interval -

save

public void save()
Tell the layer protocol to commit unsaved features. If the layer projection differs from the map projection, features will be transformed into the layer projection before being committed


save

public void save(JSObject array)
Tell the layer protocol which features should be saved

Parameters:
array - array of VectorFeatures


Copyright © 2011 sourceforge. All Rights Reserved.