public class OptionalContentOrderArray extends OptionalContentOrderNode
By placing OptionalContentOrderArrays into a higher-level array, branches can be added to the tree. The 'Title' property is a string that will appear next to the expand/collapse branch control in a PDF Viewer 'Layers' panel.
| Constructor and Description |
|---|
OptionalContentOrderArray(Document doc)
Create an OptionalContentOrderArray with no title.
|
OptionalContentOrderArray(Document doc,
java.lang.String title)
Create an OptionalContentOrderArray with a title.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(OptionalContentOrderNode node)
Adds an OptionalContentOrderNode to the end of the Array.
|
void |
delete() |
OptionalContentOrderNode |
get(int index)
Returns the OptionalContentOrderNode at the given index.
|
int |
getLength()
The number of OptionalContentOrderNodes in this array.
|
java.lang.String |
getTitle()
The title string of this Array.
|
void |
insert(int index,
OptionalContentOrderNode node)
Inserts an OptionalContentOrderNode at the given index, displacing existing objects.
|
void |
put(int index,
OptionalContentOrderNode node)
Puts an OptionalContentOrderNode at the given index, replacing the existing item.
|
void |
removeAt(int index)
Removes the OptionalContentOrderNode at the given index.
|
void |
setTitle(java.lang.String title)
The title string of this Array.
|
public OptionalContentOrderArray(Document doc)
doc - The Document this OptionalContentOrderArray is being created inpublic OptionalContentOrderArray(Document doc, java.lang.String title)
title - The string which will appear in the Layer control paneldoc - The Document this OptionalContentOrderArray is being created inpublic void delete()
delete in class OptionalContentOrderNodepublic java.lang.String getTitle()
This field may be set null to remove the title.
public void setTitle(java.lang.String title)
This field may be set null to remove the title.
title - The title string of this OptionalContentOrderArray.public int getLength()
public OptionalContentOrderNode get(int index)
index - The index at which to fetch an OptionalContentOrderNode.public void put(int index,
OptionalContentOrderNode node)
index - The index at which to replace the existing Nodenode - The OptionalContentOrderNode to place in the Arraypublic void insert(int index,
OptionalContentOrderNode node)
index - The index at which to insert the Nodenode - The OptionalContentOrderNode to insert in the Arraypublic void add(OptionalContentOrderNode node)
node - The OptionalContentOrderNode to append to the Arraypublic void removeAt(int index)
index - The index of the OptionalContentOrderNode to remove