|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITextPieceContainer
Container for ITextPieceKeepers. Holds together ITextPieceKeepers for text of one node. They are ordered and indexed as follows text in node they keeps. Only in noticed order can be added to container. Container creates ItextPieceInfo for each added and stores it. Node is identified by id.
Method Summary | |
---|---|
List<ITextPieceKeeper> |
getAll()
Returns all stored ITextPieceKeeper. |
ITextPieceInfo |
getInfo(ITextPieceKeeper forPiece)
Returns ITextPieceInfo for ITextPieceKeeper. |
ITextPieceKeeper |
getNext(ITextPieceKeeper piece)
Returns next stored ITextPieceKeeper in order they are stored. |
ITextPieceKeeper |
getPiece(int index)
Returns ITextPieceKeeper stored with index index. |
int |
getPieceCount()
Returns number of all stored pieces. |
ITextPieceKeeper |
getPrevious(ITextPieceKeeper piece)
Returns previous stored ITextPieceKeeper in order they are stored. |
String |
getWholeContainerText()
|
int |
indexOf(ITextPieceKeeper piece)
Returns index of ITextPieceKeeper piece in this container as is stored. |
ITextPieceKeeper |
OffsetInPieceKeeper(int offset)
|
Method Detail |
---|
ITextPieceKeeper getPiece(int index)
index
- of wanted keeper
int getPieceCount()
ITextPieceInfo getInfo(ITextPieceKeeper forPiece)
forPiece
- ITextPieceKeeper stored in this container
List<ITextPieceKeeper> getAll()
ITextPieceKeeper getNext(ITextPieceKeeper piece)
piece
- asked for successor
piece
is the last partITextPieceKeeper getPrevious(ITextPieceKeeper piece)
piece
- asked for predeccessor
piece
is the first partint indexOf(ITextPieceKeeper piece)
piece
- asked for index
ITextPieceKeeper OffsetInPieceKeeper(int offset)
offset
- offset of whole text in textual Node
String getWholeContainerText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |