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