com.infragistics.faces.input.component
Class InputNumber

java.lang.Object
  extended byjavax.faces.component.UIComponent
      extended byjavax.faces.component.UIComponentBase
          extended byjavax.faces.component.UIOutput
              extended byjavax.faces.component.UIInput
                  extended bycom.infragistics.faces.input.component.BaseInput
                      extended bycom.infragistics.faces.input.component.InputNumber
All Implemented Interfaces:
javax.faces.component.EditableValueHolder, javax.faces.component.StateHolder, javax.faces.component.ValueHolder
Direct Known Subclasses:
InputCurrency, InputDecimal, InputPercent

public class InputNumber
extends BaseInput


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String RENDERER_TYPE
           
 
Fields inherited from class javax.faces.component.UIInput
CONVERSION_MESSAGE_ID, REQUIRED_MESSAGE_ID
 
Constructor Summary
InputNumber()
           
 
Method Summary
 java.lang.String getFamily()
           
 java.util.Locale getLocale()
          Returns the Locale for numerical representation
 int getMaximumFractionDigits()
          Returns the Maximum number of digits in the fraction part of the numerical value
 int getMaximumIntegerDigits()
          Returns the Maximum number of digits in the integer part of the numerical value
 java.lang.Number getMaximumNumber()
          Returns the Maximum numerical value is allowed for this field
 int getMinimumFractionDigits()
          Returns the Minimum number of digits in the fraction part of the numerical value
 int getMinimumIntegerDigits()
          Returns the Minimum number of digits in the integer part of the numerical value
 java.lang.Number getMinimumNumber()
          Returns the Minimum numerical value is allowed for this field
 java.lang.String getNumberType()
          Returns the Numerical type internal representation
 boolean isParseIntegerOnly()
          Returns the Allow only integer numerical values on input
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setConverter(javax.faces.convert.Converter converter)
           
 void setLocale(java.util.Locale locale)
          Sets the Locale for numerical representation
 void setMaximumFractionDigits(int maximumFractionDigits)
          Sets the Maximum number of digits in the fraction part of the numerical value
 void setMaximumIntegerDigits(int maximumIntegerDigits)
          Sets the Maximum number of digits in the integer part of the numerical value
 void setMaximumNumber(java.lang.Number maximumNumber)
          Sets the Maximum numerical value is allowed for this field
 void setMinimumFractionDigits(int minimumFractionDigits)
          Sets the Minimum number of digits in the fraction part of the numerical value
 void setMinimumIntegerDigits(int minimumIntegerDigits)
          Sets the Minimum number of digits in the integer part of the numerical value
 void setMinimumNumber(java.lang.Number minimumNumber)
          Sets the Minimum numerical value is allowed for this field
 void setNumberType(java.lang.String numberType)
          Sets the numerical type internal representation
 void setParseIntegerOnly(boolean parseIntegerOnly)
          Sets the Allow only integer numerical values on input
 
Methods inherited from class com.infragistics.faces.input.component.BaseInput
getShortcut, getTooltip, isDisabled, isReadOnly, setDisabled, setReadOnly, setShortcut, setTooltip, validate
 
Methods inherited from class javax.faces.component.UIInput
addValidator, addValueChangeListener, broadcast, decode, getSubmittedValue, getValidator, getValidators, getValueChangeListener, getValueChangeListeners, isImmediate, isLocalValueSet, isRequired, isValid, processDecodes, processUpdates, processValidators, removeValidator, removeValueChangeListener, setImmediate, setLocalValueSet, setRequired, setSubmittedValue, setValid, setValidator, setValue, setValueChangeListener, updateModel
 
Methods inherited from class javax.faces.component.UIOutput
getConverter, getLocalValue, getValue
 
Methods inherited from class javax.faces.component.UIComponentBase
encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, queueEvent, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.faces.component.ValueHolder
getConverter, getLocalValue, getValue
 

Field Detail

COMPONENT_FAMILY

public static java.lang.String COMPONENT_FAMILY

COMPONENT_TYPE

public static java.lang.String COMPONENT_TYPE

RENDERER_TYPE

public static java.lang.String RENDERER_TYPE
Constructor Detail

InputNumber

public InputNumber()
Method Detail

setConverter

public void setConverter(javax.faces.convert.Converter converter)

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class BaseInput

getLocale

public java.util.Locale getLocale()
Returns the Locale for numerical representation

Returns:
java.util.Locale

getMaximumFractionDigits

public int getMaximumFractionDigits()
Returns the Maximum number of digits in the fraction part of the numerical value

Returns:
int

getMaximumIntegerDigits

public int getMaximumIntegerDigits()
Returns the Maximum number of digits in the integer part of the numerical value

Returns:
int

getMaximumNumber

public java.lang.Number getMaximumNumber()
Returns the Maximum numerical value is allowed for this field

Returns:
java.lang.Number

getMinimumFractionDigits

public int getMinimumFractionDigits()
Returns the Minimum number of digits in the fraction part of the numerical value

Returns:
int

getMinimumIntegerDigits

public int getMinimumIntegerDigits()
Returns the Minimum number of digits in the integer part of the numerical value

Returns:
int

getMinimumNumber

public java.lang.Number getMinimumNumber()
Returns the Minimum numerical value is allowed for this field

Returns:
java.lang.Number

getNumberType

public java.lang.String getNumberType()
Returns the Numerical type internal representation

Returns:
com.infragistics.faces.shared.enumeration.NumberType (bigDecimal, bigInteger, byte, double, float, integer, long, short)

isParseIntegerOnly

public boolean isParseIntegerOnly()
Returns the Allow only integer numerical values on input

Returns:
boolean

setLocale

public void setLocale(java.util.Locale locale)
Sets the Locale for numerical representation


setMaximumFractionDigits

public void setMaximumFractionDigits(int maximumFractionDigits)
Sets the Maximum number of digits in the fraction part of the numerical value


setMaximumIntegerDigits

public void setMaximumIntegerDigits(int maximumIntegerDigits)
Sets the Maximum number of digits in the integer part of the numerical value


setMaximumNumber

public void setMaximumNumber(java.lang.Number maximumNumber)
Sets the Maximum numerical value is allowed for this field


setMinimumFractionDigits

public void setMinimumFractionDigits(int minimumFractionDigits)
Sets the Minimum number of digits in the fraction part of the numerical value


setMinimumIntegerDigits

public void setMinimumIntegerDigits(int minimumIntegerDigits)
Sets the Minimum number of digits in the integer part of the numerical value


setMinimumNumber

public void setMinimumNumber(java.lang.Number minimumNumber)
Sets the Minimum numerical value is allowed for this field


setNumberType

public void setNumberType(java.lang.String numberType)
Sets the numerical type internal representation


setParseIntegerOnly

public void setParseIntegerOnly(boolean parseIntegerOnly)
Sets the Allow only integer numerical values on input


restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class BaseInput

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class BaseInput