Class NumericBoxSpinner
java.lang.Object
org.dwcj.controls.AbstractControl
org.dwcj.controls.AbstractDwcControl
org.dwcj.controls.numericbox.NumericBox
org.dwcj.controls.numericboxspinner.NumericBoxSpinner
- All Implemented Interfaces:
Control,Enableable,Focusable,HasAttribute,HasClassName,HasComputedStyle,HasControlText,HasDestroy,HasMouseWheelCondition,HasReadOnly,HasStyle,HasTooltip,HasVisibility,TabTraversable,TextAlignable,TextHighlightable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.dwcj.controls.numericbox.NumericBox
NumericBox.ThemeNested classes/interfaces inherited from interface org.dwcj.interfaces.HasMouseWheelCondition
HasMouseWheelCondition.MouseWheelConditionNested classes/interfaces inherited from interface org.dwcj.interfaces.TextAlignable
TextAlignable.AlignmentNested classes/interfaces inherited from interface org.dwcj.interfaces.TextHighlightable
TextHighlightable.Highlight -
Field Summary
Fields inherited from class org.dwcj.controls.numericbox.NumericBox
callbacks, commaChar, commas, dotChar, editModifyEventSink, editString, highlight, insertMode, length, margin, mask, negatable, numBox, pEnter, pTab, restore, valueFields inherited from class org.dwcj.controls.AbstractDwcControl
BASISNUMBER_1, BASISNUMBER_25, BASISNUMBER_250, focusable, horizontalScrollBarPosition, mouseWheelCondition, readOnly, STR_EXPANSE, STR_THEME, tabTraversable, textAlignment, textHighlight, verticalScrollBarPositionFields inherited from class org.dwcj.controls.AbstractControl
ctrl, destroyed, elementId, userData -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcatchUp()The catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation.protected voidCreate the object on a panel p.getScrollWheelBehavior returns a constant indicating under what situations the control will respond to the mouse scroll wheel.setScrollWheelBehavior configures under what situations the control will respond to the mouse scroll wheel.Methods inherited from class org.dwcj.controls.numericbox.NumericBox
addClassName, getCommaCharacter, getDotCharacter, getEditString, getError, getHighlightOnFocus, getLength, getMargin, getMask, getRestore, getTextAlignment, getValue, isFocusable, isHighlight, isInsertMode, isNegatable, isPassEnter, isPassTab, isReadOnly, isTabTraversable, isUseEditCommas, onEditModify, removeClassName, restore, selectAll, setAttribute, setCommaCharacter, setDotCharacter, setEditString, setEnabled, setExpanse, setFocusable, setHighlight, setHighlightOnFocus, setId, setInsertMode, setLength, setMargin, setMask, setNegatable, setPassEnter, setPassTab, setReadOnly, setRestore, setStyle, setTabTraversable, setText, setTextAlignment, setTheme, setTooltipText, setUseEditCommas, setValue, setValue, setValue, setVisibleMethods inherited from class org.dwcj.controls.AbstractDwcControl
destroy, getAttribute, getComputedStyle, getText, getTooltipText, isEnabled, isVisible, setControlExpanse, setControlThemeMethods inherited from class org.dwcj.controls.AbstractControl
getCaughtUp, getId, getUserData, isDestroyed, setUserData
-
Constructor Details
-
NumericBoxSpinner
public NumericBoxSpinner()
-
-
Method Details
-
create
Description copied from class:AbstractControlCreate the object on a panel p. The preferred way of creating an object is using the Panel::add(Control) method, instead of this- Overrides:
createin classNumericBox- Parameters:
p- the panel to add this control on
-
getScrollWheelBehavior
Description copied from interface:HasMouseWheelConditiongetScrollWheelBehavior returns a constant indicating under what situations the control will respond to the mouse scroll wheel.- Specified by:
getScrollWheelBehaviorin interfaceHasMouseWheelCondition- Returns:
- Enum value of scroll behavior
-
setScrollWheelBehavior
public NumericBoxSpinner setScrollWheelBehavior(HasMouseWheelCondition.MouseWheelCondition condition) Description copied from interface:HasMouseWheelConditionsetScrollWheelBehavior configures under what situations the control will respond to the mouse scroll wheel.- Specified by:
setScrollWheelBehaviorin interfaceHasMouseWheelCondition- Parameters:
condition- Enum value for desired behavior- Returns:
- The control itself
-
catchUp
Description copied from class:AbstractDwcControlThe catchUp method is used to replay attributes and settings that the API user might have added to a control before its creation. A control is not created before it's added to a panel. Anything that is added between instantiation of a control and its addition to a panel has to be recorded and replayed in this method- Overrides:
catchUpin classNumericBox- Throws:
IllegalAccessException- - thrown if an attempt is made to call this method more than once
-