/** * Creates a new instance of OdfNumberPercentageStyle. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style */ public OdfNumberPercentageStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(format); }
/** Creates a new instance of OdfTimeStyle. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style */ public OdfNumberTimeStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.styleName = styleName; buildFromFormat(format); }
/** Creates a new instance of DateStyleFromFormat. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style * @param calendarName name of the calendar this date style belongs to */ public OdfNumberDateStyle(OdfFileDom ownerDoc, String format, String styleName, String calendarName) { super(ownerDoc); this.styleName = styleName; this.calendarName = calendarName; buildFromFormat(format); }
public OdfNumberCurrencyStyle(OdfFileDom ownerDoc, String currencySymbol, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(currencySymbol, format); }
public OdfNumberStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(format); }
/** * 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 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 negative values to the given style . * @param mapName the style 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 language and currency for the currency symbol. * @param language the language for the country * @param country the country name */ public void setCurrencyLocale(String language, String country) { NumberCurrencySymbolElement cSymbol = getCurrencySymbolElement(); cSymbol.setNumberCountryAttribute(country); cSymbol.setNumberLanguageAttribute(language); }
/** * Creates a new instance of OdfNumberPercentageStyle. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style */ public OdfNumberPercentageStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(format); }
/** Creates a new instance of OdfTimeStyle. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style */ public OdfNumberTimeStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.styleName = styleName; buildFromFormat(format); }
/** Creates a new instance of DateStyleFromFormat. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style * @param calendarName name of the calendar this date style belongs to */ public OdfNumberDateStyle(OdfFileDom ownerDoc, String format, String styleName, String calendarName) { super(ownerDoc); this.styleName = styleName; this.calendarName = calendarName; buildFromFormat(format); }
public OdfNumberCurrencyStyle(OdfFileDom ownerDoc, String currencySymbol, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(currencySymbol, format); }
public OdfNumberStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(format); }
/** * 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); }
/** * Creates a new instance of OdfNumberPercentageStyle. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style */ public OdfNumberPercentageStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(format); }
/** Creates a new instance of OdfTimeStyle. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style */ public OdfNumberTimeStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.styleName = styleName; buildFromFormat(format); }
/** Creates a new instance of DateStyleFromFormat. * @param ownerDoc document that this format belongs to * @param format format string for the date/time * @param styleName name of this style * @param calendarName name of the calendar this date style belongs to */ public OdfNumberDateStyle(OdfFileDom ownerDoc, String format, String styleName, String calendarName) { super(ownerDoc); this.styleName = styleName; this.calendarName = calendarName; buildFromFormat(format); }
public OdfNumberCurrencyStyle(OdfFileDom ownerDoc, String currencySymbol, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(currencySymbol, format); }
public OdfNumberStyle(OdfFileDom ownerDoc, String format, String styleName) { super(ownerDoc); this.setStyleNameAttribute(styleName); buildFromFormat(format); }