Package org.nuiton.jaxx.widgets.number
Class NumberEditorConfig
java.lang.Object
org.nuiton.jaxx.widgets.number.NumberEditorConfig
- All Implemented Interfaces:
java.io.Serializable
public class NumberEditorConfig
extends java.lang.Object
implements java.io.Serializable
Put here all immutable options used to init the number editor.
Created on 11/23/14.
- Since:
- 2.17
- Author:
- Tony Chemit - chemit@codelutin.com
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Class<?>numberTypeType of number.protected java.lang.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 java.lang.BooleanuseDecimalShould you allowed decimal number ?protected booleanuseSignShould you allowed signed number ? -
Constructor Summary
Constructors Constructor Description NumberEditorConfig() -
Method Summary
Modifier and Type Method Description java.lang.Class<?>getNumberType()java.lang.StringgetProperty()java.lang.BooleangetUseDecimal()booleanisSelectAllTextOnError()booleanisUseSign()voidsetNumberType(java.lang.Class<?> numberType)voidsetProperty(java.lang.String property)voidsetSelectAllTextOnError(boolean selectAllTextOnError)voidsetUseDecimal(java.lang.Boolean useDecimal)voidsetUseSign(boolean useSign)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
property
protected java.lang.String propertyOptional property where to bind the number value in optional bean. -
useSign
protected boolean useSignShould you allowed signed number ? -
useDecimal
protected java.lang.Boolean useDecimalShould you allowed decimal number ? -
numberType
protected java.lang.Class<?> numberTypeType of number. -
selectAllTextOnError
protected boolean selectAllTextOnErrorWhen a error occurs, previous valid value is repush in textField, with this flag setted to true then also reselect this content.
-
-
Constructor Details
-
NumberEditorConfig
public NumberEditorConfig()
-
-
Method Details
-
getNumberType
public java.lang.Class<?> getNumberType() -
setNumberType
public void setNumberType(java.lang.Class<?> numberType) -
getProperty
public java.lang.String getProperty() -
setProperty
public void setProperty(java.lang.String property) -
isSelectAllTextOnError
public boolean isSelectAllTextOnError() -
setSelectAllTextOnError
public void setSelectAllTextOnError(boolean selectAllTextOnError) -
isUseSign
public boolean isUseSign() -
setUseSign
public void setUseSign(boolean useSign) -
getUseDecimal
public java.lang.Boolean getUseDecimal() -
setUseDecimal
public void setUseDecimal(java.lang.Boolean useDecimal)
-