public class OutlineItem extends NativeObject
Modifier and Type | Method and Description |
---|---|
static OutlineItem |
copy(Document targetDocument,
OutlineItem outlineItem,
OutlineCopyOptions options)
Copy an outline item
|
static OutlineItem |
create(Document targetDocument,
java.lang.String title,
Destination destination)
Create a new outline item (bookmark).
|
static OutlineItem |
createDynamicObject(long handle) |
boolean |
getBold()
If
true , the outline item is displayed in bold font. |
OutlineItemList |
getChildren()
The child items of this outline item.
|
Destination |
getDestination()
The destination of the outline item.
|
boolean |
getIsOpen()
If
true , the item is expanded. |
boolean |
getItalic()
If
true , the outline item is displayed in italic font. |
java.lang.String |
getTitle()
The title of the outline item.
|
void |
setBold(boolean value)
If
true , the outline item is displayed in bold font. |
void |
setDestination(Destination value)
The destination of the outline item.
|
void |
setIsOpen(boolean value)
If
true , the item is expanded. |
void |
setItalic(boolean value)
If
true , the outline item is displayed in italic font. |
void |
setTitle(java.lang.String value)
The title of the outline item.
|
equals, hashCode
public static OutlineItem createDynamicObject(long handle)
public static OutlineItem create(Document targetDocument, java.lang.String title, Destination destination)
targetDocument
- The output document with which the returned object is associatedtitle
- The title of the newly created outline item.destination
- The destination that this outline item refers to or
null
if the item has no destination.java.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- if the title
argument is null
java.lang.IllegalArgumentException
- if the destination
argument has already been closedjava.lang.IllegalArgumentException
- if the destination
argument belongs to a different documentpublic static OutlineItem copy(Document targetDocument, OutlineItem outlineItem, OutlineCopyOptions options) throws java.io.IOException, ConformanceException
targetDocument
.
The returned object is associated with the given target document but not yet part of it.targetDocument
- the output document with which the returned object is associatedoutlineItem
- An outline item of a different documentoptions
- The options used to copy the itemConformanceException
- The conformance level of the source document is not compatible
with the conformance level of the target document.java.lang.IllegalArgumentException
- if the targetDocument
argument is null
java.lang.IllegalArgumentException
- if the targetDocument
argument has already been closedjava.lang.IllegalArgumentException
- if the targetDocument
argument is read-onlyjava.lang.IllegalArgumentException
- if the outlineItem
argument is not associated with an input documentjava.lang.IllegalArgumentException
- the target document contains implicitly copied outline itemsjava.lang.IllegalArgumentException
- the outlineItem
argument is null
java.lang.IllegalArgumentException
- the outlineItem
argument is not associated with an input documentjava.io.IOException
- Error reading from the source document or writing to the target documentpublic java.lang.String getTitle()
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.public void setTitle(java.lang.String value)
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.java.lang.UnsupportedOperationException
- the object is not associated to an output document.public boolean getBold()
true
, the outline item is displayed in bold font.java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.public void setBold(boolean value)
true
, the outline item is displayed in bold font.java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.java.lang.UnsupportedOperationException
- the object is not associated to an output document.public boolean getItalic()
true
, the outline item is displayed in italic font.java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.public void setItalic(boolean value)
true
, the outline item is displayed in italic font.java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.java.lang.UnsupportedOperationException
- the object is not associated to an output document.public Destination getDestination()
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.java.lang.UnsupportedOperationException
- the object is not associated to an input document.public void setDestination(Destination value)
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.java.lang.UnsupportedOperationException
- the object is not associated to an output document.public boolean getIsOpen()
true
, the item is expanded.
false
, the item is collapsed.
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.public void setIsOpen(boolean value)
true
, the item is expanded.
false
, the item is collapsed.
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.java.lang.UnsupportedOperationException
- the object is not associated to an output document.public OutlineItemList getChildren()
java.lang.IllegalStateException
- the object has already been closed.java.lang.IllegalStateException
- the associated document has already been closed.