com.lowagie.text
public class MarkedSection extends MarkedObject
Field Summary | |
---|---|
protected MarkedObject | title This is the title of this section. |
Constructor Summary | |
---|---|
MarkedSection(Section section)
Creates a MarkedObject with a Section or Chapter object. |
Method Summary | |
---|---|
void | add(int index, Object o)
Adds a Paragraph , List or Table
to this Section .
|
boolean | add(Object o)
Adds a Paragraph , List , Table or another Section
to this Section .
|
boolean | addAll(Collection collection)
Adds a collection of Element s
to this Section .
|
MarkedSection | addSection(float indentation, int numberDepth)
Creates a Section , adds it to this Section and returns it.
|
MarkedSection | addSection(float indentation)
Creates a Section , adds it to this Section and returns it.
|
MarkedSection | addSection(int numberDepth)
Creates a Section , add it to this Section and returns it.
|
MarkedSection | addSection()
Creates a Section , adds it to this Section and returns it.
|
MarkedObject | getTitle()
Gets the title of this MarkedSection. |
void | newPage()
Adds a new page to the section. |
boolean | process(ElementListener listener)
Processes the element by adding it (or the different parts) to an
ElementListener .
|
void | setBookmarkOpen(boolean bookmarkOpen) Setter for property bookmarkOpen. |
void | setBookmarkTitle(String bookmarkTitle)
Sets the bookmark title. |
void | setIndentation(float indentation)
Sets the indentation of the content of this Section .
|
void | setIndentationLeft(float indentation)
Sets the indentation of this Section on the left side.
|
void | setIndentationRight(float indentation)
Sets the indentation of this Section on the right side.
|
void | setNumberDepth(int numberDepth)
Sets the depth of the sectionnumbers that will be shown preceding the title.
|
void | setTitle(MarkedObject title)
Sets the title of this section.
|
void | setTriggerNewPage(boolean triggerNewPage)
Setter for property triggerNewPage. |
Parameters: section the marked section
Paragraph
, List
or Table
to this Section
.
Parameters: index index at which the specified element is to be inserted o an object of type Paragraph
, List
or Table
=
Throws: ClassCastException if the object is not a Paragraph
, List
or Table
Paragraph
, List
, Table
or another Section
to this Section
.
Parameters: o an object of type Paragraph
, List
, Table
or another Section
Returns: a boolean
Throws: ClassCastException if the object is not a Paragraph
, List
, Table
or Section
Element
s
to this Section
.
Parameters: collection a collection of Paragraph
s, List
s and/or Table
s
Returns: true
if the action succeeded, false
if not.
Throws: ClassCastException if one of the objects isn't a Paragraph
, List
, Table
Section
, adds it to this Section
and returns it.
Parameters: indentation the indentation of the new section numberDepth the numberDepth of the section
Returns: a new Section object
Section
, adds it to this Section
and returns it.
Parameters: indentation the indentation of the new section
Returns: a new Section object
Section
, add it to this Section
and returns it.
Parameters: numberDepth the numberDepth of the section
Returns: a new Section object
Section
, adds it to this Section
and returns it.
Returns: a new Section object
Returns: a MarkObject with a Paragraph containing the title of a Section
Since: iText 2.0.8
Since: 2.1.1
ElementListener
.
Parameters: listener an ElementListener
Returns: true
if the element was processed successfully
Parameters: bookmarkOpen false if the bookmark children are not visible.
Parameters: bookmarkTitle the bookmark title
Section
.
Parameters: indentation the indentation
Section
on the left side.
Parameters: indentation the indentation
Section
on the right side.
Parameters: indentation the indentation
If the numberdepth is 0, the sections will not be numbered. If the numberdepth is 1, the section will be numbered with their own number. If the numberdepth is higher (for instance x > 1), the numbers of x - 1 parents will be shown.
Parameters: numberDepth the new numberDepth
Parameters: title the new title
Parameters: triggerNewPage true if a new page has to be triggered.