|
|||||||||
| 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.EditAction
public abstract class EditAction
Defines an editing action. All editing actions should implement this interface. EditWorkspace can process the actions
by the perform method. A
edit action can be either session aware or not session aware. All actions changing features or attributes should be
session aware action.
| Field Summary | |
|---|---|
protected java.util.concurrent.CopyOnWriteArrayList<ActionEventListener> |
eventListeners
The event listeners registered under the action. |
| Constructor Summary | |
|---|---|
protected |
EditAction(boolean sessionAware)
Instantiates an object of EditAction. |
| Method Summary | |
|---|---|
abstract void |
action(ActionContext context)
Performs the action. |
void |
addEventListener(ActionEventListener listener)
Adds an event listener |
protected void |
fireEvent(EditEvent event)
Fires an event to all the listeners. |
boolean |
isEnabled()
Returns true if the action is enabled. |
boolean |
isSessionAware()
Returns true if the action need to be performed within an editing workspace session. |
void |
removeEventListener(ActionEventListener listener)
Removes the event listener. |
void |
setEnabled(boolean enabled)
Sets to true to enable the action. |
void |
setSessionAware(boolean sessionAware)
Sets to true if the action need to be performed within an editing workspace session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.concurrent.CopyOnWriteArrayList<ActionEventListener> eventListeners
| Constructor Detail |
|---|
protected EditAction(boolean sessionAware)
sessionAware - set to true if the action need to be performed within a editing workspace session.| Method Detail |
|---|
public boolean isSessionAware()
public void setSessionAware(boolean sessionAware)
sessionAware - Sets to true if the action need to be performed within an editing workspace.public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled - The enabled to set.public void addEventListener(ActionEventListener listener)
listener - public void removeEventListener(ActionEventListener listener)
listener - protected void fireEvent(EditEvent event)
event -
public abstract void action(ActionContext context)
throws java.lang.Exception
context - the action context.
java.lang.Exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||