Events lifecycle


Purpose
This sample demonstrates when various edit events are fired in response to changes in the editing environment or user actions. This sample also shows which events are appropriate to listen for in various situations and explains what causes a given event to fire.

How to use

See How to use ArcGIS samples for help on running the sample. If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.

  1. Start the sample application.
  2. On the Select Events tab, select the events you are interested in.
  3. Start an edit session using the Editor menu, and perform common operations (create a feature, modify an exiting feature, undo and redo edits, and so on). The Output tab indicates the sequence in which the edit events are fired.


Download the files for Java
editing/EditingApplication.java Entry point for the sample. It initializes the interop, sets up the user interface, and ensures licensing is valid.
editing/EditEventsListener.java Contains the code to implement an event listener that listens to edit events. The listener indicates when an event is fired if it is selected in the EventsPane.
editing/EventsPane.java Contains the code to implement a JPane that contains two tabs—one for selecting events to listen to and the other for listing events that were fired.




Development licensing Deployment licensing
Engine Developer Kit Engine Runtime
ArcEditor
ArcInfo