|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--ru.novosoft.dc.rtf.dom.RTFSection
A section of the RTF DOM. It contains a section context and a number of flows: up to 8 header and footer flows and the section flow. Headers and footers are stored in the internal array and are accessed by their indices. The use of header and footers depends on the document "two side" mode and the section "title page" mode:
| Field Summary | |
static byte |
ANY_FOOTER
Index of the footer of other pages of the section (in one side mode). |
static byte |
ANY_HEADER
Index of the header of other pages of the section (in one side mode). |
static byte |
FIRST_FOOTER
Index of the footer on the first page of the section (in title page mode). |
static byte |
FIRST_HEADER
Index of the header on the first page of the section (in title page mode). |
static byte |
LEFT_FOOTER
Index of the footer of left pages of the section (in two side mode). |
static byte |
LEFT_HEADER
Index of the header of left pages of the section (in two side mode). |
static byte |
RIGHT_FOOTER
Index of the footer of right pages of the section (in two side mode). |
static byte |
RIGHT_HEADER
Index of the header of right pages of the section (in two side mode). |
| Constructor Summary | |
RTFSection(SectionContext context)
Construct a new section with an empty flow and binds the context with the newly created section. |
|
| Method Summary | |
void |
bindWithContext(SectionContext context)
Bind this section with a context and establish two-side links between them. |
RTFFlow |
content()
Return the section content. |
SectionContext |
context()
Return the section context. |
void |
exportTo(org.w3c.dom.Element elem)
Export the contents of this object to the specified DOM element. |
RTFFlow |
getHeaderOrFooter(int index)
Return the flow of header or footer of the specified index. |
int |
getPageNumber()
Return a starting page number. |
boolean |
hasRestartPageNumber()
Return true if the section must restart with the specified page number. |
void |
setHeaderOrFooter(int index,
RTFFlow value)
Set a header or footer of the specified index. |
void |
setHeadersAndFootersAs(RTFSection section)
Set headers and footers of this section as headers and footers of the specified section. |
void |
setPageNumber(int value)
Set a page number for the first page in the section. |
void |
setRestartPageNumber(boolean value)
Set a value of the restart page number flag. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static final byte FIRST_HEADER
public static final byte FIRST_FOOTER
public static final byte ANY_HEADER
public static final byte ANY_FOOTER
public static final byte LEFT_HEADER
public static final byte LEFT_FOOTER
public static final byte RIGHT_HEADER
public static final byte RIGHT_FOOTER
| Constructor Detail |
public RTFSection(SectionContext context)
| Method Detail |
public final void bindWithContext(SectionContext context)
public final SectionContext context()
public final void setPageNumber(int value)
public final int getPageNumber()
public final void setRestartPageNumber(boolean value)
public final boolean hasRestartPageNumber()
public final void setHeaderOrFooter(int index,
RTFFlow value)
public final RTFFlow getHeaderOrFooter(int index)
public final void setHeadersAndFootersAs(RTFSection section)
public final RTFFlow content()
public void exportTo(org.w3c.dom.Element elem)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||