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 PDAnnotationAdditionalActions implements COSObjectable 48 { 49 private COSDictionary actions; 50 51 54 public PDAnnotationAdditionalActions() 55 { 56 actions = new COSDictionary(); 57 } 58 59 64 public PDAnnotationAdditionalActions( 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 95 public PDAction getE() 96 { 97 COSDictionary e = (COSDictionary)actions.getDictionaryObject( "E" ); 98 PDAction retval = null; 99 if( e != null ) 100 { 101 retval = PDActionFactory.createAction( e ); 102 } 103 return retval; 104 } 105 106 112 public void setE( PDAction e ) 113 { 114 actions.setItem( "E", e ); 115 } 116 117 123 public PDAction getX() 124 { 125 COSDictionary x = (COSDictionary)actions.getDictionaryObject( "X" ); 126 PDAction retval = null; 127 if( x != null ) 128 { 129 retval = PDActionFactory.createAction( x ); 130 } 131 return retval; 132 } 133 134 140 public void setX( PDAction x ) 141 { 142 actions.setItem( "X", x ); 143 } 144 145 152 public PDAction getD() 153 { 154 COSDictionary d = (COSDictionary)actions.getDictionaryObject( "D" ); 155 PDAction retval = null; 156 if( d != null ) 157 { 158 retval = PDActionFactory.createAction( d ); 159 } 160 return retval; 161 } 162 163 170 public void setD( PDAction d ) 171 { 172 actions.setItem( "D", d ); 173 } 174 175 182 public PDAction getU() 183 { 184 COSDictionary u = (COSDictionary)actions.getDictionaryObject( "U" ); 185 PDAction retval = null; 186 if( u != null ) 187 { 188 retval = PDActionFactory.createAction( u ); 189 } 190 return retval; 191 } 192 193 200 public void setU( PDAction u ) 201 { 202 actions.setItem( "U", u ); 203 } 204 205 211 public PDAction getFo() 212 { 213 COSDictionary fo = (COSDictionary)actions.getDictionaryObject( "Fo" ); 214 PDAction retval = null; 215 if( fo != null ) 216 { 217 retval = PDActionFactory.createAction( fo ); 218 } 219 return retval; 220 } 221 222 228 public void setFo( PDAction fo ) 229 { 230 actions.setItem( "Fo", fo ); 231 } 232 233 240 public PDAction getBl() 241 { 242 COSDictionary bl = (COSDictionary)actions.getDictionaryObject( "Bl" ); 243 PDAction retval = null; 244 if( bl != null ) 245 { 246 retval = PDActionFactory.createAction( bl ); 247 } 248 return retval; 249 } 250 251 258 public void setBl( PDAction bl ) 259 { 260 actions.setItem( "Bl", bl ); 261 } 262 263 271 public PDAction getPO() 272 { 273 COSDictionary po = (COSDictionary)actions.getDictionaryObject( "PO" ); 274 PDAction retval = null; 275 if( po != null ) 276 { 277 retval = PDActionFactory.createAction( po ); 278 } 279 return retval; 280 } 281 282 290 public void setPO( PDAction po ) 291 { 292 actions.setItem( "PO", po ); 293 } 294 295 302 public PDAction getPC() 303 { 304 COSDictionary pc = (COSDictionary)actions.getDictionaryObject( "PC" ); 305 PDAction retval = null; 306 if( pc != null ) 307 { 308 retval = PDActionFactory.createAction( pc ); 309 } 310 return retval; 311 } 312 313 320 public void setPC( PDAction pc ) 321 { 322 actions.setItem( "PC", pc ); 323 } 324 325 331 public PDAction getPV() 332 { 333 COSDictionary pv = (COSDictionary)actions.getDictionaryObject( "PV" ); 334 PDAction retval = null; 335 if( pv != null ) 336 { 337 retval = PDActionFactory.createAction( pv ); 338 } 339 return retval; 340 } 341 342 348 public void setPV( PDAction pv ) 349 { 350 actions.setItem( "PV", pv ); 351 } 352 353 359 public PDAction getPI() 360 { 361 COSDictionary pi = (COSDictionary)actions.getDictionaryObject( "PI" ); 362 PDAction retval = null; 363 if( pi != null ) 364 { 365 retval = PDActionFactory.createAction( pi ); 366 } 367 return retval; 368 } 369 370 376 public void setPI( PDAction pi ) 377 { 378 actions.setItem( "PI", pi ); 379 } 380 } | Popular Tags |