public final class OperationEvent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ACCEPT_ACTION
Action fired when accepting operations
|
static int |
ACCEPT_ALL_ACTION
Action fired when accepting all operations
|
static int |
ADD_ACTION
Action fired when adding operations
|
static int |
REJECT_ACTION
Action fired when rejecting operations
|
static int |
REJECT_ALL_ACTION
Action fired when rejecting all operations
|
static int |
REMOVE_ACTION
Action fired when removing operations
|
static int |
UNTRACKED_CHANGE
Action fired when the document changes but track changes is off
|
| Constructor and Description |
|---|
OperationEvent(int type,
Operation operation)
Creates a new OperationEvent.
|
| Modifier and Type | Method and Description |
|---|---|
Operation |
getOperation()
Get the operation that changed state, or
null if multiple operations changed. |
int |
getType()
Get the type of change that occurred.
|
public static final int ADD_ACTION
public static final int REMOVE_ACTION
public static final int ACCEPT_ACTION
public static final int REJECT_ACTION
public static final int ACCEPT_ALL_ACTION
public static final int REJECT_ALL_ACTION
public static final int UNTRACKED_CHANGE
public OperationEvent(int type,
Operation operation)
type - the event type.operation - the operation that changed or null if multiple operations changed.public Operation getOperation()
null if multiple operations changed.null.public int getType()