|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nakedobjects.plugins.dnd.viewer.view.text.TextSelection
public class TextSelection
| Constructor Summary | |
|---|---|
TextSelection(TextContent content)
|
|
| Method Summary | |
|---|---|
void |
extendTo(CursorPosition pos)
|
void |
extendTo(Location at)
extends the selection so the end point is the same as the cursor. |
CursorPosition |
from()
|
boolean |
hasSelection()
returns true is a selection exists - if the start and end locations are not the same |
void |
resetTo(CursorPosition pos)
clears the selection so nothing is selected. |
void |
selectSentence()
|
void |
selectWord()
set the selection to be for the word marked by the current cursor |
CursorPosition |
to()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TextSelection(TextContent content)
| Method Detail |
|---|
public void extendTo(CursorPosition pos)
public void extendTo(Location at)
public CursorPosition from()
public boolean hasSelection()
public void resetTo(CursorPosition pos)
public void selectSentence()
public void selectWord()
public CursorPosition to()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||