N
- public class SpinnerFieldCell<N extends Number> extends NumberInputCell<N> implements HasBeforeSelectionHandlers<N>, HasSelectionHandlers<N>
Modifier and Type | Class and Description |
---|---|
static interface |
SpinnerFieldCell.SpinnerFieldAppearance |
TwinTriggerFieldCell.TwinTriggerFieldAppearance
TriggerFieldCell.TriggerFieldAppearance
ValueBaseInputCell.ValueBaseFieldAppearance
FieldCell.FieldAppearance, FieldCell.FieldAppearanceOptions, FieldCell.FieldViewData
Cell.Context
Constructor and Description |
---|
SpinnerFieldCell(NumberPropertyEditor<N> propertyEditor) |
SpinnerFieldCell(NumberPropertyEditor<N> propertyEditor,
SpinnerFieldCell.SpinnerFieldAppearance appearance) |
Modifier and Type | Method and Description |
---|---|
HandlerRegistration |
addBeforeSelectionHandler(BeforeSelectionHandler<N> handler)
Adds a
BeforeSelectionEvent handler. |
HandlerRegistration |
addSelectionHandler(SelectionHandler<N> handler)
Adds a
SelectionEvent handler. |
N |
getIncrement(Cell.Context context)
Sets the increment value.
|
Number |
getMaxValue(Cell.Context context)
Returns the fields max value.
|
Number |
getMinValue(Cell.Context context)
Returns the field's minimum value.
|
void |
setIncrement(N increment)
Sets the increment that should be used (defaults to 1d).
|
void |
setMaxValue(Number maxValue)
Sets the field's max allowable value.
|
void |
setMinValue(Number minValue)
Sets the field's minimum allowed value.
|
getBaseChars, getDecimalSeparator, getPropertyEditor, isAllowDecimals, isAllowNegative, setAllowDecimals, setAllowNegative, setBaseChars, setDecimalSeparator, setPropertyEditor
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
fireEvent
public SpinnerFieldCell(NumberPropertyEditor<N> propertyEditor)
public SpinnerFieldCell(NumberPropertyEditor<N> propertyEditor, SpinnerFieldCell.SpinnerFieldAppearance appearance)
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<N> handler)
BeforeSelectionEvent
handler. The handler will be passed an instance of
BeforeSelectionEvent
which can in this case be cast to CellBeforeSelectionEvent
.addBeforeSelectionHandler
in interface HasBeforeSelectionHandlers<N extends Number>
handler
- the handlerpublic HandlerRegistration addSelectionHandler(SelectionHandler<N> handler)
SelectionEvent
handler. The handler will be passed an instance of SelectionEvent
which
can in this case be cast to CellSelectionEvent
.addSelectionHandler
in interface HasSelectionHandlers<N extends Number>
handler
- the handlerpublic N getIncrement(Cell.Context context)
context
- the contextpublic Number getMaxValue(Cell.Context context)
context
- the contextpublic Number getMinValue(Cell.Context context)
context
- the contextpublic void setIncrement(N increment)
increment
- the increment to set.public void setMaxValue(Number maxValue)
maxValue
- the max valuepublic void setMinValue(Number minValue)
minValue
- the minimum valueCopyright © 2015. All rights reserved.