Oxygen XML Editor 11.2 Author API

ro.sync.ecss.extensions.api
Class AuthorCaretEvent

java.lang.Object
  extended by ro.sync.ecss.extensions.api.AuthorCaretEvent

public class AuthorCaretEvent
extends Object

AuthorCaretEvent is used to notify interested AuthorCaretListener that the position of the caret has changed in the Author editor page.


Constructor Summary
AuthorCaretEvent(int offset, int selStart, int selEnd, AuthorNode node)
          Constructor for the AuthorCaretEvent.
 
Method Summary
 AuthorNode getNode()
           
 int getOffset()
           
 int getSelectionEnd()
           
 int getSelectionStart()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthorCaretEvent

public AuthorCaretEvent(int offset,
                        int selStart,
                        int selEnd,
                        AuthorNode node)
Constructor for the AuthorCaretEvent.

Parameters:
offset - The absolute caret position inside the Author page.
selStart - The selection start offset. If no selection the selection start is equals with caret offset.
selEnd - The selection end offset. If no selection the selection end is equals with caret offset.
node - The node holding the caret offset.
Method Detail

getOffset

public int getOffset()
Returns:
Returns the absolute caret offset.

getNode

public AuthorNode getNode()
Returns:
Returns the node holding the caret position.

getSelectionStart

public int getSelectionStart()
Returns:
Returns the selection start offset, inclusive. If no selection the selection start is equals with caret offset.

getSelectionEnd

public int getSelectionEnd()
Returns:
Returns the selection end offset, exclusive. If no selection the selection end is equals with caret offset.

Oxygen XML Editor 11.2 Author API

© Copyright SyncRO Soft SRL 2002 - 2010.