sk.uniba.euromath.editor.textEditor
Interface ICaretPositioner


public interface ICaretPositioner

Positions caret if has caret.

Author:
Martin Kollar Created on 1.8.2005

Method Summary
 int getCaretOffset()
          Returns offset in TextPiece where caret is.
 boolean hasCaret()
          Test if this positioner has caret, it means caret is visible and positioned by this caret positioner.
 void hideCaret()
          Hides the Caret
 void showCaret()
          Shows the Caret
 void showCaretBefore(int index)
          Shows Caret before character at position index.
 

Method Detail

hasCaret

boolean hasCaret()
Test if this positioner has caret, it means caret is visible and positioned by this caret positioner.

Returns:
true if positioner has caret

getCaretOffset

int getCaretOffset()
Returns offset in TextPiece where caret is. Caret must be visible and must be positioned by this positioner. Otherwise IllegalArgumentException is thrown.

Returns:
valid caret offset

hideCaret

void hideCaret()
Hides the Caret


showCaret

void showCaret()
Shows the Caret


showCaretBefore

void showCaretBefore(int index)
Shows Caret before character at position index.

Parameters:
index - index of character before which Caret to show.


Copyright © 2003-2006 null. All Rights Reserved.