|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface INumberFormatService
Number format service.
| Method Summary | |
|---|---|
java.lang.String |
applyFormat(java.lang.String text,
INumberFormat numberFormat)
Applies the given format to the given string and returns the formatted new string. |
java.lang.String |
convertNumberToString(int key,
double number)
Converts a number into a string. |
double |
convertStringToNumber(int key,
java.lang.String text)
Converts a string which contains a formatted number into a number. |
INumberFormat |
getNumberFormat(int key)
Returns number format on the basis of the submitted key. |
INumberFormat[] |
getNumberFormats()
Returns all available number formats. |
INumberFormat[] |
getNumberFormats(short type)
Returns all available number formats of the given type. |
com.sun.star.util.XNumberFormatsSupplier |
getXNumberFormatsSupplier()
Returns the OpenOffice.org XNumberFormatsSupplier interface it was created with. |
| Method Detail |
|---|
com.sun.star.util.XNumberFormatsSupplier getXNumberFormatsSupplier()
INumberFormat getNumberFormat(int key)
throws UtilException
key - key of the number format
UtilException - if the number format is not available
INumberFormat[] getNumberFormats()
throws UtilException
UtilException - if the number formats are not available
INumberFormat[] getNumberFormats(short type)
throws UtilException
type - the type to get all number formats for as constants of NumberFormat
UtilException - if the number formats are not available
double convertStringToNumber(int key,
java.lang.String text)
throws UtilException
key - the key of the format for the conversiontext - the text to be converted
UtilException - if the conversion fails
java.lang.String convertNumberToString(int key,
double number)
throws UtilException
key - the key of the format for the conversionnumber - the number to be converted
UtilException - if the conversion fails
java.lang.String applyFormat(java.lang.String text,
INumberFormat numberFormat)
throws UtilException
text - the text to apply number format fornumberFormat - the number format to be applied
UtilException - if format fails
|
Elexis: Das führende OpenSource-Arztpraxisprogamm im deutschsprachigen Raum Java doc for Elexis version 2.1.7.dev vom 17.03.2013 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||