public PopupAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdPopup = new PDAnnotationPopup(annotDictionary); this.pdAnnot = this.pdPopup; }
/** * This will set inital state of the annotation, open or closed. * * @param open Boolean value, true = open false = closed. */ public void setOpen(boolean open) { getCOSObject().setBoolean("Open", open); }
/** * This will retrieve the popup annotation used for entering/editing the text for this annotation. * * @return the popup annotation. */ public PDAnnotationPopup getPopup() { COSDictionary popup = (COSDictionary) getCOSObject().getDictionaryObject("Popup"); if (popup != null) { return new PDAnnotationPopup(popup); } else { return null; } }
/** * This will retrieve the initial state of the annotation, open Or closed (default closed). * * @return The initial state, true = open false = closed. */ public boolean getOpen() { return getCOSObject().getBoolean("Open", false); }
annot = new PDAnnotationPopup(annotDic);
/** * Constructor. */ public PDAnnotationPopup() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
public PopupAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdPopup = new PDAnnotationPopup(annotDictionary); this.pdAnnot = this.pdPopup; }
/** * This will set the markup annotation which this popup relates to. * * @param annot the markup annotation. */ public void setParent(PDAnnotationMarkup annot) { getCOSObject().setItem(COSName.PARENT, annot.getCOSObject()); }
public PopupAnnotationValidator(PreflightContext ctx, COSDictionary annotDictionary) { super(ctx, annotDictionary); this.pdPopup = new PDAnnotationPopup(annotDictionary); this.pdAnnot = this.pdPopup; }
/** * This will retrieve the markup annotation which this popup relates to. * * @return The parent markup annotation. */ public PDAnnotationMarkup getParent() { PDAnnotationMarkup am = null; try { am = (PDAnnotationMarkup) PDAnnotation.createAnnotation(getCOSObject() .getDictionaryObject(COSName.PARENT, COSName.P)); } catch (IOException ioe) { LOG.debug("An exception while trying to get the parent markup - ignoring", ioe); // Couldn't construct the annotation, so return null i.e. do nothing } return am; }
/** * This will retrieve the popup annotation used for entering/editing the text for this annotation. * * @return the popup annotation. */ public PDAnnotationPopup getPopup() { COSDictionary popup = (COSDictionary) getCOSObject().getDictionaryObject("Popup"); if (popup != null) { return new PDAnnotationPopup(popup); } else { return null; } }
/** * Constructor. */ public PDAnnotationPopup() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
/** * This will retrieve the popup annotation used for entering/editing the text for this annotation. * * @return the popup annotation. */ public PDAnnotationPopup getPopup() { COSDictionary popup = (COSDictionary) getCOSObject().getDictionaryObject("Popup"); if (popup != null) { return new PDAnnotationPopup(popup); } else { return null; } }
/** * This will set inital state of the annotation, open or closed. * * @param open Boolean value, true = open false = closed. */ public void setOpen(boolean open) { getCOSObject().setBoolean("Open", open); }
annot = new PDAnnotationPopup(annotDic);
/** * This will retrieve the initial state of the annotation, open Or closed (default closed). * * @return The initial state, true = open false = closed. */ public boolean getOpen() { return getCOSObject().getBoolean("Open", false); }
annot = new PDAnnotationPopup(annotDic);
/** * This will set inital state of the annotation, open or closed. * * @param open Boolean value, true = open false = closed. */ public void setOpen(boolean open) { getCOSObject().setBoolean("Open", open); }
/** * This will retrieve the initial state of the annotation, open Or closed (default closed). * * @return The initial state, true = open false = closed. */ public boolean getOpen() { return getCOSObject().getBoolean("Open", false); }
/** * This will set the markup annotation which this popup relates to. * * @param annot the markup annotation. */ public void setParent(PDAnnotationMarkup annot) { getCOSObject().setItem(COSName.PARENT, annot.getCOSObject()); }