|
|||||||||||
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.Sash
Safe: Instances of the receiver represent a selectable user interface object that allows the user to drag a rubber banded outline of the sash within the parent control.
Note: Only one of the styles HORIZONTAL and VERTICAL may be specified.
IMPORTANT: This class is intended to be subclassed only within the SWT implementation.
Field Summary | |
(package private) boolean |
dragging
|
(package private) static int |
INCREMENT
|
(package private) int |
lastX
|
(package private) int |
lastY
|
(package private) static int |
PAGE_INCREMENT
|
(package private) int |
startX
|
(package private) int |
startY
|
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 | |
Sash(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 | |
void |
addSelectionListener(SelectionListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when the control is selected, by sending it one of the messages defined in the SelectionListener
interface. |
(package private) int |
callWindowProc(int msg,
int wParam,
int lParam)
|
(package private) static int |
checkStyle(int style)
|
Point |
computeSize(int wHint,
int hHint,
boolean changed)
Enabled: |
(package private) void |
drawBand(int x,
int y,
int width,
int height)
|
void |
removeSelectionListener(SelectionListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the control is selected. |
(package private) org.eclipse.swt.internal.win32.TCHAR |
windowClass()
|
(package private) int |
windowProc()
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_ERASEBKGND(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_GETDLGCODE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_KEYDOWN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_LBUTTONDOWN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_LBUTTONUP(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MOUSEMOVE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETCURSOR(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 |
boolean dragging
int startX
int startY
int lastX
int lastY
static final int INCREMENT
static final int PAGE_INCREMENT
Constructor Detail |
public Sash(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.HORIZONTAL
,
SWT.VERTICAL
,
Widget.checkSubclass()
,
Widget.getStyle()
Method Detail |
public void addSelectionListener(SelectionListener listener)
SelectionListener
interface.
When widgetSelected
is called, the x, y, width, and height fields of the event object are valid.
If the reciever is being dragged, the event object detail field contains the value SWT.DRAG
.
widgetDefaultSelected
is not called.
listener
- the listener which should be notifiedSelectionListener
,
removeSelectionListener(org.eclipse.swt.events.SelectionListener)
,
SelectionEvent
int callWindowProc(int msg, int wParam, int lParam)
callWindowProc
in class Control
static int checkStyle(int style)
public Point computeSize(int wHint, int hHint, boolean changed)
computeSize
in class Control
wHint
- the width hint (can be SWT.DEFAULT
)hHint
- the height hint (can be SWT.DEFAULT
)changed
- true
if the control's contents have changed, and false
otherwise
Layout
,
Control.getBorderWidth()
,
Control.getBounds()
,
Control.getSize()
,
Control.pack()
,
"computeTrim, getClientArea for controls that implement them"void drawBand(int x, int y, int width, int height)
public void removeSelectionListener(SelectionListener listener)
listener
- the listener which should be notifiedSelectionListener
,
addSelectionListener(org.eclipse.swt.events.SelectionListener)
org.eclipse.swt.internal.win32.TCHAR windowClass()
windowClass
in class Control
int windowProc()
windowProc
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_ERASEBKGND(int wParam, int lParam)
WM_ERASEBKGND
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_KEYDOWN(int wParam, int lParam)
WM_KEYDOWN
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_GETDLGCODE(int wParam, int lParam)
WM_GETDLGCODE
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDOWN(int wParam, int lParam)
WM_LBUTTONDOWN
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONUP(int wParam, int lParam)
WM_LBUTTONUP
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_MOUSEMOVE(int wParam, int lParam)
WM_MOUSEMOVE
in class Control
org.eclipse.swt.internal.win32.LRESULT WM_SETCURSOR(int wParam, int lParam)
WM_SETCURSOR
in class Control
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |