Package org.nuiton.jaxx.widgets.number
Class NumberEditorConfig
- java.lang.Object
-
- org.nuiton.jaxx.widgets.number.NumberEditorConfig
-
- All Implemented Interfaces:
Serializable
public class NumberEditorConfig extends Object implements Serializable
Put here all immutable options used to init the number editor. Created on 11/23/14.- Since:
- 2.17
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Class<?>numberTypeType of number.protected StringpropertyOptional property where to bind the number value in optional bean.protected booleanselectAllTextOnErrorWhen a error occurs, previous valid value is repush in textField, with this flag setted to true then also reselect this content.protected BooleanuseDecimalShould you allowed decimal number ?protected booleanuseSignShould you allowed signed number ?
-
Constructor Summary
Constructors Constructor Description NumberEditorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<?>getNumberType()StringgetProperty()BooleangetUseDecimal()booleanisSelectAllTextOnError()booleanisUseSign()voidsetNumberType(Class<?> numberType)voidsetProperty(String property)voidsetSelectAllTextOnError(boolean selectAllTextOnError)voidsetUseDecimal(Boolean useDecimal)voidsetUseSign(boolean useSign)
-
-
-
Field Detail
-
property
protected String property
Optional property where to bind the number value in optional bean.
-
useSign
protected boolean useSign
Should you allowed signed number ?
-
useDecimal
protected Boolean useDecimal
Should you allowed decimal number ?
-
numberType
protected Class<?> numberType
Type of number.
-
selectAllTextOnError
protected boolean selectAllTextOnError
When a error occurs, previous valid value is repush in textField, with this flag setted to true then also reselect this content.
-
-
Method Detail
-
getNumberType
public Class<?> getNumberType()
-
setNumberType
public void setNumberType(Class<?> numberType)
-
getProperty
public String getProperty()
-
setProperty
public void setProperty(String property)
-
isSelectAllTextOnError
public boolean isSelectAllTextOnError()
-
setSelectAllTextOnError
public void setSelectAllTextOnError(boolean selectAllTextOnError)
-
isUseSign
public boolean isUseSign()
-
setUseSign
public void setUseSign(boolean useSign)
-
getUseDecimal
public Boolean getUseDecimal()
-
setUseDecimal
public void setUseDecimal(Boolean useDecimal)
-
-