org.pm4j.core.pm
Interface PmAttrNumber<T extends java.lang.Number>

All Superinterfaces:
java.lang.Comparable<PmObject>, PmAttr<T>, PmDataInput, PmObject
All Known Subinterfaces:
PmAttrBigDecimal, PmAttrDouble, PmAttrInteger, PmAttrLong, PmAttrShort
All Known Implementing Classes:
PmAttrBigDecimalImpl, PmAttrDoubleImpl, PmAttrIntegerImpl, PmAttrLongImpl, PmAttrNumBase, PmAttrShortImpl

public interface PmAttrNumber<T extends java.lang.Number>
extends PmAttr<T>


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.pm4j.core.pm.PmAttr
PmAttr.Converter<T>
 
Field Summary
 
Fields inherited from interface org.pm4j.core.pm.PmObject
STYLE_CLASS_DISABLED, STYLE_CLASS_ERROR, STYLE_CLASS_INFO, STYLE_CLASS_REQUIRED, STYLE_CLASS_WARN
 
Method Summary
 T getMax()
           
 int getMaxLen()
          FIXME olaf: should be an interface for all attributes that may be represented as text (--> PmAttrBase).
 T getMin()
           
 
Methods inherited from interface org.pm4j.core.pm.PmAttr
getFormatString, getMinLen, getOptionSet, getValue, getValueAsString, getValueLocalized, isPmValueChanged, isRequired, resetPmValues, setPmValueChanged, setValue, setValueAsString
 
Methods inherited from interface org.pm4j.core.pm.PmDataInput
commitBufferedPmChanges, isBufferedPmValueMode, pmValidate, rollbackBufferedPmChanges
 
Methods inherited from interface org.pm4j.core.pm.PmObject
accept, canSetPmTitle, compareTo, getPmConversation, getPmIconPath, getPmName, getPmParent, getPmProperty, getPmRelativeName, getPmShortTitle, getPmStyleClasses, getPmTitle, getPmTooltip, isPmEnabled, isPmReadonly, isPmValid, isPmVisible, setPmEnabled, setPmParent, setPmProperty, setPmTitle, setPmVisible
 

Method Detail

getMax

T getMax()
Returns:
The maximum value for this attribute.

getMin

T getMin()
Returns:
The minimum value for this attribute.

getMaxLen

int getMaxLen()
FIXME olaf: should be an interface for all attributes that may be represented as text (--> PmAttrBase).

Specified by:
getMaxLen in interface PmAttr<T extends java.lang.Number>
Returns:
The maximum field length for representation as string.