/** * 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); }
/** * Constructor. */ public PDAnnotationPopup() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
/** * 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()); }
/** * 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; }
/** * Constructor. */ public PDAnnotationPopup() { getCOSObject().setName(COSName.SUBTYPE, SUB_TYPE); }
/** * 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 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 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 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()); }
/** * Constructor. */ public PDAnnotationPopup() { getCOSObject().setItem(COSName.SUBTYPE, COSName.getPDFName(SUB_TYPE)); }
/** * 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()); }
/** * 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) { // Couldn't construct the annotation, so return null i.e. do nothing } return am; }
/** * 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) { // Couldn't construct the annotation, so return null i.e. do nothing } return am; }