Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013

ag.ion.bion.officelayer.internal.util
Class JavaNumberFormatter

java.lang.Object
  extended by ag.ion.bion.officelayer.internal.util.JavaNumberFormatter

public class JavaNumberFormatter
extends java.lang.Object

Number formatter for java code.


Constructor Summary
JavaNumberFormatter()
           
 
Method Summary
 java.lang.String format(double value)
          Formats submitted number.
 java.lang.String getContentAfter()
          Returns content after pattern.
 java.lang.String getContentBefore()
          Returns content before pattern.
 java.text.DecimalFormat getDecimalFormat()
          Returns decimal format.
 JavaNumberFormatCondition getJavaNumberFormatCondition()
          Returns number format condition.
 java.awt.Color getTextColor()
          Returns text color.
 void setContentAfter(java.lang.String contentAfter)
          Sets conent after pattern.
 void setContentBefore(java.lang.String contentBefore)
          Sets content before pattern.
 void setDecimalFormat(java.text.DecimalFormat decimalFormat)
          Sets decimal format.
 void setIsNegativePattern(boolean isNegativePattern)
          Sets information whether this pattern is a negative pattern.
 void setJavaNumberFormatCondition(JavaNumberFormatCondition javaNumberFormatCondition)
          Sets number format condition.
 void setTextColor(java.awt.Color textColor)
          Sets color of the text.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaNumberFormatter

public JavaNumberFormatter()
Method Detail

setTextColor

public void setTextColor(java.awt.Color textColor)
Sets color of the text.

Parameters:
textColor - color of the text

setDecimalFormat

public void setDecimalFormat(java.text.DecimalFormat decimalFormat)
Sets decimal format.

Parameters:
decimalFormat - decimal format to be used

setJavaNumberFormatCondition

public void setJavaNumberFormatCondition(JavaNumberFormatCondition javaNumberFormatCondition)
Sets number format condition.

Parameters:
javaNumberFormatCondition - number format condition to be used

setContentBefore

public void setContentBefore(java.lang.String contentBefore)
Sets content before pattern.

Parameters:
contentBefore - content before pattern

setContentAfter

public void setContentAfter(java.lang.String contentAfter)
Sets conent after pattern.

Parameters:
contentAfter - content after pattern

setIsNegativePattern

public void setIsNegativePattern(boolean isNegativePattern)
Sets information whether this pattern is a negative pattern.

Parameters:
isNegativePattern - information whether this pattern is a negative pattern

getTextColor

public java.awt.Color getTextColor()
Returns text color. Returns null if no color was set.

Returns:
text color

getDecimalFormat

public java.text.DecimalFormat getDecimalFormat()
Returns decimal format.

Returns:
decimal format

getJavaNumberFormatCondition

public JavaNumberFormatCondition getJavaNumberFormatCondition()
Returns number format condition.

Returns:
number format condition

getContentBefore

public java.lang.String getContentBefore()
Returns content before pattern.

Returns:
content before pattern

getContentAfter

public java.lang.String getContentAfter()
Returns content after pattern.

Returns:
content after pattern

format

public java.lang.String format(double value)
Formats submitted number.

Parameters:
value - value to be formatted
Returns:
formatted number

Elexis: Das führende OpenSource-Arztpraxisprogamm
im deutschsprachigen Raum
Java doc for Elexis version 2.1.7.dev vom 17.03.2013