public class MustDecimalPresenter extends MustTextPresenter
Modifier and Type | Field and Description |
---|---|
protected java.text.DecimalFormat |
decimalFieldFormat |
protected java.util.Locale |
locale |
additionalTagFragments, className, font, name, toolTipText, value
Constructor and Description |
---|
MustDecimalPresenter()
Constructs a new decimal value presenter.
|
MustDecimalPresenter(java.lang.String name)
Constructs a new decimal value presenter.
|
Modifier and Type | Method and Description |
---|---|
static void |
setDefaultClassName(java.lang.String newDefaultClassName)
Sets the component's default class name - may be used to assign formatting
via stylesheets.
|
void |
setText(java.math.BigDecimal value)
Sets the text.
|
void |
setText(double value)
Sets the text.
|
destroy, getCreationTag, getText, setAdditionalTagFragments, setAlignment, setClassName, setComment, setDefaultAdditionalTagFragments, setFont, setText, setToolTipText, toString
protected java.util.Locale locale
protected java.text.DecimalFormat decimalFieldFormat
public MustDecimalPresenter()
public MustDecimalPresenter(java.lang.String name)
name
- the name of the date field to be used.public static void setDefaultClassName(java.lang.String newDefaultClassName)
newDefaultClassName
- the component's default class namepublic void setText(double value)
value
- the double to be formatted as textpublic void setText(java.math.BigDecimal value)
newText
- the double to be formatted as textCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de