Package com._1c.g5.lwt.controls
Class LightSpinner
-
- All Implemented Interfaces:
IEditable
,ILightComposite
,ILightContentComposite<LightText>
,ILightControl
public class LightSpinner extends AbstractLightSpinner<Integer>
Light spinner control for integer values.
-
-
Constructor Summary
Constructors Constructor Description LightSpinner(boolean nullable)
Instantiates a new light spinner.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Integer
getDefaultMaximum()
Gets the default maximum value.protected Integer
getDefaultMinimum()
Gets the default minimum value.protected Integer
getInvalidValue()
Gets the invalid value.protected Pattern
getVerifyPattern()
Gets the verify pattern for value.protected Integer
nextValue(Integer value)
Gets the next value to given value.protected Integer
parseValue(String text)
Parses value from given text.protected Integer
previousValue(Integer value)
Gets the previous value to given value.-
Methods inherited from class com._1c.g5.lwt.controls.AbstractLightSpinner
addValueListener, getMaximum, getMinimum, getValue, removeValueListener, setEditable, setMaximum, setMinimum, setValue
-
Methods inherited from class com._1c.g5.lwt.controls.LightTextEditorBar
addButton, getButtons, isTextEditable, removeButton, setEditable, setTextEditable
-
Methods inherited from class com._1c.g5.lwt.controls.LightEditorBar
contentSet, contentUnset, getBackgroundColor, getBorderColor, getImage, getLeftSide, getRightSide, isEditable, paint, setBackgroundColor, setBorderColor, setEnabled, setImage, setVisible
-
Methods inherited from class com._1c.g5.lwt.AbstractLightContentComposite
getContent, setContent
-
Methods inherited from class com._1c.g5.lwt.LightComposite
addChild, addChild, addChildAfter, addLayerAbove, addLayerBehind, computeSize, controlFromPoint, dispose, getActiveControl, getChildCount, getChildren, getLayers, getLayout, layout, layout, removeChild, removeChild, revealRectangle, setActiveControl, setBounds, setFocus, setLayout, translatePointFromControl, translatePointToControl, translateRectangleFromControl, translateRectangleToControl, traverse, traverse
-
Methods inherited from class com._1c.g5.lwt.AbstractLightControl
addControlListener, getBounds, getCursor, getData, getLayoutData, getOverlay, getParent, getTooltip, getVisibleBounds, handleEvent, invalidate, invalidate, isDisposed, isEnabled, isFocused, isVisible, removeControlListener, setCursor, setData, setFocusable, setLayoutData, setOverlay, setParent, setTooltip
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com._1c.g5.lwt.ILightComposite
getMainLayer
-
Methods inherited from interface com._1c.g5.lwt.ILightControl
addControlListener, getBounds, getCursor, getData, getLayoutData, getParent, getTooltip, getVisibleBounds, handleEvent, initialize, invalidate, invalidate, isDisposed, isEnabled, isFocused, isVisible, removeControlListener, setCursor, setData, setLayoutData, setParent, setTooltip
-
-
-
-
Method Detail
-
getDefaultMaximum
protected Integer getDefaultMaximum()
Description copied from class:AbstractLightSpinner
Gets the default maximum value.- Specified by:
getDefaultMaximum
in classAbstractLightSpinner<Integer>
- Returns:
- The default maximum value.
-
getDefaultMinimum
protected Integer getDefaultMinimum()
Description copied from class:AbstractLightSpinner
Gets the default minimum value.- Specified by:
getDefaultMinimum
in classAbstractLightSpinner<Integer>
- Returns:
- The default minimum value.
-
getInvalidValue
protected Integer getInvalidValue()
Description copied from class:AbstractLightSpinner
Gets the invalid value.- Specified by:
getInvalidValue
in classAbstractLightSpinner<Integer>
- Returns:
- The invalid value.
-
getVerifyPattern
protected Pattern getVerifyPattern()
Description copied from class:AbstractLightSpinner
Gets the verify pattern for value.- Specified by:
getVerifyPattern
in classAbstractLightSpinner<Integer>
- Returns:
- The verify pattern.
-
nextValue
protected Integer nextValue(Integer value)
Description copied from class:AbstractLightSpinner
Gets the next value to given value.- Specified by:
nextValue
in classAbstractLightSpinner<Integer>
- Parameters:
value
- The given value.- Returns:
- The next value.
-
parseValue
protected Integer parseValue(String text)
Description copied from class:AbstractLightSpinner
Parses value from given text.- Specified by:
parseValue
in classAbstractLightSpinner<Integer>
- Parameters:
text
- The given text.- Returns:
- The parsed value.
-
previousValue
protected Integer previousValue(Integer value)
Description copied from class:AbstractLightSpinner
Gets the previous value to given value.- Specified by:
previousValue
in classAbstractLightSpinner<Integer>
- Parameters:
value
- The given value.- Returns:
- The previous value.
-
-