com.ephox.editlive.java2.editor.operation
Class OperationEvent

java.lang.Object
  extended by com.ephox.editlive.java2.editor.operation.OperationEvent

public class OperationEvent
extends Object


Field Summary
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 Summary
OperationEvent(int type, Operation operation)
          Creates a new OperationEvent.
 
Method Summary
 Operation getOperation()
          Get the operation that changed state, or null if multiple operations changed.
 int getType()
          Get the type of change that occurred.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADD_ACTION

public static final int ADD_ACTION
Action fired when adding operations

See Also:
Constant Field Values

REMOVE_ACTION

public static final int REMOVE_ACTION
Action fired when removing operations

See Also:
Constant Field Values

ACCEPT_ACTION

public static final int ACCEPT_ACTION
Action fired when accepting operations

See Also:
Constant Field Values

REJECT_ACTION

public static final int REJECT_ACTION
Action fired when rejecting operations

See Also:
Constant Field Values

ACCEPT_ALL_ACTION

public static final int ACCEPT_ALL_ACTION
Action fired when accepting all operations

See Also:
Constant Field Values

REJECT_ALL_ACTION

public static final int REJECT_ALL_ACTION
Action fired when rejecting all operations

See Also:
Constant Field Values

UNTRACKED_CHANGE

public static final int UNTRACKED_CHANGE
Action fired when the document changes but track changes is off

See Also:
Constant Field Values
Constructor Detail

OperationEvent

public OperationEvent(int type,
                      Operation operation)
Creates a new OperationEvent.

Parameters:
type - the event type.
operation - the operation that changed or null if multiple operations changed.
Method Detail

getOperation

public Operation getOperation()
Get the operation that changed state, or null if multiple operations changed.

Returns:
the operation that changed or null.

getType

public int getType()
Get the type of change that occurred.

Returns:
the type of change.

Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved.