|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.eclipse.swt.widgets.Widget
|
+--org.eclipse.swt.widgets.Control
|
+--org.eclipse.swt.widgets.Scrollable
Safe: This class is the abstract superclass of all classes which represent controls that have standard scroll bars.
IMPORTANT: This class is intended to be subclassed only within the SWT implementation.
| Field Summary | |
(package private) ScrollBar |
horizontalBar
|
(package private) ScrollBar |
verticalBar
|
| Fields inherited from class org.eclipse.swt.widgets.Control |
ACCENTS, accessible, background, drawCount, foreground, handle, hCursor, layoutData, menu, parent, toolTipText |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
CANVAS, COMCTL32_MAJOR, COMCTL32_MINOR, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DISABLED, DISPOSED, eventTable, HIDDEN, keys, MAJOR, MINOR, Mnemonic, state, style, values |
| Constructor Summary | |
(package private) |
Scrollable()
Prevents uninitialized instances from being created outside the package. |
|
Scrollable(Composite parent,
int style)
Enabled: Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Method Summary | |
(package private) int |
callWindowProc(int msg,
int wParam,
int lParam)
|
Rectangle |
computeTrim(int x,
int y,
int width,
int height)
Enabled: Given a desired client area for the receiver (as described by the arguments), returns the bounding rectangle which would be required to produce that client area. |
(package private) ScrollBar |
createScrollBar(int type)
|
(package private) void |
createWidget()
|
Rectangle |
getClientArea()
Enabled: Returns a rectangle which describes the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings"). |
ScrollBar |
getHorizontalBar()
Enabled: Returns the receiver's horizontal scroll bar if it has one, and null if it does not. |
ScrollBar |
getVerticalBar()
Enabled: Returns the receiver's vertical scroll bar if it has one, and null if it does not. |
(package private) void |
releaseWidget()
|
(package private) int |
widgetExtStyle()
|
(package private) int |
widgetStyle()
|
(package private) org.eclipse.swt.internal.win32.TCHAR |
windowClass()
|
(package private) int |
windowProc()
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_HSCROLL(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MOUSEWHEEL(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SIZE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_VSCROLL(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmScroll(ScrollBar bar,
int msg,
int wParam,
int lParam)
|
| Methods inherited from class org.eclipse.swt.widgets.Widget |
addDisposeListener, addListener, checkBits, checkParent, checkSubclass, checkWidget, dispose, error, filters, getData, getData, getName, getNameText, getStyle, hooks, isListening, isValidSubclass, isValidThread, mbcsToWcs, mbcsToWcs, notifyListeners, postEvent, postEvent, releaseChild, releaseResources, removeDisposeListener, removeListener, removeListener, sendEvent, sendEvent, sendEvent, sendEvent, setData, setData, setInputState, setKeyState, toString, wcsToMbcs, wcsToMbcs |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
ScrollBar horizontalBar
ScrollBar verticalBar
| Constructor Detail |
Scrollable()
public Scrollable(Composite parent,
int style)
The style value is either one of the style constants defined in
class SWT which is applicable to instances of this
class, or must be built by bitwise OR'ing together
(that is, using the int "|" operator) two or more
of those SWT style constants. The class description
lists the style constants that are applicable to the class.
Style bits are also inherited from superclasses.
parent - a composite control which will be the parent of the new instance (cannot be null)style - the style of control to constructSWT.H_SCROLL,
SWT.V_SCROLL,
Widget.checkSubclass(),
Widget.getStyle()| Method Detail |
int callWindowProc(int msg,
int wParam,
int lParam)
callWindowProc in class Control
public Rectangle computeTrim(int x,
int y,
int width,
int height)
In other words, it returns a rectangle such that, if the receiver's bounds were set to that rectangle, the area of the receiver which is capable of displaying data (that is, not covered by the "trimmings") would be the rectangle described by the arguments (relative to the receiver's parent).
getClientArea()ScrollBar createScrollBar(int type)
void createWidget()
createWidget in class Controlpublic Rectangle getClientArea()
computeTrim(int, int, int, int)public ScrollBar getHorizontalBar()
public ScrollBar getVerticalBar()
void releaseWidget()
releaseWidget in class Controlint widgetExtStyle()
widgetExtStyle in class Controlint widgetStyle()
widgetStyle in class Controlorg.eclipse.swt.internal.win32.TCHAR windowClass()
windowClass in class Controlint windowProc()
windowProc in class Control
org.eclipse.swt.internal.win32.LRESULT WM_HSCROLL(int wParam,
int lParam)
WM_HSCROLL in class Control
org.eclipse.swt.internal.win32.LRESULT WM_MOUSEWHEEL(int wParam,
int lParam)
WM_MOUSEWHEEL in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam,
int lParam)
WM_SIZE in class Control
org.eclipse.swt.internal.win32.LRESULT WM_VSCROLL(int wParam,
int lParam)
WM_VSCROLL in class Control
org.eclipse.swt.internal.win32.LRESULT wmScroll(ScrollBar bar,
int msg,
int wParam,
int lParam)
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||