|
Nekit v 0.9 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
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 |
public void newPosition()
public boolean isActive()
public boolean handleNewLine(int pos)
pos - the caret position
|
Nekit v 0.9 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||