コード例 #1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>TextPageAdjustAttribute</code>
  * , See {@odf.attribute text:page-adjust}
  *
  * @return - the <code>Integer</code> , the value or <code>null</code>, if the attribute is not
  *     set and no default value defined.
  */
 public Integer getTextPageAdjustAttribute() {
   TextPageAdjustAttribute attr =
       (TextPageAdjustAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "page-adjust");
   if (attr != null) {
     return Integer.valueOf(attr.intValue());
   }
   return null;
 }
コード例 #2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>TextPageAdjustAttribute</code> , See
  * {@odf.attribute text:page-adjust}
  *
  * @param textPageAdjustValue The type is <code>Integer</code>
  */
 public void setTextPageAdjustAttribute(Integer textPageAdjustValue) {
   TextPageAdjustAttribute attr = new TextPageAdjustAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setIntValue(textPageAdjustValue.intValue());
 }