sk.uniba.euromath.editor.textEditor
Interface ICaretProvider


public interface ICaretProvider

CaretProvider provides a single instance of caret.

Author:
Tomáš Studva Created on 15.7.2004

Method Summary
 ICaretPositioner getActiveCaretPositioner()
          Returns CaretPositioner with caret or null if caret is not visible.
 ITextPieceKeeper getActiveTextPieceKeeper()
          Returns TextPieceKeeper with caret or null if caret is not visible.
 Caret getCaret()
          Returns instance of caret.
 String getNodeIDWithCaret()
           
 sk.baka.ikslibs.ptr.DomPointer getPointer()
          Returns pointer to place in DOM tree where is caret or null if caret is nowhere.
 String getPreviousText()
          Returns text of text node with caret to caret position or null if caret is nowhere.
 

Method Detail

getCaret

Caret getCaret()
Returns instance of caret.

Returns:
caret object

getNodeIDWithCaret

String getNodeIDWithCaret()
Returns:
ID of bottommost node in DOM tree containing caret. null if caret is not visible or contained by object without id.

getActiveCaretPositioner

ICaretPositioner getActiveCaretPositioner()
Returns CaretPositioner with caret or null if caret is not visible.

Returns:
null or caret positioner

getActiveTextPieceKeeper

ITextPieceKeeper getActiveTextPieceKeeper()
Returns TextPieceKeeper with caret or null if caret is not visible.

Returns:
null or TextPieceKeeper

getPointer

sk.baka.ikslibs.ptr.DomPointer getPointer()
Returns pointer to place in DOM tree where is caret or null if caret is nowhere.

Returns:
null or DomPointer

getPreviousText

String getPreviousText()
Returns text of text node with caret to caret position or null if caret is nowhere.

Returns:
null or String


Copyright © 2003-2006 null. All Rights Reserved.