Class NullableSpinner
- java.lang.Object
- 
- org.eclipse.swt.widgets.Widget
- 
- org.eclipse.swt.widgets.Control
- 
- org.eclipse.swt.widgets.Scrollable
- 
- org.eclipse.swt.widgets.Composite
- 
- com._1c.g5.v8.dt.common.ui.controls.NullableSpinner
 
 
 
 
 
- 
- All Implemented Interfaces:
- org.eclipse.swt.graphics.Drawable
 
 public class NullableSpinner extends org.eclipse.swt.widgets.CompositeCustom spinner control withnullvalue support.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfaceNullableSpinner.ValueListenerNullable spinner value listener.
 - 
Constructor SummaryConstructors Constructor Description NullableSpinner(org.eclipse.swt.widgets.Composite parent, int style)Instantiates a new nullable spinner.NullableSpinner(org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.ui.forms.widgets.FormToolkit toolkit)Instantiates a new nullable spinner.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValueListener(NullableSpinner.ValueListener listener)Adds the value listener.intgetMaximum()Gets the maximum allowed value.intgetMinimum()Gets the minimum allowed value.IntegergetValue()Gets the value.voidremoveValueListener(NullableSpinner.ValueListener listener)Removes the value listener.voidsetEnabled(boolean enabled)voidsetMaximum(int maximum)Sets the maximum allowed value.voidsetMinimum(int minimum)Sets the minimum allowed value.voidsetValue(Integer value)Sets the value.- 
Methods inherited from class org.eclipse.swt.widgets.Compositechanged, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setFocus, setLayout, setLayoutDeferred, setTabList, toString
 - 
Methods inherited from class org.eclipse.swt.widgets.ScrollablecomputeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar
 - 
Methods inherited from class org.eclipse.swt.widgets.ControladdControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, forceFocus, getAccessible, getBackground, getBackgroundImage, getBorderWidth, getBounds, getCursor, getDragDetect, getEnabled, getFont, getForeground, getLayoutData, getLocation, getMenu, getMonitor, getOrientation, getParent, getRegion, getShell, getSize, getTextDirection, getToolTipText, getTouchEnabled, getVisible, internal_dispose_GC, internal_new_GC, isEnabled, isFocusControl, isReparentable, isVisible, moveAbove, moveBelow, pack, pack, print, redraw, redraw, removeControlListener, removeDragDetectListener, removeFocusListener, removeGestureListener, removeHelpListener, removeKeyListener, removeMenuDetectListener, removeMouseListener, removeMouseMoveListener, removeMouseTrackListener, removeMouseWheelListener, removePaintListener, removeTouchListener, removeTraverseListener, requestLayout, setBackground, setBackgroundImage, setBounds, setBounds, setCapture, setCursor, setDragDetect, setFont, setForeground, setLayoutData, setLocation, setLocation, setMenu, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setToolTipText, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update
 - 
Methods inherited from class org.eclipse.swt.widgets.WidgetaddDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData
 
- 
 
- 
- 
- 
Constructor Detail- 
NullableSpinnerpublic NullableSpinner(org.eclipse.swt.widgets.Composite parent, int style)Instantiates a new nullable spinner.- Parameters:
- parent- the parent.
- style- the style.
 
 - 
NullableSpinnerpublic NullableSpinner(org.eclipse.swt.widgets.Composite parent, int style, org.eclipse.ui.forms.widgets.FormToolkit toolkit)Instantiates a new nullable spinner.- Parameters:
- parent- the parent.
- style- the style.
- toolkit- the form toolkit.
 
 
- 
 - 
Method Detail- 
getValuepublic Integer getValue() Gets the value.- Returns:
- the value.
 
 - 
setValuepublic void setValue(Integer value) Sets the value.- Parameters:
- value- the new value to set.
 
 - 
addValueListenerpublic void addValueListener(NullableSpinner.ValueListener listener) Adds the value listener.- Parameters:
- listener- the listener, should not be- null.
 
 - 
removeValueListenerpublic void removeValueListener(NullableSpinner.ValueListener listener) Removes the value listener.- Parameters:
- listener- the listener, should not be- null.
 
 - 
getMinimumpublic int getMinimum() Gets the minimum allowed value.- Returns:
- the minimum value.
 
 - 
setMinimumpublic void setMinimum(int minimum) Sets the minimum allowed value.- Parameters:
- minimum- the new minimum value.
 
 - 
getMaximumpublic int getMaximum() Gets the maximum allowed value.- Returns:
- the maximum value.
 
 - 
setMaximumpublic void setMaximum(int maximum) Sets the maximum allowed value.- Parameters:
- maximum- the new maximum value.
 
 - 
setEnabledpublic void setEnabled(boolean enabled) - Overrides:
- setEnabledin class- org.eclipse.swt.widgets.Control
 
 
- 
 
-