Package | Description |
---|---|
org.odftoolkit.simple.common.navigation |
Provide classes to operate the content and style of the selected text content.
|
Modifier and Type | Method and Description |
---|---|
void |
TextSelection.addComment(String content,
String creator)
Add a comment to the selection.
|
void |
TextSelection.addHref(URL url)
Add a hypertext reference to the selection.
|
void |
CellSelection.advancedReplaceWith(String newText)
Replace the text content of selection with a new string.
|
void |
CellSelection.advancedReplaceWith(String newText,
CellValueAdapter adapter)
Replace the text content of selection with a new string.
|
void |
TextSelection.applyStyle(OdfStyleBase style)
Apply a style to the selection so that the text style of this selection
will append the specified style.
|
void |
FieldSelection.applyStyle(OdfStyleBase style)
Apply a style to the selection so that the text style of this selection
will append the specified style.
|
TextSpanElement |
TextSelection.createSpanElement()
Create a span element for this text selection.
|
void |
TableSelection.cut()
Delete the selection from the document the other matched selection in the
same container element will be updated automatically because the start
index of the following selections will be changed when the previous
selection has been deleted.
|
void |
ImageSelection.cut()
Delete the selection from the document the other matched selection in the
same container element will be updated automatically because the start
index of the following selections will be changed when the previous
selection has been deleted.
|
void |
TextDocumentSelection.cut()
Delete the selection from the document the other matched selection in the
same container element will be updated automatically because the start
index of the following selections will be changed when the previous
selection has been deleted.
|
void |
ParagraphSelection.cut()
Delete the selection from the document the other matched selection in the
same container element will be updated automatically because the start
index of the following selections will be changed when the previous
selection has been deleted.
|
abstract void |
Selection.cut()
Cut current
Selection . |
void |
TextSelection.cut()
Delete the selection from the document the other matched selection in the
same container element will be updated automatically because the start
index of the following selections will be changed when the previous
selection has been deleted.
|
void |
FieldSelection.cut()
Delete the selection from the document the other matched selection in the
same container element will be updated automatically because the start
index of the following selections will be changed when the previous
selection has been deleted.
|
void |
TableSelection.pasteAtEndOf(Selection positionItem)
Paste this selection just after a specific selection.
|
void |
ImageSelection.pasteAtEndOf(Selection positionItem)
Paste this selection just after a specific selection.
|
void |
TextDocumentSelection.pasteAtEndOf(Selection positionItem)
Paste this selection just after a specific selection.
|
void |
ParagraphSelection.pasteAtEndOf(Selection positionItem)
Paste this selection just after a specific selection.
|
abstract void |
Selection.pasteAtEndOf(Selection positionItem)
Paste current
Selection at end of the specified position
Selection . |
void |
TextSelection.pasteAtEndOf(Selection positionItem)
Paste this selection just after a specific selection.
|
void |
FieldSelection.pasteAtEndOf(Selection positionItem)
Paste this selection just after a specific selection.
|
void |
TableSelection.pasteAtFrontOf(Selection positionItem)
Paste this selection just before a specific selection.
|
void |
ImageSelection.pasteAtFrontOf(Selection positionItem)
Paste this selection just before a specific selection.
|
void |
TextDocumentSelection.pasteAtFrontOf(Selection positionItem)
Paste this selection just before a specific selection.
|
void |
ParagraphSelection.pasteAtFrontOf(Selection positionItem)
Paste this selection just before a specific selection.
|
abstract void |
Selection.pasteAtFrontOf(Selection positionItem)
Paste current
Selection at front of the specified position
Selection . |
void |
TextSelection.pasteAtFrontOf(Selection positionItem)
Paste this selection just before a specific selection.
|
void |
FieldSelection.pasteAtFrontOf(Selection positionItem)
Paste this selection just before a specific selection.
|
Field |
TextSelection.replaceWith(Field orgField)
Replace the content with a Field
|
Image |
TextSelection.replaceWith(Image newImage)
Replace the text content of selection with a new Image.
|
Paragraph |
TextSelection.replaceWith(Paragraph newParagraph)
Replace the content with a paragraph, the paragraph can be in the same TextDocument or in a different Document.
|
void |
TextSelection.replaceWith(String newText)
Replace the text content of selection with a new string.
|
void |
FieldSelection.replaceWith(String newText)
Replace the text content of selection with a new string.
|
Table |
TextSelection.replaceWith(Table newTable)
Replace the text content of selection with a new Table.
|
void |
TextSelection.replaceWith(TextDocument newTextDocument)
Replace the content with a TextDocument with Styles.
|
Image |
TextSelection.replaceWith(URI imageUri)
Replace the text content of selection with a new Image.
|
Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.