Nekit
v 0.9

com.nekhem.nekit
Interface CaretContext

All Known Implementing Classes:
ListContext

public interface CaretContext

A Context is a region of text that follows different rules (at present there's only ListContext, for bullet lists) Every time the caret is moved, NekitPane cycles through all context to see if one is Active. So certain events (newline, ...) are dispatched to that context. Besides the Context can provide utility methods that are correlated.


Method Summary
 boolean handleNewLine(int pos)
          Handle the new line event according to the rules of this context
 boolean isActive()
          Is the caret in this Context?
 void newPosition()
          The caret has been moved to a new Position
 

Method Detail

newPosition

public void newPosition()
The caret has been moved to a new Position


isActive

public boolean isActive()
Is the caret in this Context?

Returns:
trivial

handleNewLine

public boolean handleNewLine(int pos)
Handle the new line event according to the rules of this context

Parameters:
pos - the caret position
Returns:
true if completely handled

Nekit
v 0.9

Submit a bug or feature
Nekhem Technologies