org.beanfabrics.model
Class DecimalPM

java.lang.Object
  extended by org.beanfabrics.AbstractBean
      extended by org.beanfabrics.ValidatableBean
          extended by org.beanfabrics.model.AbstractPM
              extended by org.beanfabrics.model.AbstractValuePM
                  extended by org.beanfabrics.model.TextPM
                      extended by org.beanfabrics.model.BigDecimalPM
                          extended by org.beanfabrics.model.DecimalPM
All Implemented Interfaces:
Bean, ContextOwner, IBigDecimalPM, ITextPM, IValuePM, PresentationModel, Supportable, Validatable

public class DecimalPM
extends BigDecimalPM

The DecimalPM is a presentation model for decimal numbers. It offers conversion methods for Double and Float.

Author:
Michael Karneim

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
DecimalPM()
           
 
Method Summary
 java.lang.Double getDouble()
           
 java.lang.Float getFloat()
           
 void setDouble(java.lang.Double value)
           
 void setFloat(java.lang.Float value)
           
 
Methods inherited from class org.beanfabrics.model.BigDecimalPM
createDefaultFormat, getBigDecimal, 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

DecimalPM

public DecimalPM()
Method Detail

getDouble

public java.lang.Double getDouble()
                           throws ConversionException
Throws:
ConversionException

setDouble

public void setDouble(java.lang.Double value)

getFloat

public java.lang.Float getFloat()
                         throws ConversionException
Throws:
ConversionException

setFloat

public void setFloat(java.lang.Float value)


© 2010 by Michael Karneim, http://www.beanfabrics.org