|
|||||||||
| 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 Sash

java.lang.Objectorg.eclipse.swt.widgets.Widget
org.eclipse.swt.widgets.Control
org.eclipse.swt.widgets.Sash
- All Implemented Interfaces:
- org.eclipse.swt.graphics.Drawable
- public class Sash
- extends Control
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.
- Styles:
- HORIZONTAL, VERTICAL
- Events:
- Selection
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) long |
defaultCursor
|
(package private) boolean |
dragging
|
private static int |
INCREMENT
|
(package private) int |
lastX
|
(package private) int |
lastY
|
private static int |
PAGE_INCREMENT
|
(package private) int |
startX
|
(package private) int |
startY
|
| 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 | |
Sash(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 | |
void |
addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
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) static int |
checkStyle(int style)
|
org.eclipse.swt.graphics.Point |
computeSize(int wHint,
int hHint,
boolean changed)
Returns the preferred size of the receiver. |
(package private) void |
createHandle(int index)
|
(package private) void |
drawBand(int x,
int y,
int width,
int height)
|
(package private) long |
gtk_button_press_event(long widget,
long eventPtr)
|
(package private) long |
gtk_button_release_event(long widget,
long eventPtr)
|
(package private) long |
gtk_focus_in_event(long widget,
long event)
|
(package private) long |
gtk_key_press_event(long widget,
long eventPtr)
|
(package private) long |
gtk_motion_notify_event(long widget,
long eventPtr)
|
(package private) long |
gtk_realize(long widget)
|
(package private) void |
hookEvents()
|
(package private) void |
releaseWidget()
|
void |
removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
Removes the listener from the collection of listeners who will be notified when the control is selected. |
(package private) void |
setCursor(long cursor)
|
(package private) int |
traversalCode(int key,
org.eclipse.swt.internal.gtk.GdkEventKey event)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
dragging
boolean dragging
startX
int startX
startY
int startY
lastX
int lastX
lastY
int lastY
defaultCursor
long defaultCursor
INCREMENT
private static final int INCREMENT
- See Also:
- Constant Field Values
PAGE_INCREMENT
private static final int PAGE_INCREMENT
- See Also:
- Constant Field Values
| Constructor Detail |
Sash
public Sash(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 |
addSelectionListener
public void addSelectionListener(org.eclipse.swt.events.SelectionListener listener)
- 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
SelectionListenerinterface.When
widgetSelectedis 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 valueSWT.DRAG.widgetDefaultSelectedis not called.
checkStyle
static int checkStyle(int style)
computeSize
public org.eclipse.swt.graphics.Point computeSize(int wHint, int hHint, boolean changed)
- Description copied from class:
Control - Returns the preferred size of the receiver.
The preferred size of a control is the size that it would best be displayed at. The width hint and height hint arguments allow the caller to ask a control questions such as "Given a particular width, how high does the control need to be to show all of the contents?" To indicate that the caller does not wish to constrain a particular dimension, the constant
SWT.DEFAULTis passed for the hint.If the changed flag is
true, it indicates that the receiver's contents have changed, therefore any caches that a layout manager containing the control may have been keeping need to be flushed. When the control is resized, the changed flag will befalse, so layout manager caches can be retained.- Overrides:
computeSizein classControl
createHandle
void createHandle(int index)
- Overrides:
createHandlein classWidget
drawBand
void drawBand(int x,
int y,
int width,
int height)
gtk_button_press_event
long gtk_button_press_event(long widget,
long eventPtr)
- Overrides:
gtk_button_press_eventin classControl
gtk_button_release_event
long gtk_button_release_event(long widget,
long eventPtr)
- Overrides:
gtk_button_release_eventin classControl
gtk_focus_in_event
long gtk_focus_in_event(long widget,
long event)
- Overrides:
gtk_focus_in_eventin classControl
gtk_key_press_event
long gtk_key_press_event(long widget,
long eventPtr)
- Overrides:
gtk_key_press_eventin classControl
gtk_motion_notify_event
long gtk_motion_notify_event(long widget,
long eventPtr)
- Overrides:
gtk_motion_notify_eventin classControl
gtk_realize
long gtk_realize(long widget)
- Overrides:
gtk_realizein classControl
hookEvents
void hookEvents()
- Overrides:
hookEventsin classControl
releaseWidget
void releaseWidget()
- Overrides:
releaseWidgetin classControl
removeSelectionListener
public void removeSelectionListener(org.eclipse.swt.events.SelectionListener listener)
- Removes the listener from the collection of listeners who will
be notified when the control is selected.
setCursor
void setCursor(long cursor)
traversalCode
int traversalCode(int key,
org.eclipse.swt.internal.gtk.GdkEventKey event)
- Overrides:
traversalCodein classControl
|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC