@Override protected PDActionJavaScript convertCOSToPD( COSBase base ) throws IOException { if (!(base instanceof COSDictionary)) { throw new IOException( "Error creating Javascript object, expected a COSDictionary and not " + base); } return (PDActionJavaScript)PDActionFactory.createAction((COSDictionary) base); }
/** * Get the F action. * * @return The F action. */ public PDAction getF() { return PDActionFactory.createAction( (COSDictionary)actions.getDictionaryObject(COSName.F ) ); }
/** * This will get the action that is associated with this field. * * @return The A entry in the field dictionary. */ public PDAction getAction() { return PDActionFactory.createAction((COSDictionary) field.getDictionaryObject(COSName.A)); }
/** * This will get an action to be performed when the page containing * the annotation becomes visible in the viewer application's user interface. * * @return The PV entry of annotation's additional actions dictionary. */ public PDAction getPV() { COSDictionary pv = (COSDictionary)actions.getDictionaryObject( "PV" ); PDAction retval = null; if( pv != null ) { retval = PDActionFactory.createAction( pv ); } return retval; }
/** * This will get an action to be performed when the mouse button * is released inside the annotation's active area. * The name U stands for "up". * * @return The U entry of annotation's additional actions dictionary. */ public PDAction getU() { COSDictionary u = (COSDictionary)actions.getDictionaryObject( "U" ); PDAction retval = null; if( u != null ) { retval = PDActionFactory.createAction( u ); } return retval; }
/** * This will get a JavaScript action to be performed * before printing a document. * The name WP stands for "will print". * * @return The WP entry of document catalog's additional actions dictionary. */ public PDAction getWP() { COSDictionary wp = (COSDictionary)actions.getDictionaryObject( "WP" ); PDAction retval = null; if( wp != null ) { retval = PDActionFactory.createAction( wp ); } return retval; }
/** * This will get an action to be performed when the page containing * the annotation is closed. The action is executed before the C action * in the page's additional actions dictionary, if present. * * @return The PC entry of annotation's additional actions dictionary. */ public PDAction getPC() { COSDictionary pc = (COSDictionary)actions.getDictionaryObject( "PC" ); PDAction retval = null; if( pc != null ) { retval = PDActionFactory.createAction( pc ); } return retval; }
/** * This will get an action to be performed when the cursor * enters the annotation's active area. * * @return The E entry of annotation's additional actions dictionary. */ public PDAction getE() { COSDictionary e = (COSDictionary)actions.getDictionaryObject( "E" ); PDAction retval = null; if( e != null ) { retval = PDActionFactory.createAction( e ); } return retval; }
/** * This will get an action to be performed when the page containing the annotation * is no longer visible in the viewer application's user interface. * * @return The PI entry of annotation's additional actions dictionary. */ public PDAction getPI() { COSDictionary pi = (COSDictionary)actions.getDictionaryObject( "PI" ); PDAction retval = null; if( pi != null ) { retval = PDActionFactory.createAction( pi ); } return retval; }
/** * This will get an action to be performed when the page * is opened. This action is independent of any that may be * defined by the OpenAction entry in the document catalog, * and is executed after such an action. * * @return The O entry of page object's additional actions dictionary. */ public PDAction getO() { COSDictionary o = (COSDictionary) actions.getDictionaryObject(COSName.O); PDAction retval = null; if( o != null ) { retval = PDActionFactory.createAction( o ); } return retval; }
/** * This will get an action to be performed when the cursor * exits the annotation's active area. * * @return The X entry of annotation's additional actions dictionary. */ public PDAction getX() { COSDictionary x = (COSDictionary)actions.getDictionaryObject( "X" ); PDAction retval = null; if( x != null ) { retval = PDActionFactory.createAction( x ); } return retval; }
/** * This will get an action to be performed when the annotation * receives the input focus. * * @return The Fo entry of annotation's additional actions dictionary. */ public PDAction getFo() { COSDictionary fo = (COSDictionary)actions.getDictionaryObject( "Fo" ); PDAction retval = null; if( fo != null ) { retval = PDActionFactory.createAction( fo ); } return retval; }
/** * This will get a JavaScript action to be performed * before closing a document. * The name WC stands for "will close". * * @return The WC entry of document catalog's additional actions dictionary. */ public PDAction getWC() { COSDictionary wc = (COSDictionary)actions.getDictionaryObject( "WC" ); PDAction retval = null; if( wc != null ) { retval = PDActionFactory.createAction( wc ); } return retval; }
/** * This will get a JavaScript action to be performed * after printing a document. * The name DP stands for "did print". * * @return The DP entry of document catalog's additional actions dictionary. */ public PDAction getDP() { COSDictionary dp = (COSDictionary)actions.getDictionaryObject( "DP" ); PDAction retval = null; if( dp != null ) { retval = PDActionFactory.createAction( dp ); } return retval; }
/** * This will get an action to be performed when the mouse button * is pressed inside the annotation's active area. * The name D stands for "down". * * @return The d entry of annotation's additional actions dictionary. */ public PDAction getD() { COSDictionary d = (COSDictionary)actions.getDictionaryObject( COSName.D ); PDAction retval = null; if( d != null ) { retval = PDActionFactory.createAction( d ); } return retval; }
/** * This will get an action to be performed when the annotation * loses the input focus. * The name Bl stands for "blurred". * * @return The Bl entry of annotation's additional actions dictionary. */ public PDAction getBl() { COSDictionary bl = (COSDictionary)actions.getDictionaryObject( "Bl" ); PDAction retval = null; if( bl != null ) { retval = PDActionFactory.createAction( bl ); } return retval; }
/** * This will get a JavaScript action to be performed * before saving a document. * The name WS stands for "will save". * * @return The WS entry of document catalog's additional actions dictionary. */ public PDAction getWS() { COSDictionary ws = (COSDictionary)actions.getDictionaryObject( "WS" ); PDAction retval = null; if( ws != null ) { retval = PDActionFactory.createAction( ws ); } return retval; }
/** * This will get a JavaScript action to be performed * after saving a document. * The name DS stands for "did save". * * @return The DS entry of document catalog's additional actions dictionary. */ public PDAction getDS() { COSDictionary ds = (COSDictionary)actions.getDictionaryObject( "DS" ); PDAction retval = null; if( ds != null ) { retval = PDActionFactory.createAction( ds ); } return retval; }
/** * This will get a JavaScript action to be performed before * the field is formatted to display its current value. This * allows the field's value to be modified before formatting. * * @return The F entry of form field's additional actions dictionary. */ public PDAction getF() { COSDictionary f = (COSDictionary) actions.getDictionaryObject(COSName.F); PDAction retval = null; if( f != null ) { retval = PDActionFactory.createAction( f ); } return retval; }
/** * This will get an action to be performed when the page * is closed. This action applies to the page being closed, * and is executed before any other page opened. * * @return The C entry of page object's additional actions dictionary. */ public PDAction getC() { COSDictionary c = (COSDictionary)actions.getDictionaryObject( "C" ); PDAction retval = null; if( c != null ) { retval = PDActionFactory.createAction( c ); } return retval; }