|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ParagraphContainer
ParagraphContainer is a container which maintains paragraph(s) as element(s). Paragraph(s) can be added and removed in this container.
Paragraph
,
TextDocument
Method Summary | |
---|---|
Paragraph |
addParagraph(String textContent)
Add paragraph at the end of the container with specified text content. |
Paragraph |
getParagraphByIndex(int index,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index. |
Paragraph |
getParagraphByReverseIndex(int reverseIndex,
boolean isEmptyParagraphSkipped)
Return a paragraph with a given index. |
OdfElement |
getParagraphContainerElement()
Get the ODF element which can have |
Iterator<Paragraph> |
getParagraphIterator()
Return an Iterator of the paragraph in this container. |
boolean |
removeParagraph(Paragraph para)
Remove paragraph from the container |
Method Detail |
---|
Paragraph addParagraph(String textContent)
textContent
- - the text content
boolean removeParagraph(Paragraph para)
para
- - the instance of paragraph
OdfElement getParagraphContainerElement()
Iterator<Paragraph> getParagraphIterator()
Paragraph getParagraphByIndex(int index, boolean isEmptyParagraphSkipped)
An index of zero represents the first paragraph.
If empty paragraph is skipped, the empty paragraph won't be counted.
index
- - the index started from 0.isEmptyParagraphSkipped
- - whether the empty paragraph is skipped or not
Paragraph getParagraphByReverseIndex(int reverseIndex, boolean isEmptyParagraphSkipped)
An index of zero represents the last paragraph.
If empty paragraph is skipped, the empty paragraph won't be counted.
reverseIndex
- - the index started from 0 in reverse order.isEmptyParagraphSkipped
- - whether the empty paragraph is skipped or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |