コード例 #1
0
 /**
  * Receives the value of the ODFDOM attribute representation <code>TextFixedAttribute</code> , See
  * {@odf.attribute text:fixed}
  *
  * @return - the <code>Boolean</code> , the value or <code>null</code>, if the attribute is not
  *     set and no default value defined.
  */
 public Boolean getTextFixedAttribute() {
   TextFixedAttribute attr =
       (TextFixedAttribute) getOdfAttribute(OdfDocumentNamespace.TEXT, "fixed");
   if (attr != null) {
     return Boolean.valueOf(attr.booleanValue());
   }
   return null;
 }
コード例 #2
0
 /**
  * Sets the value of ODFDOM attribute representation <code>TextFixedAttribute</code> , See
  * {@odf.attribute text:fixed}
  *
  * @param textFixedValue The type is <code>Boolean</code>
  */
 public void setTextFixedAttribute(Boolean textFixedValue) {
   TextFixedAttribute attr = new TextFixedAttribute((OdfFileDom) this.ownerDocument);
   setOdfAttribute(attr);
   attr.setBooleanValue(textFixedValue.booleanValue());
 }