Package com._1c.g5.lwt.controls
Class DoubleLightSpinner
- java.lang.Object
-
- com._1c.g5.lwt.AbstractLightControl
-
- com._1c.g5.lwt.LightComposite
-
- com._1c.g5.lwt.AbstractLightContentComposite<C>
-
- com._1c.g5.lwt.controls.LightEditorBar<LightText>
-
- com._1c.g5.lwt.controls.LightTextEditorBar
-
- com._1c.g5.lwt.controls.AbstractLightSpinner<Double>
-
- com._1c.g5.lwt.controls.DoubleLightSpinner
-
- All Implemented Interfaces:
IEditable
,ILightComposite
,ILightContentComposite<LightText>
,ILightControl
public class DoubleLightSpinner extends AbstractLightSpinner<Double>
Light spinner control for double values.
-
-
Constructor Summary
Constructors Constructor Description DoubleLightSpinner(boolean nullable)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Double
getDefaultMaximum()
Gets the default maximum value.protected Double
getDefaultMinimum()
Gets the default minimum value.protected Double
getInvalidValue()
Gets the invalid value.protected Pattern
getVerifyPattern()
Gets the verify pattern for value.protected Double
nextValue(Double value)
Gets the next value to given value.protected Double
parseValue(String text)
Parses value from given text.protected Double
previousValue(Double 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 Double getDefaultMaximum()
Description copied from class:AbstractLightSpinner
Gets the default maximum value.- Specified by:
getDefaultMaximum
in classAbstractLightSpinner<Double>
- Returns:
- The default maximum value.
-
getDefaultMinimum
protected Double getDefaultMinimum()
Description copied from class:AbstractLightSpinner
Gets the default minimum value.- Specified by:
getDefaultMinimum
in classAbstractLightSpinner<Double>
- Returns:
- The default minimum value.
-
getInvalidValue
protected Double getInvalidValue()
Description copied from class:AbstractLightSpinner
Gets the invalid value.- Specified by:
getInvalidValue
in classAbstractLightSpinner<Double>
- Returns:
- The invalid value.
-
getVerifyPattern
protected Pattern getVerifyPattern()
Description copied from class:AbstractLightSpinner
Gets the verify pattern for value.- Specified by:
getVerifyPattern
in classAbstractLightSpinner<Double>
- Returns:
- The verify pattern.
-
nextValue
protected Double nextValue(Double value)
Description copied from class:AbstractLightSpinner
Gets the next value to given value.- Specified by:
nextValue
in classAbstractLightSpinner<Double>
- Parameters:
value
- The given value.- Returns:
- The next value.
-
parseValue
protected Double parseValue(String text)
Description copied from class:AbstractLightSpinner
Parses value from given text.- Specified by:
parseValue
in classAbstractLightSpinner<Double>
- Parameters:
text
- The given text.- Returns:
- The parsed value.
-
previousValue
protected Double previousValue(Double value)
Description copied from class:AbstractLightSpinner
Gets the previous value to given value.- Specified by:
previousValue
in classAbstractLightSpinner<Double>
- Parameters:
value
- The given value.- Returns:
- The previous value.
-
-