|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextCursor
Cursor of a text document.
Method Summary | |
---|---|
ICharacterProperties |
getCharacterProperties()
Returns the character properties. |
ITextRange |
getEnd()
Returns end position of the cursor. |
short |
getEndPageNumber()
Returns the page number of the text cursor end, returns -1 if page number could not be determined. |
ITextRange |
getStart()
Returns start position of the cursor. |
short |
getStartPageNumber()
Returns the page number of the text cursor start, returns -1 if page number could not be determined. |
java.lang.String |
getString()
Gets the text that is marked by the cursor. |
void |
goLeft(short stepNumber,
boolean mark)
Goes to the submitted position. |
void |
goRight(short stepNumber,
boolean mark)
Goes to the submitted position. |
void |
gotoEnd(boolean mark)
Sets the cursor to the end position (wherever it is currently). |
void |
gotoEndOfParagraph(boolean mark)
Moves the cursor to the end of the current paragraph. |
void |
gotoEndOfSentence(boolean mark)
Moves the cursor to the end of the current sentence. |
boolean |
gotoEndOfWord(boolean mark)
Moves the cursor to the end of the current word. |
void |
gotoNextParagraph(boolean mark)
Moves the cursor to the next paragraph. |
void |
gotoNextSentence(boolean mark)
Moves the cursor to the next sentence. |
boolean |
gotoNextWord(boolean mark)
Moves the cursor to the next word. |
void |
gotoPreviousParagraph(boolean mark)
Moves the cursor to the previous paragraph. |
void |
gotoPreviousSentence(boolean mark)
Moves the cursor to the previous sentence. |
boolean |
gotoPreviousWord(boolean mark)
Moves the cursor to the previous word. |
void |
gotoRange(ITextRange range,
boolean mark)
Goes to the submitted position. |
void |
gotoStart(boolean mark)
Sets the cursor to the start position (wherever it is currently). |
void |
gotoStartOfParagraph(boolean mark)
Moves the cursor to the start of the current paragraph. |
void |
gotoStartOfSentence(boolean mark)
Moves the cursor to the start of the current sentence. |
boolean |
gotoStartOfWord(boolean mark)
Moves the cursor to the start of the current word. |
void |
insertDocument(java.io.InputStream inputStream,
IFilter filter)
Inserts a file stream at the current cursor location. |
void |
insertDocument(java.lang.String url)
Inserts a text document at the current cursor location. |
void |
insertPageBreak()
Inserts page break at the current cursor position. |
boolean |
isEndOfParagraph()
Returns if the cursor is positioned at the end of a paragraph. |
boolean |
isEndOfSentence()
Returns if the cursor is positioned at the end of a sentence. |
boolean |
isEndOfWord()
Returns if the cursor is positioned at the end of a word. |
boolean |
isStartOfParagraph()
Returns if the cursor is positioned at the start of a paragraph. |
boolean |
isStartOfSentence()
Returns if the cursor is positioned at the start of a sentence. |
boolean |
isStartOfWord()
Returns if the cursor is positioned at the start of a word. |
void |
setString(java.lang.String content)
Sets content to the cursor. |
boolean |
supportsParagraphCursor()
Returns if the current cursor supports paragraph cursor operations. |
boolean |
supportsSentenceCursor()
Returns if the current cursor supports sentence cursor operations. |
boolean |
supportsWordCursor()
Returns if the current cursor supports word cursor operations. |
Method Detail |
---|
ICharacterProperties getCharacterProperties()
void gotoEnd(boolean mark)
mark
- indicates if the space between the current
position and the end is to be markedvoid gotoStart(boolean mark)
mark
- indicates if the space between the current
position and the start is to be markedvoid gotoRange(ITextRange range, boolean mark)
range
- the range that specifies where to gotmark
- indicates if the space between the current
position and the new one is to be markedvoid setString(java.lang.String content)
content
- content to be usedjava.lang.String getString()
void goLeft(short stepNumber, boolean mark)
stepNumber
- stepNumber the number of cursor steps to jumpmark
- mark indicates if the space between the current
position and the new one is to be markedvoid goRight(short stepNumber, boolean mark)
stepNumber
- the number of cursor steps to jumpmark
- mark indicates if the space between the current
position and the new one is to be markedITextRange getStart()
ITextRange getEnd()
short getStartPageNumber()
short getEndPageNumber()
void insertPageBreak() throws NOAException
NOAException
- if the page break can not be setvoid insertDocument(java.lang.String url) throws NOAException
url
- URL of the document (must look like file:///c:/test.odt)
NOAException
- if the text document can not be insertedvoid insertDocument(java.io.InputStream inputStream, IFilter filter) throws NOAException
inputStream
- a file stream to be insertedfilter
- the filter that the stream is baes on
NOAException
- if the file stream can not be insertedboolean supportsWordCursor()
boolean isStartOfWord() throws NOAException
NOAException
- if word cursor operations are not supportedboolean isEndOfWord() throws NOAException
NOAException
- if word cursor operations are not supportedboolean gotoNextWord(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedboolean gotoPreviousWord(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedboolean gotoEndOfWord(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedboolean gotoStartOfWord(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if word cursor operations are not supportedboolean supportsSentenceCursor()
boolean isStartOfSentence() throws NOAException
NOAException
- if sentence cursor operations are not supportedboolean isEndOfSentence() throws NOAException
NOAException
- if sentence cursor operations are not supportedvoid gotoNextSentence(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedvoid gotoPreviousSentence(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedvoid gotoEndOfSentence(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedvoid gotoStartOfSentence(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if sentence cursor operations are not supportedboolean supportsParagraphCursor()
boolean isStartOfParagraph() throws NOAException
NOAException
- if paragraph cursor operations are not supportedboolean isEndOfParagraph() throws NOAException
NOAException
- if paragraph cursor operations are not supportedvoid gotoNextParagraph(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supportedvoid gotoPreviousParagraph(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supportedvoid gotoEndOfParagraph(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supportedvoid gotoStartOfParagraph(boolean mark) throws NOAException
mark
- mark indicates if the space between the current
position and the new one is to be marked
NOAException
- if paragraph cursor operations are not supported
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |