|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.eclipse.swt.widgets
Class Scrollable

java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Scrollable
- All Implemented Interfaces:
- org.eclipse.swt.graphics.Drawable
- public abstract class Scrollable
- extends Control
This class is the abstract superclass of all classes which represent controls that have standard scroll bars.
- Styles:
- H_SCROLL, V_SCROLL
- Events:
- (none)
IMPORTANT: This class is intended to be subclassed only within the SWT implementation.
| Field Summary | |
(package private) ScrollBar |
horizontalBar
|
(package private) long |
scrolledHandle
|
(package private) ScrollBar |
verticalBar
|
| Fields inherited from class org.eclipse.swt.widgets.Control |
accessible, cursor, drawCount, enableWindow, fixedHandle, font, layoutData, menu, parent, redrawWindow, toolTipText |
| Fields inherited from class org.eclipse.swt.widgets.Widget |
ACTIVATE, BUTTON_PRESS_EVENT, BUTTON_RELEASE_EVENT, CANVAS, CHANGED, CLICKED, COMMIT, CONFIGURE_EVENT, data, DEFAULT_HEIGHT, DEFAULT_WIDTH, DELETE_EVENT, DELETE_RANGE, DELETE_TEXT, DISABLED, display, DISPOSED, ENTER_NOTIFY_EVENT, EVENT, EVENT_AFTER, eventTable, EXPOSE_EVENT, FOCUS, FOCUS_IN_EVENT, FOCUS_OUT_EVENT, handle, HANDLE, HIDE, INSERT_TEXT, KEY_PRESS_EVENT, KEY_RELEASE_EVENT, KEYED_DATA, LEAVE_NOTIFY_EVENT, MAP_EVENT, MENU, MNEMONIC_ACTIVATE, MOTION_NOTIFY_EVENT, OBSCURED, POPUP_MENU, PREEDIT_CHANGED, REALIZE, ROW_ACTIVATED, SCROLL_CHILD, SELECT, SHOW, SHOW_HELP, SIZE_ALLOCATE, state, style, STYLE_SET, SWITCH_PAGE, TEST_COLLAPSE_ROW, TEST_EXPAND_ROW, TOGGLED, UNMAP_EVENT, UNREALIZE, VALUE_CHANGED, VISIBILITY_NOTIFY_EVENT, WINDOW_STATE_EVENT |
| Constructor Summary | |
(package private) |
Scrollable()
Prevents uninitialized instances from being created outside the package. |
|
Scrollable(Composite parent,
int style)
Constructs a new instance of this class given its parent and a style value describing its behavior and appearance. |
| Method Summary | |
(package private) long |
clientHandle()
|
org.eclipse.swt.graphics.Rectangle |
computeTrim(int x,
int y,
int width,
int height)
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 style)
|
(package private) void |
createWidget(int index)
|
(package private) void |
deregister()
|
int |
getBorderWidth()
Returns the receiver's border width. |
org.eclipse.swt.graphics.Rectangle |
getClientArea()
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()
Returns the receiver's horizontal scroll bar if it has one, and null if it does not. |
ScrollBar |
getVerticalBar()
Returns the receiver's vertical scroll bar if it has one, and null if it does not. |
(package private) int |
hScrollBarWidth()
|
(package private) void |
register()
|
(package private) void |
releaseHandle()
|
(package private) void |
releaseWidget()
|
(package private) void |
resizeHandle(int width,
int height)
|
(package private) void |
setOrientation()
|
(package private) long |
topHandle()
|
(package private) int |
vScrollBarWidth()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
scrolledHandle
long scrolledHandle
horizontalBar
ScrollBar horizontalBar
verticalBar
ScrollBar verticalBar
| Constructor Detail |
Scrollable
Scrollable()
- Prevents uninitialized instances from being created outside the package.
Scrollable
public Scrollable(Composite parent, int style)
- Constructs a new instance of this class given its parent
and a style value describing its behavior and appearance.
The style value is either one of the style constants defined in class
SWTwhich is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using theint"|" operator) two or more of thoseSWTstyle constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
| Method Detail |
clientHandle
long clientHandle()
computeTrim
public org.eclipse.swt.graphics.Rectangle computeTrim(int x, int y, int width, int height)
- 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.
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).
createScrollBar
ScrollBar createScrollBar(int style)
createWidget
void createWidget(int index)
- Overrides:
createWidgetin classControl
deregister
void deregister()
- Overrides:
deregisterin classControl
getBorderWidth
public int getBorderWidth()
- Description copied from class:
Control - Returns the receiver's border width.
- Overrides:
getBorderWidthin classControl
getClientArea
public org.eclipse.swt.graphics.Rectangle getClientArea()
- Returns a rectangle which describes the area of the
receiver which is capable of displaying data (that is,
not covered by the "trimmings").
getHorizontalBar
public ScrollBar getHorizontalBar()
- Returns the receiver's horizontal scroll bar if it has
one, and null if it does not.
getVerticalBar
public ScrollBar getVerticalBar()
- Returns the receiver's vertical scroll bar if it has
one, and null if it does not.
hScrollBarWidth
int hScrollBarWidth()
setOrientation
void setOrientation()
- Overrides:
setOrientationin classWidget
register
void register()
releaseHandle
void releaseHandle()
- Overrides:
releaseHandlein classControl
releaseWidget
void releaseWidget()
- Overrides:
releaseWidgetin classControl
resizeHandle
void resizeHandle(int width,
int height)
- Overrides:
resizeHandlein classControl
topHandle
long topHandle()
vScrollBarWidth
int vScrollBarWidth()
|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC