|
||||||||||
| 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.TextContent
public class TextContent
| Field Summary | |
|---|---|
static int |
NO_WRAPPING
|
static int |
WRAPPING
|
| Constructor Summary | |
|---|---|
TextContent(TextBlockTarget target,
int noLines,
int wrapStyle)
|
|
| Method Summary | |
|---|---|
void |
alignDisplay(int line)
Aligns the lines of content so that the specified line is within the array of lines returned by getDisplayLines(). |
void |
breakBlock(CursorPosition cursorAt)
|
boolean |
decreaseDepth()
|
void |
delete(TextSelection selection)
deletes the selected text |
void |
deleteLeft(CursorPosition cursorAt)
|
void |
deleteRight(CursorPosition cursorAt)
|
int |
getDisplayFromLine()
|
java.lang.String[] |
getDisplayLines()
|
int |
getNoDisplayLines()
Returns the number of lines that this field will display the content. |
int |
getNoLinesOfContent()
Returns the number of lines required to display the content text in it entirety. |
java.lang.String |
getText()
returns the entire text of the content, with a newline between each block (but not after the final block. |
java.lang.String |
getText(int forLine)
returns the text on the specified line |
java.lang.String |
getText(TextSelection selection)
returns only the text that is selected |
void |
increaseDepth()
|
void |
insert(CursorPosition cursorAt,
java.lang.String characters)
|
void |
setNoDisplayLines(int noDisplayLines)
|
void |
setText(java.lang.String text)
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_WRAPPING
public static final int WRAPPING
| Constructor Detail |
|---|
public TextContent(TextBlockTarget target,
int noLines,
int wrapStyle)
| Method Detail |
|---|
public int getNoDisplayLines()
public void alignDisplay(int line)
getDisplayLines()public void breakBlock(CursorPosition cursorAt)
public void delete(TextSelection selection)
public void deleteLeft(CursorPosition cursorAt)
public void deleteRight(CursorPosition cursorAt)
public java.lang.String getText()
public java.lang.String getText(int forLine)
public java.lang.String getText(TextSelection selection)
public void insert(CursorPosition cursorAt,
java.lang.String characters)
public int getNoLinesOfContent()
public void setText(java.lang.String text)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String[] getDisplayLines()
public int getDisplayFromLine()
public void setNoDisplayLines(int noDisplayLines)
public void increaseDepth()
public boolean decreaseDepth()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||