1 31 package org.pdfbox.pdmodel.interactive.action; 32 33 import org.pdfbox.cos.COSBase; 34 import org.pdfbox.cos.COSDictionary; 35 36 import org.pdfbox.pdmodel.common.COSObjectable; 37 import org.pdfbox.pdmodel.interactive.action.type.PDAction; 38 39 47 public class PDPageAdditionalActions implements COSObjectable 48 { 49 private COSDictionary actions; 50 51 54 public PDPageAdditionalActions() 55 { 56 actions = new COSDictionary(); 57 } 58 59 64 public PDPageAdditionalActions( COSDictionary a ) 65 { 66 actions = a; 67 } 68 69 74 public COSBase getCOSObject() 75 { 76 return actions; 77 } 78 79 84 public COSDictionary getCOSDictionary() 85 { 86 return actions; 87 } 88 89 97 public PDAction getO() 98 { 99 COSDictionary o = (COSDictionary)actions.getDictionaryObject( "O" ); 100 PDAction retval = null; 101 if( o != null ) 102 { 103 retval = PDActionFactory.createAction( o ); 104 } 105 return retval; 106 } 107 108 116 public void setO( PDAction o ) 117 { 118 actions.setItem( "O", o ); 119 } 120 121 128 public PDAction getC() 129 { 130 COSDictionary c = (COSDictionary)actions.getDictionaryObject( "C" ); 131 PDAction retval = null; 132 if( c != null ) 133 { 134 retval = PDActionFactory.createAction( c ); 135 } 136 return retval; 137 } 138 139 146 public void setC( PDAction c ) 147 { 148 actions.setItem( "C", c ); 149 } 150 } | Popular Tags |