|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.beanfabrics.AbstractBean
org.beanfabrics.ValidatableBean
org.beanfabrics.model.AbstractPM
org.beanfabrics.model.AbstractValuePM
org.beanfabrics.model.TextPM
org.beanfabrics.model.BigDecimalPM
org.beanfabrics.model.MoneyPM
public class MoneyPM
The MoneyPM is a presentation model for a monetary value with a currency format.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.beanfabrics.model.BigDecimalPM |
|---|
BigDecimalPM.DefaultValidationRule |
| Nested classes/interfaces inherited from class org.beanfabrics.model.TextPM |
|---|
TextPM.DefaultOptionsValidationRule, TextPM.TextComparable |
| Nested classes/interfaces inherited from class org.beanfabrics.model.AbstractPM |
|---|
AbstractPM.PropertiesValidationRule |
| Field Summary |
|---|
| Fields inherited from class org.beanfabrics.model.TextPM |
|---|
KEY_MESSAGE_VALUE_NOT_AN_OPTION |
| Constructor Summary | |
|---|---|
MoneyPM()
|
|
| Method Summary | |
|---|---|
protected java.text.DecimalFormat |
createDefaultFormat()
|
protected java.text.DecimalFormat |
createSimplifiedFormat()
|
java.math.BigDecimal |
getBigDecimal()
|
static java.text.DecimalFormat |
getCurrencyFormat(java.util.Locale locale)
|
java.text.DecimalFormat |
getSimplifiedFormat()
|
void |
setSimplifiedFormat(java.text.DecimalFormat newFormat)
|
| Methods inherited from class org.beanfabrics.model.BigDecimalPM |
|---|
getBigInteger, getComparable, getDecimalFormat, getFormat, reformat, setBigDecimal, setBigInteger, setDefaultBigDecimal, setDefaultBigInteger, setFormat |
| Methods inherited from class org.beanfabrics.model.TextPM |
|---|
getDefaultText, getOptions, getText, getText, isEmpty, isModified, isRestrictedToOptions, preset, reset, setDefaultText, setOptions, setRestrictedToOptions, setText, toString |
| Methods inherited from class org.beanfabrics.model.AbstractValuePM |
|---|
getDescription, getTitle, isEditable, isMandatory, revalidate, setDescription, setEditable, setMandatory, setTitle |
| Methods inherited from class org.beanfabrics.model.AbstractPM |
|---|
createPropertiesValidationRule, getContext, getSupportMap, revalidateProperties |
| Methods inherited from class org.beanfabrics.ValidatableBean |
|---|
getValidationState, getValidator, isValid, setValidationState |
| Methods inherited from class org.beanfabrics.AbstractBean |
|---|
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.beanfabrics.model.ITextPM |
|---|
getOptions, getText, isModified, preset, reset, setOptions, setText |
| Methods inherited from interface org.beanfabrics.model.IValuePM |
|---|
getDescription, getTitle, isEditable, isEmpty, isMandatory, setDescription, setEditable, setMandatory, setTitle |
| Methods inherited from interface org.beanfabrics.Bean |
|---|
addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
| Methods inherited from interface org.beanfabrics.validation.Validatable |
|---|
getValidationState, getValidator, isValid, revalidate |
| Methods inherited from interface org.beanfabrics.support.Supportable |
|---|
getSupportMap |
| Methods inherited from interface org.beanfabrics.context.ContextOwner |
|---|
getContext |
| Constructor Detail |
|---|
public MoneyPM()
| Method Detail |
|---|
public java.math.BigDecimal getBigDecimal()
throws ConversionException
getBigDecimal in interface IBigDecimalPMgetBigDecimal in class BigDecimalPMConversionExceptionpublic java.text.DecimalFormat getSimplifiedFormat()
public void setSimplifiedFormat(java.text.DecimalFormat newFormat)
protected java.text.DecimalFormat createDefaultFormat()
createDefaultFormat in class BigDecimalPMprotected java.text.DecimalFormat createSimplifiedFormat()
public static java.text.DecimalFormat getCurrencyFormat(java.util.Locale locale)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||