java.lang.Object | |
↳ | com.pspdfkit.document.OutlineElement |
A document outline element (or "table of contents entry"), usually the header of a chapter.
Outline elements can be retrieved via getOutline()
. They can carry an Action
and thus allow quick navigation to document pages, or even external resources.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | OutlineElement.Builder | Builder for OutlineElement . |
|||||||||
@interface | OutlineElement.OutlineElementStyle | Style of outline element text. |
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | DEFAULT_COLOR | Default transparent color indicates no color is defined. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
boolean | equals(Object o) | ||||||||||
Action |
getAction()
Returns action be run when clicking on this element.
| ||||||||||
List<OutlineElement> |
getChildren()
Returns outline element children - outline is organized in a tree-like fashion.
| ||||||||||
int |
getColor()
Returns outline element color.
| ||||||||||
String |
getPageLabel()
Page label of target page if one exists and Action in
getAction() is a
go to page action. | ||||||||||
int |
getStyle()
Returns outline element text style.
| ||||||||||
String |
getTitle()
Returns outline title.
| ||||||||||
int | hashCode() | ||||||||||
boolean |
isExpanded()
Returns whether the outline element is expanded or not.
| ||||||||||
String | toString() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Default transparent color indicates no color is defined.
Returns action be run when clicking on this element.
null
.
Returns outline element children - outline is organized in a tree-like fashion.
Returns outline element color.
Page label of target page if one exists and Action in getAction()
is a
go to page action.
null
otherwise
Returns outline element text style.
Typeface
class
constants: NORMAL
, BOLD
, ITALIC
or BOLD_ITALIC
Returns whether the outline element is expanded or not.
true
if the outline element is expanded, false
otherwise.