Method Summary
|
protected Object |
ComponentDisabledChanged(Object component, Object domElement, Object newValue, Object oldValue)
|
private Object |
_getAnchor(Object node)
-
Get the anchor, used by the increment/decrement buttons.
|
protected Object |
GetBestMatchSubId(Object domElement)
-
Returns the best match subId for the given domElement.
|
protected Object |
GetInlineEditor(Event event)
-
Override to return an inline editor that edits the component's label property
|
private Object |
_getMax(Object component)
-
Function to calculate the maximum value on the client
|
private Object |
_getMin(Object component)
-
Function to calculate the minimum value on the client
|
private Object |
_getSpinboxValue(Object component)
-
Helper function, that gets the visibleValue of the InputNumberSpinbox component and returns it.
|
protected Object |
GetStepSize(Object component)
-
Method to calculate the stepsize to increase or decrease the value of the Spinbox.
|
protected HTMLElement |
GetSubIdDomElement(String subElementId)
-
Returns the dom element for a given subElementId.
|
private Object |
_handleButtonClicks(Object component, Object value, Object increase)
-
Controller function that handles the click of the +/- button and increases (or decreases) the value.
|
protected Object |
HandleComponentBlur(Object componentEvent)
-
We need to update the buttons on blur just in case the value changed
|
protected Object |
HandleComponentClick(Object componentEvent)
-
component on click event handler used to decrease or increase the current number value
|
protected Object |
HandleComponentKeyDown(Object componentEvent)
-
component key down event handler used to decrease or increase the current number value.
|
protected Object |
HandleComponentKeyPress(Object componentEvent)
-
Component keyboard key press event handler
|
protected Object |
HandleComponentMouseDown(Object componentEvent)
-
This mouse down event handler initializes the auto spin function for the spinbox, when doing a "mouse down" at the increase or decrease button.
|
protected Object |
HandleComponentMouseOut(Object componentEvent)
-
This component mouse out event handler is needed to stop the timer of the auto spin, when moving the mouse away from the decrease/increas button.
|
protected Object |
HandleComponentMouseUp(Object componentEvent)
-
component mouse out event handler.
|
protected Object |
InitDomElement(Object component, Object domElement)
-
Initialize the associated domElement when the peer is created.
|
private Object |
_initRepeat()
-
Callback function, started by an interval.
|
protected static Object |
InitSubclass()
|
private Object |
_isActionButton(Object element)
-
helper function which checks if the given element is a decrease or increase button.
|
private Object |
_manipulateValue(Object incrementor)
-
Function that is called, when the +/- buttons of the Spinbox are clicked.
|
private Object |
_repeatSpinbox()
-
Controller for the main increment or decrement function.
|
private Object |
_setVisibleValue(Object component, Object newValue)
-
Function to set the new visible value of the InputNumberSpinbox component.
|
private Object |
_updateButtons(Object domElement, Object atMax, Object atMin)
-
Helper function that is used to set the CSS style for the disabled and enabled states of the increase and decrease buttons.
|