Method from org.apache.pdfbox.pdmodel.interactive.action.type.PDAction Detail: |
public COSDictionary getCOSDictionary() {
return action;
}
Convert this standard java object to a COS object. |
public COSBase getCOSObject() {
return action;
}
Convert this standard java object to a COS object. |
public List getNext() {
List retval = null;
COSBase next = action.getDictionaryObject( "Next" );
if( next instanceof COSDictionary )
{
PDAction pdAction = PDActionFactory.createAction( (COSDictionary) next );
retval = new COSArrayList(pdAction, next, action, COSName.getPDFName( "Next" ));
}
else if( next instanceof COSArray )
{
COSArray array = (COSArray)next;
List actions = new ArrayList();
for( int i=0; i< array.size(); i++ )
{
actions.add( PDActionFactory.createAction( (COSDictionary) array.getObject( i )));
}
retval = new COSArrayList( actions, array );
}
return retval;
}
This will get the next action, or sequence of actions, to be performed after this one.
The value is either a single action dictionary or an array of action dictionaries
to be performed in order. |
public String getSubType() {
return action.getNameAsString( "S" );
}
This will get the type of action that the actions dictionary describes.
If present, must be Action for an action dictionary. |
public String getType() {
return action.getNameAsString( "Type" );
}
This will get the type of PDF object that the actions dictionary describes.
If present must be Action for an action dictionary. |
public void setNext(List next) {
action.setItem( "Next", COSArrayList.converterToCOSArray( next ) );
}
This will set the next action, or sequence of actions, to be performed after this one.
The value is either a single action dictionary or an array of action dictionaries
to be performed in order. |
public void setSubType(String s) {
action.setName( "S", s );
}
This will set the type of action that the actions dictionary describes.
If present, must be Action for an action dictionary. |
public void setType(String type) {
action.setName( "Type", type );
}
This will set the type of PDF object that the actions dictionary describes.
If present must be Action for an action dictionary. |