org.beanfabrics.model
Class IntegerPM

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.IntegerPM
All Implemented Interfaces:
Bean, ContextOwner, IBigDecimalPM, IIntegerPM, ITextPM, IValuePM, PresentationModel, Supportable, Validatable

public class IntegerPM
extends BigDecimalPM
implements IIntegerPM

The IntegerPM is a presentation model for integer numbers. The default range for valid numbers is between Long.MIN_VALUE and Long.MAX_VALUE.

Author:
Michael Karneim

Nested Class Summary
 class IntegerPM.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
IntegerPM()
           
 
Method Summary
 java.lang.Byte getByte()
           
 java.lang.Integer getInteger()
           
 java.lang.Long getLong()
           
 long getMaxValue()
           
 long getMinValue()
           
 java.lang.Short getShort()
           
 void setByte(java.lang.Byte value)
           
 void setInteger(java.lang.Integer value)
           
 void setLong(java.lang.Long value)
           
 void setMaxValue(long maxValue)
           
 void setMinMaxValueRange(long minValue, long maxValue)
           
 void setMinValue(long minValue)
           
 void setShort(java.lang.Short 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.IIntegerPM
getBigInteger, setBigInteger
 
Methods inherited from interface org.beanfabrics.model.ITextPM
getOptions, getText, isModified, preset, reformat, reset, setOptions, setText
 
Methods inherited from interface org.beanfabrics.model.IValuePM
getComparable, 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

IntegerPM

public IntegerPM()
Method Detail

getMinValue

public long getMinValue()
Specified by:
getMinValue in interface IIntegerPM

setMinValue

public void setMinValue(long minValue)
Specified by:
setMinValue in interface IIntegerPM

getMaxValue

public long getMaxValue()
Specified by:
getMaxValue in interface IIntegerPM

setMaxValue

public void setMaxValue(long maxValue)
Specified by:
setMaxValue in interface IIntegerPM

setMinMaxValueRange

public void setMinMaxValueRange(long minValue,
                                long maxValue)

setByte

public void setByte(java.lang.Byte value)
Specified by:
setByte in interface IIntegerPM

getByte

public java.lang.Byte getByte()
                       throws ConversionException
Specified by:
getByte in interface IIntegerPM
Throws:
ConversionException

setShort

public void setShort(java.lang.Short value)
Specified by:
setShort in interface IIntegerPM

getShort

public java.lang.Short getShort()
                         throws ConversionException
Specified by:
getShort in interface IIntegerPM
Throws:
ConversionException

setInteger

public void setInteger(java.lang.Integer value)
Specified by:
setInteger in interface IIntegerPM

getInteger

public java.lang.Integer getInteger()
                             throws ConversionException
Specified by:
getInteger in interface IIntegerPM
Throws:
ConversionException

setLong

public void setLong(java.lang.Long value)
Specified by:
setLong in interface IIntegerPM

getLong

public java.lang.Long getLong()
                       throws ConversionException
Specified by:
getLong in interface IIntegerPM
Throws:
ConversionException


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