blob: bdf560a32ac65238daffe393c7a782d83e9040d7 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_201) on Thu Jul 23 15:58:39 CEST 2020 -->
<title>HorizontalSpinner</title>
<meta name="date" content="2020-07-23">
<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style">
<script type="text/javascript" src="../../../../../../script.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="HorizontalSpinner";
}
}
catch(err) {
}
//-->
var methods = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10,"i20":10,"i21":10,"i22":10,"i23":10,"i24":10,"i25":10,"i26":10,"i27":10,"i28":10,"i29":10,"i30":10,"i31":10,"i32":10};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/HorizontalSpinner.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html" target="_top">Frames</a></li>
<li><a href="HorizontalSpinner.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.eclipse.swt.widgets.Control">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">org.eclipse.nebula.widgets.opal.horizontalspinner</div>
<h2 title="Class HorizontalSpinner" class="title">Class HorizontalSpinner</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Widget</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Control</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Scrollable</li>
<li>
<ul class="inheritance">
<li>org.eclipse.swt.widgets.Composite</li>
<li>
<ul class="inheritance">
<li>org.eclipse.nebula.widgets.opal.horizontalspinner.HorizontalSpinner</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd>org.eclipse.swt.graphics.Drawable</dd>
</dl>
<hr>
<br>
<pre>public class <span class="typeNameLabel">HorizontalSpinner</span>
extends org.eclipse.swt.widgets.Composite</pre>
<div class="block">Instances of this class are selectable user interface objects that allow the
user to enter and modify numeric values.
<p>
<dl>
<dt><b>Styles:</b></dt>
<dd>READ_ONLY, FLAT</dd>
<dt><b>Events:</b></dt>
<dd>Selection, Modify</dd>
</dl>
</p></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<ul class="blockList">
<li class="blockList"><a name="fields.inherited.from.class.org.eclipse.swt.widgets.Control">
<!-- -->
</a>
<h3>Fields inherited from class&nbsp;org.eclipse.swt.widgets.Control</h3>
<code>handle</code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.summary">
<!-- -->
</a>
<h3>Constructor Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#HorizontalSpinner-org.eclipse.swt.widgets.Composite-int-">HorizontalSpinner</a></span>(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style)</code>
<div class="block">Constructs a new instance of this class given its parent and a style
value describing its behavior and appearance.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#addModifyListener-org.eclipse.swt.events.ModifyListener-">addModifyListener</a></span>(org.eclipse.swt.events.ModifyListener&nbsp;listener)</code>
<div class="block">Adds the listener to the collection of listeners who will be notified
when the receiver's text is modified, by sending it one of the messages
defined in the <code>ModifyListener</code> interface.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#addSelectionListener-org.eclipse.swt.events.SelectionListener-">addSelectionListener</a></span>(org.eclipse.swt.events.SelectionListener&nbsp;listener)</code>
<div class="block">Adds the listener to the collection of listeners who will be notified
when the control is selected by the user, by sending it one of the
messages defined in the <code>SelectionListener</code> interface.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#copy--">copy</a></span>()</code>
<div class="block">Copies the selected text.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#cut--">cut</a></span>()</code>
<div class="block">Cuts the selected text.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#forceFocus--">forceFocus</a></span>()</code>
<div class="block">Forces the receiver to have the <em>keyboard focus</em>, causing all
keyboard events to be delivered to it.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getDigits--">getDigits</a></span>()</code>
<div class="block">Returns the number of decimal places used by the receiver.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getIncrement--">getIncrement</a></span>()</code>
<div class="block">Returns the amount that the receiver's value will be modified by when the
up/down arrows are pressed.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getMaximum--">getMaximum</a></span>()</code>
<div class="block">Returns the maximum value which the receiver will allow.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getMinimum--">getMinimum</a></span>()</code>
<div class="block">Returns the minimum value which the receiver will allow.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getPageIncrement--">getPageIncrement</a></span>()</code>
<div class="block">Returns the amount that the receiver's position will be modified by when
the page up/down keys are pressed.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getSelection--">getSelection</a></span>()</code>
<div class="block">Returns the <em>selection</em>, which is the receiver's position.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getText--">getText</a></span>()</code>
<div class="block">Returns a string containing a copy of the contents of the receiver's text
field, or an empty string if there are no contents.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#getTextLimit--">getTextLimit</a></span>()</code>
<div class="block">Returns the maximum number of characters that the receiver's text field
is capable of holding.</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#paste--">paste</a></span>()</code>
<div class="block">Pastes text from clipboard.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#removeModifyListener-org.eclipse.swt.events.ModifyListener-">removeModifyListener</a></span>(org.eclipse.swt.events.ModifyListener&nbsp;listener)</code>
<div class="block">Removes the listener from the collection of listeners who will be
notified when the receiver's text is modified.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#removeSelectionListener-org.eclipse.swt.events.SelectionListener-">removeSelectionListener</a></span>(org.eclipse.swt.events.SelectionListener&nbsp;listener)</code>
<div class="block">Removes the listener from the collection of listeners who will be
notified when the control is selected by the user.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setBackground-org.eclipse.swt.graphics.Color-">setBackground</a></span>(org.eclipse.swt.graphics.Color&nbsp;color)</code>
<div class="block">Sets the receiver's background color to the color specified by the
argument, or to the default system color for the control if the argument
is null.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setBackgroundImage-org.eclipse.swt.graphics.Image-">setBackgroundImage</a></span>(org.eclipse.swt.graphics.Image&nbsp;image)</code>
<div class="block">Sets the receiver's background image to the image specified by the
argument, or to the default system color for the control if the argument
is null.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setCursor-org.eclipse.swt.graphics.Cursor-">setCursor</a></span>(org.eclipse.swt.graphics.Cursor&nbsp;cursor)</code>
<div class="block">Sets the receiver's cursor to the cursor specified by the argument, or to
the default cursor for that kind of control if the argument is null.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setDigits-int-">setDigits</a></span>(int&nbsp;value)</code>
<div class="block">Sets the number of decimal places used by the receiver.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setEnabled-boolean-">setEnabled</a></span>(boolean&nbsp;enabled)</code>
<div class="block">Enables the receiver if the argument is <code>true</code>, and disables
it otherwise.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setFocus--">setFocus</a></span>()</code>
<div class="block">Sets the receiver's drag detect state.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setFont-org.eclipse.swt.graphics.Font-">setFont</a></span>(org.eclipse.swt.graphics.Font&nbsp;font)</code>
<div class="block">Sets the font that the receiver will use to paint textual information to
the font specified by the argument, or to the default font for that kind
of control if the argument is null.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setForeground-org.eclipse.swt.graphics.Color-">setForeground</a></span>(org.eclipse.swt.graphics.Color&nbsp;color)</code>
<div class="block">Sets the receiver's foreground color to the color specified by the
argument, or to the default system color for the control if the argument
is null.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setIncrement-int-">setIncrement</a></span>(int&nbsp;value)</code>
<div class="block">Sets the amount that the receiver's value will be modified by when the
up/down arrows are pressed to the argument, which must be at least one.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setMaximum-int-">setMaximum</a></span>(int&nbsp;value)</code>
<div class="block">Sets the maximum value that the receiver will allow.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setMenu-org.eclipse.swt.widgets.Menu-">setMenu</a></span>(org.eclipse.swt.widgets.Menu&nbsp;menu)</code>
<div class="block">Sets the receiver's pop up menu to the argument.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setMinimum-int-">setMinimum</a></span>(int&nbsp;value)</code>
<div class="block">Sets the minimum value that the receiver will allow.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setPageIncrement-int-">setPageIncrement</a></span>(int&nbsp;value)</code>
<div class="block">Sets the amount that the receiver's position will be modified by when the
page up/down keys are pressed to the argument, which must be at least
one.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setSelection-int-">setSelection</a></span>(int&nbsp;selection)</code>
<div class="block">Sets the <em>selection</em>, which is the receiver's position, to the
argument.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setTextLimit-int-">setTextLimit</a></span>(int&nbsp;limit)</code>
<div class="block">Sets the maximum number of characters that the receiver's text field is
capable of holding to be the argument.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setToolTipText-java.lang.String-">setToolTipText</a></span>(java.lang.String&nbsp;tooltipText)</code>
<div class="block">Sets the receiver's tool tip text to the argument, which may be null
indicating that the default tool tip for the control will be shown.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setValues-int-int-int-int-int-int-">setValues</a></span>(int&nbsp;selection,
int&nbsp;minimum,
int&nbsp;maximum,
int&nbsp;digits,
int&nbsp;increment,
int&nbsp;pageIncrement)</code>
<div class="block">Sets the receiver's selection, minimum value, maximum value, digits,
increment and page increment all at once.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Composite">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Composite</h3>
<code>changed, checkSubclass, drawBackground, getBackgroundMode, getChildren, getLayout, getLayoutDeferred, getTabList, isLayoutDeferred, layout, layout, layout, layout, layout, setBackgroundMode, setLayout, setLayoutDeferred, setTabList</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Scrollable">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Scrollable</h3>
<code>computeTrim, getClientArea, getHorizontalBar, getScrollbarsMode, getVerticalBar</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Control">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Control</h3>
<code>addControlListener, addDragDetectListener, addFocusListener, addGestureListener, addHelpListener, addKeyListener, addMenuDetectListener, addMouseListener, addMouseMoveListener, addMouseTrackListener, addMouseWheelListener, addPaintListener, addTouchListener, addTraverseListener, computeSize, computeSize, dragDetect, dragDetect, 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, setBounds, setBounds, setCapture, setDragDetect, setLayoutData, setLocation, setLocation, setOrientation, setParent, setRedraw, setRegion, setSize, setSize, setTextDirection, setTouchEnabled, setVisible, toControl, toControl, toDisplay, toDisplay, traverse, traverse, traverse, update</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.widgets.Widget">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;org.eclipse.swt.widgets.Widget</h3>
<code>addDisposeListener, addListener, checkWidget, dispose, getData, getData, getDisplay, getListeners, getStyle, isAutoDirection, isDisposed, isListening, notifyListeners, removeDisposeListener, removeListener, removeListener, reskin, setData, setData, toString</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods.inherited.from.class.org.eclipse.swt.graphics.Drawable">
<!-- -->
</a>
<h3>Methods inherited from interface&nbsp;org.eclipse.swt.graphics.Drawable</h3>
<code>isAutoScalable</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor.detail">
<!-- -->
</a>
<h3>Constructor Detail</h3>
<a name="HorizontalSpinner-org.eclipse.swt.widgets.Composite-int-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>HorizontalSpinner</h4>
<pre>public&nbsp;HorizontalSpinner(org.eclipse.swt.widgets.Composite&nbsp;parent,
int&nbsp;style)</pre>
<div class="block">Constructs a new instance of this class given its parent and a style
value describing its behavior and appearance.
<p>
The style value is either one of the style constants defined in class
<code>SWT</code> which is applicable to instances of this class, or must
be built by <em>bitwise OR</em>'ing together (that is, using the
<code>int</code> "|" operator) two or more of those <code>SWT</code>
style constants. The class description lists the style constants that are
applicable to the class. Style bits are also inherited from superclasses.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>parent</code> - a composite control which will be the parent of the new
instance (cannot be null)</dd>
<dd><code>style</code> - the style of control to construct</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_NULL_ARGUMENT - if the parent is null</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the parent</li>
<li>ERROR_INVALID_SUBCLASS - if this class is not an
allowed subclass</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>SWT.READ_ONLY</code>,
<code>SWT.FLAT</code></dd>
</dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="addModifyListener-org.eclipse.swt.events.ModifyListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addModifyListener</h4>
<pre>public&nbsp;void&nbsp;addModifyListener(org.eclipse.swt.events.ModifyListener&nbsp;listener)</pre>
<div class="block">Adds the listener to the collection of listeners who will be notified
when the receiver's text is modified, by sending it one of the messages
defined in the <code>ModifyListener</code> interface.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the listener which should be notified</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_NULL_ARGUMENT - if the listener is null</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>ModifyListener</code>,
<a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#removeModifyListener-org.eclipse.swt.events.ModifyListener-"><code>removeModifyListener(org.eclipse.swt.events.ModifyListener)</code></a>,
<code>Spinner.addModifyListener(org.eclipse.swt.events.ModifyListener)</code></dd>
</dl>
</li>
</ul>
<a name="addSelectionListener-org.eclipse.swt.events.SelectionListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addSelectionListener</h4>
<pre>public&nbsp;void&nbsp;addSelectionListener(org.eclipse.swt.events.SelectionListener&nbsp;listener)</pre>
<div class="block">Adds the listener to the collection of listeners who will be notified
when the control is selected by the user, by sending it one of the
messages defined in the <code>SelectionListener</code> interface.
<p>
<code>widgetSelected</code> is not called for texts.
<code>widgetDefaultSelected</code> is typically called when ENTER is
pressed in a single-line text.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the listener which should be notified when the control is
selected by the user</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_NULL_ARGUMENT - if the listener is null</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>SelectionListener</code>,
<a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#removeSelectionListener-org.eclipse.swt.events.SelectionListener-"><code>removeSelectionListener(org.eclipse.swt.events.SelectionListener)</code></a>,
<code>SelectionEvent</code></dd>
</dl>
</li>
</ul>
<a name="copy--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>copy</h4>
<pre>public&nbsp;void&nbsp;copy()</pre>
<div class="block">Copies the selected text.
<p>
The current selection is copied to the clipboard.
</p></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="cut--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>cut</h4>
<pre>public&nbsp;void&nbsp;cut()</pre>
<div class="block">Cuts the selected text.
<p>
The current selection is first copied to the clipboard and then deleted
from the widget.
</p></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getDigits--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDigits</h4>
<pre>public&nbsp;int&nbsp;getDigits()</pre>
<div class="block">Returns the number of decimal places used by the receiver.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the digits</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getIncrement--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getIncrement</h4>
<pre>public&nbsp;int&nbsp;getIncrement()</pre>
<div class="block">Returns the amount that the receiver's value will be modified by when the
up/down arrows are pressed.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the increment</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getMaximum--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaximum</h4>
<pre>public&nbsp;int&nbsp;getMaximum()</pre>
<div class="block">Returns the maximum value which the receiver will allow.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the maximum</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getMinimum--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMinimum</h4>
<pre>public&nbsp;int&nbsp;getMinimum()</pre>
<div class="block">Returns the minimum value which the receiver will allow.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the minimum</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getPageIncrement--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPageIncrement</h4>
<pre>public&nbsp;int&nbsp;getPageIncrement()</pre>
<div class="block">Returns the amount that the receiver's position will be modified by when
the page up/down keys are pressed.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the page increment</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getSelection--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSelection</h4>
<pre>public&nbsp;int&nbsp;getSelection()</pre>
<div class="block">Returns the <em>selection</em>, which is the receiver's position.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the selection</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getText--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getText</h4>
<pre>public&nbsp;java.lang.String&nbsp;getText()</pre>
<div class="block">Returns a string containing a copy of the contents of the receiver's text
field, or an empty string if there are no contents.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the receiver's text</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="getTextLimit--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextLimit</h4>
<pre>public&nbsp;int&nbsp;getTextLimit()</pre>
<div class="block">Returns the maximum number of characters that the receiver's text field
is capable of holding. If this has not been changed by
<code>setTextLimit()</code>, it will be the constant
<code>Spinner.LIMIT</code>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the text limit</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>#LIMIT</code></dd>
</dl>
</li>
</ul>
<a name="paste--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>paste</h4>
<pre>public&nbsp;void&nbsp;paste()</pre>
<div class="block">Pastes text from clipboard.
<p>
The selected text is deleted from the widget and new text inserted from
the clipboard.
</p></div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="removeModifyListener-org.eclipse.swt.events.ModifyListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeModifyListener</h4>
<pre>public&nbsp;void&nbsp;removeModifyListener(org.eclipse.swt.events.ModifyListener&nbsp;listener)</pre>
<div class="block">Removes the listener from the collection of listeners who will be
notified when the receiver's text is modified.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the listener which should no longer be notified</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_NULL_ARGUMENT - if the listener is null</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>ModifyListener</code>,
<a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#addModifyListener-org.eclipse.swt.events.ModifyListener-"><code>addModifyListener(org.eclipse.swt.events.ModifyListener)</code></a></dd>
</dl>
</li>
</ul>
<a name="removeSelectionListener-org.eclipse.swt.events.SelectionListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeSelectionListener</h4>
<pre>public&nbsp;void&nbsp;removeSelectionListener(org.eclipse.swt.events.SelectionListener&nbsp;listener)</pre>
<div class="block">Removes the listener from the collection of listeners who will be
notified when the control is selected by the user.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - the listener which should no longer be notified</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_NULL_ARGUMENT - if the listener is null</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>SelectionListener</code>,
<a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#addSelectionListener-org.eclipse.swt.events.SelectionListener-"><code>addSelectionListener(org.eclipse.swt.events.SelectionListener)</code></a></dd>
</dl>
</li>
</ul>
<a name="setDigits-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDigits</h4>
<pre>public&nbsp;void&nbsp;setDigits(int&nbsp;value)</pre>
<div class="block">Sets the number of decimal places used by the receiver.
<p>
The digit setting is used to allow for floating point values in the
receiver. For example, to set the selection to a floating point value of
1.37 call setDigits() with a value of 2 and setSelection() with a value
of 137. Similarly, if getDigits() has a value of 2 and getSelection()
returns 137 this should be interpreted as 1.37. This applies to all
numeric APIs.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the new digits (must be greater than or equal to zero)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_INVALID_ARGUMENT - if the value is less than
zero</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setIncrement-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setIncrement</h4>
<pre>public&nbsp;void&nbsp;setIncrement(int&nbsp;value)</pre>
<div class="block">Sets the amount that the receiver's value will be modified by when the
up/down arrows are pressed to the argument, which must be at least one.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the new increment (must be greater than zero)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setMaximum-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMaximum</h4>
<pre>public&nbsp;void&nbsp;setMaximum(int&nbsp;value)</pre>
<div class="block">Sets the maximum value that the receiver will allow. This new value will
be ignored if it is less than the receiver's current minimum value. If
the new maximum is applied then the receiver's selection value will be
adjusted if necessary to fall within its new range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the new maximum, which must be greater than or equal to the
current minimum</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setMinimum-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMinimum</h4>
<pre>public&nbsp;void&nbsp;setMinimum(int&nbsp;value)</pre>
<div class="block">Sets the minimum value that the receiver will allow. This new value will
be ignored if it is greater than the receiver's current maximum value. If
the new minimum is applied then the receiver's selection value will be
adjusted if necessary to fall within its new range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the new minimum, which must be less than or equal to the
current maximum</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setPageIncrement-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPageIncrement</h4>
<pre>public&nbsp;void&nbsp;setPageIncrement(int&nbsp;value)</pre>
<div class="block">Sets the amount that the receiver's position will be modified by when the
page up/down keys are pressed to the argument, which must be at least
one.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the page increment (must be greater than zero)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setSelection-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSelection</h4>
<pre>public&nbsp;void&nbsp;setSelection(int&nbsp;selection)</pre>
<div class="block">Sets the <em>selection</em>, which is the receiver's position, to the
argument. If the argument is not within the range specified by minimum
and maximum, it will be adjusted to fall within this range.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>value</code> - the new selection (must be zero or greater)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setTextLimit-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextLimit</h4>
<pre>public&nbsp;void&nbsp;setTextLimit(int&nbsp;limit)</pre>
<div class="block">Sets the maximum number of characters that the receiver's text field is
capable of holding to be the argument.
<p>
To reset this value to the default, use
<code>setTextLimit(Spinner.LIMIT)</code>. Specifying a limit value larger
than <code>Spinner.LIMIT</code> sets the receiver's limit to
<code>Spinner.LIMIT</code>.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>limit</code> - new text limit</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_CANNOT_BE_ZERO - if the limit is zero</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><code>#LIMIT</code></dd>
</dl>
</li>
</ul>
<a name="setValues-int-int-int-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setValues</h4>
<pre>public&nbsp;void&nbsp;setValues(int&nbsp;selection,
int&nbsp;minimum,
int&nbsp;maximum,
int&nbsp;digits,
int&nbsp;increment,
int&nbsp;pageIncrement)</pre>
<div class="block">Sets the receiver's selection, minimum value, maximum value, digits,
increment and page increment all at once.
<p>
Note: This is similar to setting the values individually using the
appropriate methods, but may be implemented in a more efficient fashion
on some platforms.
</p></div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>selection</code> - the new selection value</dd>
<dd><code>minimum</code> - the new minimum value</dd>
<dd><code>maximum</code> - the new maximum value</dd>
<dd><code>digits</code> - the new digits value</dd>
<dd><code>increment</code> - the new increment value</dd>
<dd><code>pageIncrement</code> - the new pageIncrement value</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setFocus--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFocus</h4>
<pre>public&nbsp;boolean&nbsp;setFocus()</pre>
<div class="block">Sets the receiver's drag detect state. If the argument is
<code>true</code>, the receiver will detect drag gestures, otherwise
these gestures will be ignored.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setFocus</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Composite</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dragDetect</code> - the new drag detect state</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="forceFocus--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>forceFocus</h4>
<pre>public&nbsp;boolean&nbsp;forceFocus()</pre>
<div class="block">Forces the receiver to have the <em>keyboard focus</em>, causing all
keyboard events to be delivered to it.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>forceFocus</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd><code>true</code> if the control got focus, and
<code>false</code> if it was unable to.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../../../org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html#setFocus--"><code>setFocus()</code></a></dd>
</dl>
</li>
</ul>
<a name="setBackground-org.eclipse.swt.graphics.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBackground</h4>
<pre>public&nbsp;void&nbsp;setBackground(org.eclipse.swt.graphics.Color&nbsp;color)</pre>
<div class="block">Sets the receiver's background color to the color specified by the
argument, or to the default system color for the control if the argument
is null.
<p>
Note: This operation is a hint and may be overridden by the platform. For
example, on Windows the background of a Button cannot be changed.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setBackground</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>color</code> - the new color (or null)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_INVALID_ARGUMENT - if the argument has been
disposed</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setBackgroundImage-org.eclipse.swt.graphics.Image-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setBackgroundImage</h4>
<pre>public&nbsp;void&nbsp;setBackgroundImage(org.eclipse.swt.graphics.Image&nbsp;image)</pre>
<div class="block">Sets the receiver's background image to the image specified by the
argument, or to the default system color for the control if the argument
is null. The background image is tiled to fill the available space.
<p>
Note: This operation is a hint and may be overridden by the platform. For
example, on Windows the background of a Button cannot be changed.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setBackgroundImage</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>image</code> - the new image (or null)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_INVALID_ARGUMENT - if the argument has been
disposed</li>
<li>ERROR_INVALID_ARGUMENT - if the argument is not a
bitmap</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setCursor-org.eclipse.swt.graphics.Cursor-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCursor</h4>
<pre>public&nbsp;void&nbsp;setCursor(org.eclipse.swt.graphics.Cursor&nbsp;cursor)</pre>
<div class="block">Sets the receiver's cursor to the cursor specified by the argument, or to
the default cursor for that kind of control if the argument is null.
<p>
When the mouse pointer passes over a control its appearance is changed to
match the control's cursor.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setCursor</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>cursor</code> - the new cursor (or null)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_INVALID_ARGUMENT - if the argument has been
disposed</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setEnabled-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setEnabled</h4>
<pre>public&nbsp;void&nbsp;setEnabled(boolean&nbsp;enabled)</pre>
<div class="block">Enables the receiver if the argument is <code>true</code>, and disables
it otherwise. A disabled control is typically not selectable from the
user interface and draws with an inactive or "grayed" look.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setEnabled</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>enabled</code> - the new enabled state</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setFont-org.eclipse.swt.graphics.Font-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setFont</h4>
<pre>public&nbsp;void&nbsp;setFont(org.eclipse.swt.graphics.Font&nbsp;font)</pre>
<div class="block">Sets the font that the receiver will use to paint textual information to
the font specified by the argument, or to the default font for that kind
of control if the argument is null.</div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setFont</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>font</code> - the new font (or null)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_INVALID_ARGUMENT - if the argument has been
disposed</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setForeground-org.eclipse.swt.graphics.Color-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setForeground</h4>
<pre>public&nbsp;void&nbsp;setForeground(org.eclipse.swt.graphics.Color&nbsp;color)</pre>
<div class="block">Sets the receiver's foreground color to the color specified by the
argument, or to the default system color for the control if the argument
is null.
<p>
Note: This operation is a hint and may be overridden by the platform.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setForeground</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>color</code> - the new color (or null)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_INVALID_ARGUMENT - if the argument has been
disposed</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setMenu-org.eclipse.swt.widgets.Menu-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMenu</h4>
<pre>public&nbsp;void&nbsp;setMenu(org.eclipse.swt.widgets.Menu&nbsp;menu)</pre>
<div class="block">Sets the receiver's pop up menu to the argument. All controls may
optionally have a pop up menu that is displayed when the user requests
one for the control. The sequence of key strokes, button presses and/or
button releases that are used to request a pop up menu is platform
specific.
<p>
Note: Disposing of a control that has a pop up menu will dispose of the
menu. To avoid this behavior, set the menu to null before the control is
disposed.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setMenu</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>menu</code> - the new pop up menu</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>java.lang.IllegalArgumentException</code> - <ul>
<li>ERROR_MENU_NOT_POP_UP - the menu is not a pop up menu</li>
<li>ERROR_INVALID_PARENT - if the menu is not in the same
widget tree</li>
<li>ERROR_INVALID_ARGUMENT - if the menu has been disposed
</li>
</ul></dd>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
<a name="setToolTipText-java.lang.String-">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setToolTipText</h4>
<pre>public&nbsp;void&nbsp;setToolTipText(java.lang.String&nbsp;tooltipText)</pre>
<div class="block">Sets the receiver's tool tip text to the argument, which may be null
indicating that the default tool tip for the control will be shown. For a
control that has a default tool tip, such as the Tree control on Windows,
setting the tool tip text to an empty string replaces the default,
causing no tool tip text to be shown.
<p>
The mnemonic indicator (character '&amp;') is not displayed in a tool
tip. To display a single '&amp;' in the tool tip, the character '&amp;'
can be escaped by doubling it in the string.
</p></div>
<dl>
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
<dd><code>setToolTipText</code>&nbsp;in class&nbsp;<code>org.eclipse.swt.widgets.Control</code></dd>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>string</code> - the new tool tip text (or null)</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.eclipse.swt.SWTException</code> - <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been
disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the
thread that created the receiver</li>
</ul></dd>
</dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/HorizontalSpinner.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../../index-files/index-1.html">Index</a></li>
<li><a href="../../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev&nbsp;Class</li>
<li>Next&nbsp;Class</li>
</ul>
<ul class="navList">
<li><a href="../../../../../../index.html?org/eclipse/nebula/widgets/opal/horizontalspinner/HorizontalSpinner.html" target="_top">Frames</a></li>
<li><a href="HorizontalSpinner.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../../allclasses-noframe.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li>Nested&nbsp;|&nbsp;</li>
<li><a href="#fields.inherited.from.class.org.eclipse.swt.widgets.Control">Field</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li>Field&nbsp;|&nbsp;</li>
<li><a href="#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>