public class IObjectClassEventsAdapter extends java.lang.Object implements IObjectClassEvents
Constructor and Description |
---|
IObjectClassEventsAdapter() |
Modifier and Type | Method and Description |
---|---|
void |
onChange(IObjectClassEventsOnChangeEvent theEvent)
This event is fired when an object's attributes or geometry is updated.
|
void |
onCreate(IObjectClassEventsOnCreateEvent theEvent)
This event is fired when a new object is created in the object class.
|
void |
onDelete(IObjectClassEventsOnDeleteEvent theEvent)
This event is fired when an object is deleted from the object class.
|
public void onCreate(IObjectClassEventsOnCreateEvent theEvent) throws java.io.IOException, AutomationException
onCreate
in interface IObjectClassEvents
theEvent
- The eventjava.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void onDelete(IObjectClassEventsOnDeleteEvent theEvent) throws java.io.IOException, AutomationException
onDelete
in interface IObjectClassEvents
theEvent
- The eventjava.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.public void onChange(IObjectClassEventsOnChangeEvent theEvent) throws java.io.IOException, AutomationException
In the event that a feature should be deleted due to an OnChange event, it is not recommended that the event handler delete the feature itself. Instead, an exception should be thrown to the application, where it can be made responsible for deleting the feature.
The OnChange event is not fired during a Topology Validation for performance reasons as a large number of features may be changed during a Validate. In addition, features may be changed many times.
onChange
in interface IObjectClassEvents
theEvent
- The eventjava.io.IOException
- If there are interop problems.AutomationException
- If the ArcObject component throws an exception.