|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.esri.adf.web.ags.data.edit.EditWorkspace
public class EditWorkspace
A wrapper of IWorkspace. It handles both versioned and non-versioned workspace. An EditWorkspace may fire the following events:
Constructor Summary | |
---|---|
EditWorkspace(String version,
boolean pooled,
com.esri.arcgis.carto.IFeatureLayer layer,
String wsID,
Boolean childWin,
Boolean columnLevel)
Instantiates an object of EditWorkspace. |
Method Summary | |
---|---|
void |
addEventListener(ActionEventListener listener)
Registers an event listener. |
void |
discard()
Discards all changes since the last save, and release all cached resources. |
boolean |
equals(Object obj)
Returns true if two workspaces are refer to same server workspace object. |
protected void |
fireEvent(EditEvent event)
Fires an event to listeners. |
boolean |
hasEdits()
Returns true if there are edits. |
int |
hashCode()
|
boolean |
hasRedo()
Returns true if edits can be redone. |
boolean |
hasUndo()
Returns true if edits can be undone. |
boolean |
isBeingEdited()
Returns true if the workspace is being edited. |
boolean |
isValid()
Returns true if the workspace is valid. |
void |
perform(ActionContext context,
EditAction... actions)
Performs one or more predefined actions. |
void |
redo()
Redo previous edit if the action can be redone. |
void |
removeEventListener(ActionEventListener listener)
Unregisters an event listener. |
void |
save()
Saves changes since the last save, and release all cached resources. |
void |
startEditOperation()
Starts editing. |
void |
stopEditOperation()
Stops editing. |
void |
undo()
Undo previous edit if the previous action can be undone. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EditWorkspace(String version, boolean pooled, com.esri.arcgis.carto.IFeatureLayer layer, String wsID, Boolean childWin, Boolean columnLevel) throws com.esri.arcgis.interop.AutomationException, IOException
version
- the work version name.pooled
- set to true if the map server is pooled.layer
- the work layer.wsID
- the optional workspace ID.childWin
- set to true for child win reconcile.columnLevel
- set to true for column level reconcile.
com.esri.arcgis.interop.AutomationException
- If the ArcObject component throws an exception.
IOException
- If there are interop problems.Method Detail |
---|
public boolean hasRedo()
public boolean hasEdits()
public boolean isBeingEdited()
public boolean hasUndo()
public void save() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
public void discard() throws Throwable
Throwable
public void undo() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
hasUndo()
public void redo() throws com.esri.arcgis.interop.AutomationException, IOException
com.esri.arcgis.interop.AutomationException
IOException
hasRedo()
public void startEditOperation()
perform(ActionContext, EditAction...)
public void stopEditOperation() throws Exception
IllegalAccessException
- when unable to delete the vertex. The number of points will be less than required
for the feature.
Exception
perform(ActionContext, EditAction...)
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isValid()
public void perform(ActionContext context, EditAction... actions) throws Exception
context
- the action context.actions
- one or more actions.
Exception
public void addEventListener(ActionEventListener listener)
listener
- the listener to register.public void removeEventListener(ActionEventListener listener)
listener
- listener to unregister.protected void fireEvent(EditEvent event)
event
- the event to fire.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |