public class NumberInputCell<N extends Number> extends TwinTriggerFieldCell<N>
TwinTriggerFieldCell.TwinTriggerFieldAppearance
TriggerFieldCell.TriggerFieldAppearance
ValueBaseInputCell.ValueBaseFieldAppearance
FieldCell.FieldAppearance, FieldCell.FieldAppearanceOptions, FieldCell.FieldViewData
Cell.Context
Constructor and Description |
---|
NumberInputCell(NumberPropertyEditor<N> propertyEditor) |
NumberInputCell(NumberPropertyEditor<N> propertyEditor,
TwinTriggerFieldCell.TwinTriggerFieldAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
String |
getBaseChars()
Returns the base characters.
|
String |
getDecimalSeparator()
Returns the decimal separator.
|
NumberPropertyEditor<N> |
getPropertyEditor()
Returns the cell's property editor.
|
boolean |
isAllowDecimals()
Returns true of decimal values are allowed.
|
boolean |
isAllowNegative()
Returns true if negative values are allowed.
|
void |
setAllowDecimals(boolean allowDecimals)
Sets whether decimal value are allowed (defaults to true).
|
void |
setAllowNegative(boolean allowNegative)
Sets whether negative value are allowed to be entered into the field (defaults to true).
|
void |
setBaseChars(String baseChars)
Sets the base set of characters to evaluate as valid numbers (defaults to
'0123456789').
|
void |
setDecimalSeparator(String decimalSeparator)
Sets the decimal separator (defaults to
LocaleInfo.getCurrentLocale().getNumberConstants().decimalSeparator()).
|
void |
setPropertyEditor(PropertyEditor<N> propertyEditor)
Sets the field's property editor which is used to translate typed values to string, and string values back to typed
values.
|
getAppearance
finishEditing, isEditable, isFinishEditOnEnter, isHideTrigger, isMonitorTab, onBrowserEvent, render, setEditable, setFinishEditOnEnter, setHideTrigger, setMonitorTab, setSize
addParseErrorHandler, disable, enable, getCursorPos, getEmptyText, getFocusElement, getInputElement, getName, getText, isAllowBlank, isClearValueOnParseError, isSelectOnFocus, onEmpty, resetFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setEmptyText, setName, setSelectOnFocus, setText
getHeight, getWidth, handlesSelection, isDisabled, isReadOnly, onValid, redrawOnResize, setHeight, setReadOnly, setSize, setWidth
addHandler, fireEvent, isDisableEvents, setDisableEvents
isEditing
clearViewData, getViewData, setViewData
dependsOnSelection, getConsumedEvents, setValue
public NumberInputCell(NumberPropertyEditor<N> propertyEditor)
public NumberInputCell(NumberPropertyEditor<N> propertyEditor, TwinTriggerFieldCell.TwinTriggerFieldAppearance appearance)
public String getBaseChars()
public String getDecimalSeparator()
public NumberPropertyEditor<N> getPropertyEditor()
ValueBaseInputCell
getPropertyEditor
in class ValueBaseInputCell<N extends Number>
public boolean isAllowDecimals()
public boolean isAllowNegative()
public void setAllowDecimals(boolean allowDecimals)
allowDecimals
- true to allow negative valuespublic void setAllowNegative(boolean allowNegative)
allowNegative
- true to allow negative valuespublic void setBaseChars(String baseChars)
baseChars
- the base characterspublic void setDecimalSeparator(String decimalSeparator)
decimalSeparator
- the decimal separatorpublic void setPropertyEditor(PropertyEditor<N> propertyEditor)
ValueBaseInputCell
setPropertyEditor
in class ValueBaseInputCell<N extends Number>
propertyEditor
- the property editorCopyright © 2015. All rights reserved.