|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.odfdom.incubator.search.Selection
org.odftoolkit.simple.common.navigation.Selection
in Simple API.
public abstract class Selection
Abstract class Selection describe one of the matched results The selection can be recognized by the container mElement, the start mIndex of the text content of this mElement and the text content.
Constructor Summary | |
---|---|
Selection()
Deprecated. |
Method Summary | |
---|---|
abstract void |
cut()
Deprecated. cut the current selection |
OdfElement |
getElement()
Deprecated. get the container mElement of this selection |
int |
getIndex()
Deprecated. get the start mIndex of the text content of the container mElement this is only meaningful for TextSelection. |
abstract void |
pasteAtEndOf(Selection positionitem)
Deprecated. paste the current selection at end of the specified position selection |
abstract void |
pasteAtFrontOf(Selection positionitem)
Deprecated. paste the current selection at front of the specified position selection |
protected abstract void |
refresh(int offset)
Deprecated. A quick method to update the mIndex of this selection |
protected abstract void |
refreshAfterFrontalDelete(Selection deleteditem)
Deprecated. when a selected item has been delete, the selections after this deleted selection should be refresh because these selections mIndex will be changed |
protected abstract void |
refreshAfterFrontalInsert(Selection inserteditem)
Deprecated. when a selected item has been inserted, the selection after the inserted item should be refresh because these selections mIndex will be changed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Selection()
Method Detail |
---|
public OdfElement getElement()
public int getIndex()
public abstract void cut() throws InvalidNavigationException
InvalidNavigationException
public abstract void pasteAtFrontOf(Selection positionitem) throws InvalidNavigationException
positionitem
- the position selection
InvalidNavigationException
public abstract void pasteAtEndOf(Selection positionitem) throws InvalidNavigationException
positionitem
- the position selection
InvalidNavigationException
protected abstract void refreshAfterFrontalDelete(Selection deleteditem)
deleteditem
- the deleted selectionprotected abstract void refreshAfterFrontalInsert(Selection inserteditem)
inserteditem
- the inserted selectionprotected abstract void refresh(int offset)
offset
- the offset that the mIndex should be added
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |