ActionCollection

Inheritance: java.lang.Object

All Implemented Interfaces: java.lang.Iterable

public final class ActionCollection implements Iterable<PdfAction>

Collection of actions

Methods

MethodDescription
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:

ParameterTypeDescription
actionPdfActionAction which should be added.

delete(int index)

public void delete(int index)

Removes action from collection by index.

Parameters:

ParameterTypeDescription
indexintIndex 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:

ParameterTypeDescription
arrayPdfAction[]Array of actions which must be copied into collection.
indexintIndex 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:

ParameterTypeDescription
itemPdfActionPdfAction 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:

ParameterTypeDescription
itemPdfActionItem to delete.

Returns: boolean - boolean value Not implemented.

get_Item(int index)

public PdfAction get_Item(int index)

Gets action by its index.

Parameters:

ParameterTypeDescription
indexintIndex of action.

Returns: PdfAction - Retreived action.