com.sencha.gxt.cell.core.client.form
Class SpinnerFieldCell<N extends java.lang.Number>
java.lang.Object
com.google.gwt.cell.client.AbstractCell<C>
com.google.gwt.cell.client.AbstractEditableCell<C,V>
com.google.gwt.cell.client.AbstractInputCell<T,V>
com.sencha.gxt.cell.core.client.AbstractEventInputCell<T,FieldCell.FieldViewData>
com.sencha.gxt.cell.core.client.form.FieldCell<T>
com.sencha.gxt.cell.core.client.form.ValueBaseInputCell<T>
com.sencha.gxt.cell.core.client.form.TriggerFieldCell<T>
com.sencha.gxt.cell.core.client.form.TwinTriggerFieldCell<N>
com.sencha.gxt.cell.core.client.form.NumberInputCell<N>
com.sencha.gxt.cell.core.client.form.SpinnerFieldCell<N>
- Type Parameters:
N -
- All Implemented Interfaces:
- Cell<N>, HasBeforeSelectionHandlers<N>, HasSelectionHandlers<N>, HasHandlers, ResizableCell, ParseErrorEvent.HasParseErrorHandlers
public class SpinnerFieldCell<N extends java.lang.Number>
- extends NumberInputCell<N>
- implements HasBeforeSelectionHandlers<N>, HasSelectionHandlers<N>
A numeric cell with up / down arrows that increment / decrement the value.
| Nested classes/interfaces inherited from interface com.google.gwt.cell.client.Cell |
Cell.Context |
| Methods inherited from class com.sencha.gxt.cell.core.client.form.ValueBaseInputCell |
addParseErrorHandler, disable, enable, getCursorPos, getEmptyText, getInputElement, getName, getText, isAllowBlank, isClearValueOnParseError, isSelectOnFocus, onEmpty, resetFocus, select, selectAll, setAllowBlank, setClearValueOnParseError, setCursorPos, setEmptyText, setName, setSelectOnFocus, setText |
| Methods inherited from class com.sencha.gxt.cell.core.client.form.FieldCell |
getHeight, getWidth, handlesSelection, isDisabled, isReadOnly, onValid, redrawOnResize, setHeight, setReadOnly, setSize, setWidth |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpinnerFieldCell
public SpinnerFieldCell(NumberPropertyEditor<N> propertyEditor)
SpinnerFieldCell
public SpinnerFieldCell(NumberPropertyEditor<N> propertyEditor,
SpinnerFieldCell.SpinnerFieldAppearance appearance)
addBeforeSelectionHandler
public HandlerRegistration addBeforeSelectionHandler(BeforeSelectionHandler<N> handler)
- Adds a
BeforeSelectionEvent handler. The handler will be passed an
instance of CellBeforeSelectionEvent which can be cast to.
- Specified by:
addBeforeSelectionHandler in interface HasBeforeSelectionHandlers<N extends java.lang.Number>
- Parameters:
handler - the handler
- Returns:
- the registration for the event
addSelectionHandler
public HandlerRegistration addSelectionHandler(SelectionHandler<N> handler)
- Adds a
SelectionEvent handler. The handler will be passed an
instance of CellSelectionEvent which can be cast to.
- Specified by:
addSelectionHandler in interface HasSelectionHandlers<N extends java.lang.Number>
- Parameters:
handler - the handler
- Returns:
- the registration for the event
getIncrement
public N getIncrement(Cell.Context context)
- Sets the increment value.
- Parameters:
context - the context
- Returns:
- the increment
getMaxValue
public java.lang.Number getMaxValue(Cell.Context context)
- Returns the fields max value.
- Parameters:
context - the context
- Returns:
- the max value
getMinValue
public java.lang.Number getMinValue(Cell.Context context)
- Returns the field's minimum value.
- Parameters:
context - the context
- Returns:
- the min value
setIncrement
public void setIncrement(N increment)
- Sets the increment that should be used (defaults to 1d).
- Parameters:
increment - the increment to set.
setMaxValue
public void setMaxValue(java.lang.Number maxValue)
- Sets the field's max allowable value.
- Parameters:
maxValue - the max value
setMinValue
public void setMinValue(java.lang.Number minValue)
- Sets the field's minimum allowed value.
- Parameters:
minValue - the minimum value
Copyright © 2012. All Rights Reserved.