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 45 public class PDAdditionalActions implements COSObjectable 46 { 47 private COSDictionary actions; 48 49 52 public PDAdditionalActions() 53 { 54 actions = new COSDictionary(); 55 } 56 57 62 public PDAdditionalActions( COSDictionary a ) 63 { 64 actions = a; 65 } 66 67 72 public COSBase getCOSObject() 73 { 74 return actions; 75 } 76 77 82 public COSDictionary getCOSDictionary() 83 { 84 return actions; 85 } 86 87 92 public PDAction getF() 93 { 94 return PDActionFactory.createAction( (COSDictionary)actions.getDictionaryObject("F" ) ); 95 } 96 97 102 public void setF( PDAction action ) 103 { 104 actions.setItem( "F", action ); 105 } 106 } | Popular Tags |