ActionCollection
Inheritance: java.lang.Object
All Implemented Interfaces: java.lang.Iterable
public final class ActionCollection implements Iterable<PdfAction>
Collection of actions
Methods
Method | Description |
---|---|
size() | Count of actions on the collection. |
isSynchronized() | Returns true if object is synchronized. |
getSyncRoot() | Gets synchronization object. |
isReadOnly() | Returns true if collection is readonly. |
add(PdfAction action) | Adds new action into colleciton. |
delete(int index) | Removes action from collection by index. |
delete() | Delete all actions. |
copyTo(PdfAction[] array, int index) | Copies actions array into collection. |
iterator() | Returns enumerator for collection. |
clear() | Clear collection. |
contains(PdfAction item) | Not supported yet. |
remove(PdfAction item) | * Not supported yet. |
get_Item(int index) | Gets action by its index. |
size()
public int size()
Count of actions on the collection.
Returns: int - int value
isSynchronized()
public boolean isSynchronized()
Returns true if object is synchronized.
Returns: boolean - boolean value
getSyncRoot()
public Object getSyncRoot()
Gets synchronization object.
Returns: java.lang.Object - Object value
isReadOnly()
public boolean isReadOnly()
Returns true if collection is readonly.
Returns: boolean - boolean value
add(PdfAction action)
public void add(PdfAction action)
Adds new action into colleciton.
Parameters:
Parameter | Type | Description |
---|---|---|
action | PdfAction | Action which should be added. |
delete(int index)
public void delete(int index)
Removes action from collection by index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of action to remove. |
delete()
public void delete()
Delete all actions.
copyTo(PdfAction[] array, int index)
public void copyTo(PdfAction[] array, int index)
Copies actions array into collection.
Parameters:
Parameter | Type | Description |
---|---|---|
array | PdfAction[] | Array of actions which must be copied into collection. |
index | int | Index starting from which array will be copied. |
iterator()
public System.Collections.IEnumerator<PdfAction> iterator()
Returns enumerator for collection.
Returns: com.aspose.ms.System.Collections.IEnumerator<com.aspose.pdf.PdfAction> - Collection enumerator.
clear()
public void clear()
Clear collection.
contains(PdfAction item)
public boolean contains(PdfAction item)
Not supported yet.
Returns true if give item presents in the collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | PdfAction | PdfAction instance Not implemented. |
Returns: boolean - boolean value Item to find.
remove(PdfAction item)
public boolean remove(PdfAction item)
* Not supported yet.
Removes item from collection.
Parameters:
Parameter | Type | Description |
---|---|---|
item | PdfAction | Item to delete. |
Returns: boolean - boolean value Not implemented.
get_Item(int index)
public PdfAction get_Item(int index)
Gets action by its index.
Parameters:
Parameter | Type | Description |
---|---|---|
index | int | Index of action. |
Returns: PdfAction - Retreived action.