/** * Place pending text into a <number:text> element. * @param textBuffer pending text */ private void emitText(String textBuffer) { NumberTextElement textElement; if (!textBuffer.equals("")) { textElement = new NumberTextElement((OdfFileDom) this.getOwnerDocument()); textElement.setTextContent(textBuffer); this.appendChild(textElement); } }
/** * Place pending text into a <number:text> element. * @param textBuffer pending text */ private void emitText(String textBuffer) { NumberTextElement textElement; if (!textBuffer.equals("")) { textElement = new NumberTextElement((OdfFileDom) this.getOwnerDocument()); textElement.setTextContent(textBuffer); this.appendChild(textElement); } }
/** * Place pending text into a <number:text> element. * @param textBuffer pending text */ private void emitText(String textBuffer) { NumberTextElement textElement; if (!textBuffer.equals("")) { textElement = new NumberTextElement((OdfFileDom) this.getOwnerDocument()); textElement.setTextContent(textBuffer); this.appendChild(textElement); } }
number.setNumberDecimalPlacesAttribute(numberSpec.length() - (pos + 1)); this.appendChild(number);
number.setNumberDecimalPlacesAttribute(numberSpec.length() - (pos + 1)); this.appendChild(number);
number.setNumberDecimalPlacesAttribute(numberSpec.length() - (pos + 1)); this.appendChild(number);
/** * Set <style:map> for negative values to the given style name. * @param mapName the style name to map to */ public void setMapNegative(String mapName) { StyleMapElement map = new StyleMapElement((OdfFileDom) this.getOwnerDocument()); map.setStyleApplyStyleNameAttribute(mapName); map.setStyleConditionAttribute("value()<0"); this.appendChild(map); } }
/** * Set <style:map> for positive values to the given style name. * @param mapName the style name to map to */ public void setMapPositive(String mapName) { StyleMapElement map = new StyleMapElement((OdfFileDom) this.getOwnerDocument()); map.setStyleApplyStyleNameAttribute(mapName); map.setStyleConditionAttribute("value()>0"); this.appendChild(map); }
/** * Set <style:map> for positive values to the given style name. * @param mapName the style name to map to */ public void setMapPositive(String mapName) { StyleMapElement map = new StyleMapElement((OdfFileDom) this.getOwnerDocument()); map.setStyleApplyStyleNameAttribute(mapName); map.setStyleConditionAttribute("value()>0"); this.appendChild(map); }
/** * Set <style:map> for negative values to the given style name. * @param mapName the style name to map to */ public void setMapNegative(String mapName) { StyleMapElement map = new StyleMapElement((OdfFileDom) this.getOwnerDocument()); map.setStyleApplyStyleNameAttribute(mapName); map.setStyleConditionAttribute("value()<0"); this.appendChild(map); } }
/** * Set <style:map> for positive values to the given style name. * @param mapName the style name to map to */ public void setMapPositive(String mapName) { StyleMapElement map = new StyleMapElement((OdfFileDom) this.getOwnerDocument()); map.setStyleApplyStyleNameAttribute(mapName); map.setStyleConditionAttribute("value()>0"); this.appendChild(map); }
/** * Set <style:map> for negative values to the given style name. * @param mapName the style name to map to */ public void setMapNegative(String mapName) { StyleMapElement map = new StyleMapElement((OdfFileDom) this.getOwnerDocument()); map.setStyleApplyStyleNameAttribute(mapName); map.setStyleConditionAttribute("value()<0"); this.appendChild(map); } }