Example usage for Java org.eclipse.swt.widgets ScrollBar fields, constructors, methods, implement or subclass
The text is from its open source code.
void | addListener(int eventType, Listener listener) Adds the listener to the collection of listeners who will be notified when an event of the given type occurs. |
void | addSelectionListener(SelectionListener listener) Adds the listener to the collection of listeners who will be notified when the receiver's value changes, by sending it one of the messages defined in the SelectionListener interface. |
int | getMaximum() Returns the maximum value which the receiver will allow. |
int | getSelection() Returns the single 'selection' that is the receiver's value. |
Point | getSize() Returns a point describing the receiver's size. |
int | getThumb() Returns the size of the receiver's thumb relative to the difference between its maximum and minimum values. |
boolean | getVisible() Returns true if the receiver is visible, and false otherwise. |
void | setEnabled(boolean enabled) Enables the receiver if the argument is true , and disables it otherwise. |
void | setMaximum(int maximum) Sets the maximum. |
void | setMinimum(int minimum) Sets the minimum value. |
void | setSelection(int selection) Sets the single selection that is the receiver's value to the argument which must be greater than or equal to zero. |
void | setThumb(int thumb) Sets the size of the receiver's thumb relative to the difference between its maximum and minimum values. |
void | setVisible(boolean visible) Marks the receiver as visible if the argument is true , and marks it invisible otherwise. |