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

java.lang.Objectorg.eclipse.swt.widgets.Widget
- public abstract class Widget
- extends java.lang.Object
This class is the abstract superclass of all user interface objects. Widgets are created, disposed and issue notification to listeners when events occur which affect them.
- Styles:
- (none)
- Events:
- Dispose
IMPORTANT: This class is intended to be subclassed only within the SWT implementation. However, it has not been marked final to allow those outside of the SWT development team to implement patched versions of the class in order to get around specific limitations in advance of when those limitations can be addressed by the team. Any class built using subclassing to access the internals of this class will likely fail to compile or run between releases and may be strongly platform specific. Subclassing should not be attempted without an intimate and detailed understanding of the workings of the hierarchy. No support is provided for user-written classes which are implemented as subclasses of this class.
| Field Summary | |
(package private) static int |
ACTIVATE
|
(package private) static int |
BUTTON_PRESS_EVENT
|
(package private) static int |
BUTTON_RELEASE_EVENT
|
(package private) static int |
CANVAS
|
(package private) static int |
CHANGED
|
(package private) static int |
CLICKED
|
(package private) static int |
COMMIT
|
(package private) static int |
CONFIGURE_EVENT
|
(package private) java.lang.Object |
data
|
(package private) static int |
DEFAULT_HEIGHT
|
(package private) static int |
DEFAULT_WIDTH
|
(package private) static int |
DELETE_EVENT
|
(package private) static int |
DELETE_RANGE
|
(package private) static int |
DELETE_TEXT
|
(package private) static int |
DISABLED
|
(package private) Display |
display
|
(package private) static int |
DISPOSED
|
(package private) static int |
ENTER_NOTIFY_EVENT
|
(package private) static int |
EVENT
|
(package private) static int |
EVENT_AFTER
|
(package private) EventTable |
eventTable
|
(package private) static int |
EXPOSE_EVENT
|
(package private) static int |
FOCUS
|
(package private) static int |
FOCUS_IN_EVENT
|
(package private) static int |
FOCUS_OUT_EVENT
|
long |
handle
the handle to the OS resource (Warning: This field is platform dependent) |
(package private) static int |
HANDLE
|
(package private) static int |
HIDE
|
(package private) static int |
INSERT_TEXT
|
(package private) static int |
KEY_PRESS_EVENT
|
(package private) static int |
KEY_RELEASE_EVENT
|
(package private) static int |
KEYED_DATA
|
(package private) static int |
LEAVE_NOTIFY_EVENT
|
(package private) static int |
MAP_EVENT
|
(package private) static int |
MENU
|
(package private) static int |
MNEMONIC_ACTIVATE
|
(package private) static int |
MOTION_NOTIFY_EVENT
|
(package private) static int |
OBSCURED
|
(package private) static int |
POPUP_MENU
|
(package private) static int |
PREEDIT_CHANGED
|
(package private) static int |
REALIZE
|
(package private) static int |
ROW_ACTIVATED
|
(package private) static int |
SCROLL_CHILD
|
(package private) static int |
SELECT
|
(package private) static int |
SHOW
|
(package private) static int |
SHOW_HELP
|
(package private) static int |
SIZE_ALLOCATE
|
(package private) int |
state
|
(package private) int |
style
|
(package private) static int |
STYLE_SET
|
(package private) static int |
SWITCH_PAGE
|
(package private) static int |
TEST_COLLAPSE_ROW
|
(package private) static int |
TEST_EXPAND_ROW
|
(package private) static int |
TOGGLED
|
(package private) static int |
UNMAP_EVENT
|
(package private) static int |
UNREALIZE
|
(package private) static int |
VALUE_CHANGED
|
(package private) static int |
VISIBILITY_NOTIFY_EVENT
|
(package private) static int |
WINDOW_STATE_EVENT
|
| Constructor Summary | |
(package private) |
Widget()
Prevents uninitialized instances from being created outside the package. |
|
Widget(Widget 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 |
addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
Adds the listener to the collection of listeners who will be notifed when the widget is disposed. |
void |
addListener(int eventType,
Listener handler)
Adds the listener to the collection of listeners who will be notifed when an event of the given type occurs. |
(package private) static int |
checkBits(int style,
int int0,
int int1,
int int2,
int int3,
int int4,
int int5)
|
(package private) void |
checkOrientation(Widget parent)
|
(package private) void |
checkParent(Widget parent)
Throws an exception if the specified widget can not be used as a parent for the receiver. |
protected void |
checkSubclass()
Checks that this class can be subclassed. |
protected void |
checkWidget()
Throws an SWTException if the receiver can not
be accessed by the caller. |
(package private) void |
createHandle(int index)
|
(package private) void |
createWidget(int index)
|
(package private) void |
deregister()
|
(package private) void |
destroyWidget()
|
void |
dispose()
Disposes of the operating system resources associated with the receiver and all its descendents. |
(package private) void |
error(int code)
|
(package private) long |
filterProc(long xEvent,
long gdkEvent,
long data)
|
(package private) boolean |
filters(int eventType)
|
(package private) char[] |
fixMnemonic(java.lang.String string)
|
(package private) int |
fontHeight(long font,
long widgetHandle)
|
java.lang.Object |
getData()
Returns the application defined widget data associated with the receiver, or null if it has not been set. |
java.lang.Object |
getData(java.lang.String key)
Returns the application defined property of the receiver with the specified name, or null if it has not been set. |
Display |
getDisplay()
Returns the Display that is associated with
the receiver. |
(package private) java.lang.String |
getName()
|
(package private) java.lang.String |
getNameText()
|
int |
getStyle()
Returns the receiver's style information. |
(package private) long |
gtk_activate(long widget)
|
(package private) long |
gtk_button_press_event(long widget,
long event)
|
(package private) long |
gtk_button_release_event(long widget,
long event)
|
(package private) long |
gtk_changed(long widget)
|
(package private) long |
gtk_clicked(long widget)
|
(package private) long |
gtk_commit(long imcontext,
long text)
|
(package private) long |
gtk_configure_event(long widget,
long event)
|
(package private) long |
gtk_delete_event(long widget,
long event)
|
(package private) long |
gtk_delete_range(long widget,
long iter1,
long iter2)
|
(package private) long |
gtk_delete_text(long widget,
long start_pos,
long end_pos)
|
(package private) long |
gtk_enter_notify_event(long widget,
long event)
|
(package private) long |
gtk_event_after(long widget,
long event)
|
(package private) long |
gtk_event(long widget,
long event)
|
(package private) long |
gtk_expose_event(long widget,
long event)
|
(package private) long |
gtk_focus_in_event(long widget,
long event)
|
(package private) long |
gtk_focus_out_event(long widget,
long event)
|
(package private) long |
gtk_focus(long widget,
long event)
|
(package private) long |
gtk_hide(long widget)
|
(package private) long |
gtk_insert_text(long widget,
long new_text,
long new_text_length,
long position)
|
(package private) long |
gtk_key_press_event(long widget,
long event)
|
(package private) long |
gtk_key_release_event(long widget,
long event)
|
(package private) long |
gtk_leave_notify_event(long widget,
long event)
|
(package private) long |
gtk_map_event(long widget,
long event)
|
(package private) long |
gtk_mnemonic_activate(long widget,
long arg1)
|
(package private) long |
gtk_motion_notify_event(long widget,
long event)
|
(package private) long |
gtk_popup_menu(long widget)
|
(package private) long |
gtk_preedit_changed(long imcontext)
|
(package private) long |
gtk_realize(long widget)
|
(package private) long |
gtk_row_activated(long tree,
long path,
long column)
|
(package private) long |
gtk_scroll_child(long widget,
long scrollType,
long horizontal)
|
(package private) long |
gtk_select(long item)
|
(package private) long |
gtk_show_help(long widget,
long helpType)
|
(package private) long |
gtk_show(long widget)
|
(package private) long |
gtk_size_allocate(long widget,
long allocation)
|
(package private) long |
gtk_style_set(long widget,
long previousStyle)
|
(package private) long |
gtk_switch_page(long widget,
long page,
long page_num)
|
(package private) long |
gtk_test_collapse_row(long tree,
long iter,
long path)
|
(package private) long |
gtk_test_expand_row(long tree,
long iter,
long path)
|
(package private) long |
gtk_timer()
|
(package private) long |
gtk_toggled(long renderer,
long pathStr)
|
(package private) long |
gtk_unmap_event(long widget,
long event)
|
(package private) long |
gtk_unrealize(long widget)
|
(package private) long |
gtk_value_changed(long adjustment)
|
(package private) long |
gtk_visibility_notify_event(long widget,
long event)
|
(package private) long |
gtk_window_state_event(long widget,
long event)
|
(package private) void |
hookEvents()
|
(package private) boolean |
hooks(int eventType)
|
(package private) long |
hoverProc(long widget)
|
boolean |
isDisposed()
Returns true if the widget has been disposed,
and false otherwise. |
protected boolean |
isListening(int eventType)
Returns true if there are any listeners
for the specified event type associated with the receiver,
and false otherwise. |
(package private) boolean |
isValidSubclass()
|
(package private) boolean |
isValidThread()
|
(package private) boolean |
isValidWidget()
|
(package private) long |
menuPositionProc(long menu,
long x,
long y,
long push_in,
long user_data)
|
(package private) boolean |
mnemonicHit(long mnemonicHandle,
char key)
|
(package private) boolean |
mnemonicMatch(long mnemonicHandle,
char key)
|
void |
notifyListeners(int eventType,
Event event)
Notifies all of the receiver's listeners for events of the given type that one such event has occurred by invoking their handleEvent() method. |
(package private) long |
pixbufCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
|
(package private) void |
postEvent(int eventType)
|
(package private) void |
postEvent(int eventType,
Event event)
|
(package private) void |
register()
|
(package private) void |
releaseChild()
|
(package private) void |
releaseHandle()
|
(package private) void |
releaseResources()
|
(package private) void |
releaseWidget()
|
void |
removeDisposeListener(org.eclipse.swt.events.DisposeListener listener)
Removes the listener from the collection of listeners who will be notifed when the widget is disposed. |
void |
removeListener(int eventType,
Listener handler)
Removes the listener from the collection of listeners who will be notifed when an event of the given type occurs. |
protected void |
removeListener(int eventType,
org.eclipse.swt.internal.SWTEventListener handler)
Removes the listener from the collection of listeners who will be notifed when an event of the given type occurs. |
(package private) void |
sendEvent(Event event)
|
(package private) void |
sendEvent(int eventType)
|
(package private) void |
sendEvent(int eventType,
Event event)
|
(package private) void |
sendEvent(int eventType,
Event event,
boolean send)
|
void |
setData(java.lang.Object data)
Sets the application defined widget data associated with the receiver to be the argument. |
void |
setData(java.lang.String key,
java.lang.Object value)
Sets the application defined property of the receiver with the specified name to the given value. |
(package private) boolean |
setInputState(Event event,
int state)
|
(package private) boolean |
setKeyState(Event event,
org.eclipse.swt.internal.gtk.GdkEventKey keyEvent)
|
(package private) void |
setOrientation()
|
(package private) long |
shellMapProc(long handle,
long arg0,
long user_data)
|
(package private) long |
textCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
|
(package private) long |
timerProc(long widget)
|
(package private) long |
topHandle()
|
java.lang.String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
(package private) boolean |
translateTraversal(int event)
|
(package private) long |
treeSelectionProc(long model,
long path,
long iter,
int[] selection,
int length)
|
(package private) long |
windowProc(long handle,
long user_data)
|
(package private) long |
windowProc(long handle,
long arg0,
long user_data)
|
(package private) long |
windowProc(long handle,
long arg0,
long arg1,
long user_data)
|
(package private) long |
windowProc(long handle,
long arg0,
long arg1,
long arg2,
long user_data)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
handle
public long handle
- the handle to the OS resource
(Warning: This field is platform dependent)
style
int style
state
int state
display
Display display
eventTable
EventTable eventTable
data
java.lang.Object data
DISPOSED
static final int DISPOSED
- See Also:
- Constant Field Values
CANVAS
static final int CANVAS
- See Also:
- Constant Field Values
KEYED_DATA
static final int KEYED_DATA
- See Also:
- Constant Field Values
HANDLE
static final int HANDLE
- See Also:
- Constant Field Values
DISABLED
static final int DISABLED
- See Also:
- Constant Field Values
MENU
static final int MENU
- See Also:
- Constant Field Values
OBSCURED
static final int OBSCURED
- See Also:
- Constant Field Values
DEFAULT_WIDTH
static final int DEFAULT_WIDTH
- See Also:
- Constant Field Values
DEFAULT_HEIGHT
static final int DEFAULT_HEIGHT
- See Also:
- Constant Field Values
ACTIVATE
static final int ACTIVATE
- See Also:
- Constant Field Values
BUTTON_PRESS_EVENT
static final int BUTTON_PRESS_EVENT
- See Also:
- Constant Field Values
BUTTON_RELEASE_EVENT
static final int BUTTON_RELEASE_EVENT
- See Also:
- Constant Field Values
CHANGED
static final int CHANGED
- See Also:
- Constant Field Values
CLICKED
static final int CLICKED
- See Also:
- Constant Field Values
COMMIT
static final int COMMIT
- See Also:
- Constant Field Values
CONFIGURE_EVENT
static final int CONFIGURE_EVENT
- See Also:
- Constant Field Values
DELETE_EVENT
static final int DELETE_EVENT
- See Also:
- Constant Field Values
DELETE_RANGE
static final int DELETE_RANGE
- See Also:
- Constant Field Values
DELETE_TEXT
static final int DELETE_TEXT
- See Also:
- Constant Field Values
ENTER_NOTIFY_EVENT
static final int ENTER_NOTIFY_EVENT
- See Also:
- Constant Field Values
EVENT
static final int EVENT
- See Also:
- Constant Field Values
EVENT_AFTER
static final int EVENT_AFTER
- See Also:
- Constant Field Values
EXPOSE_EVENT
static final int EXPOSE_EVENT
- See Also:
- Constant Field Values
FOCUS
static final int FOCUS
- See Also:
- Constant Field Values
FOCUS_IN_EVENT
static final int FOCUS_IN_EVENT
- See Also:
- Constant Field Values
FOCUS_OUT_EVENT
static final int FOCUS_OUT_EVENT
- See Also:
- Constant Field Values
HIDE
static final int HIDE
- See Also:
- Constant Field Values
INSERT_TEXT
static final int INSERT_TEXT
- See Also:
- Constant Field Values
KEY_PRESS_EVENT
static final int KEY_PRESS_EVENT
- See Also:
- Constant Field Values
KEY_RELEASE_EVENT
static final int KEY_RELEASE_EVENT
- See Also:
- Constant Field Values
LEAVE_NOTIFY_EVENT
static final int LEAVE_NOTIFY_EVENT
- See Also:
- Constant Field Values
MAP_EVENT
static final int MAP_EVENT
- See Also:
- Constant Field Values
MNEMONIC_ACTIVATE
static final int MNEMONIC_ACTIVATE
- See Also:
- Constant Field Values
MOTION_NOTIFY_EVENT
static final int MOTION_NOTIFY_EVENT
- See Also:
- Constant Field Values
POPUP_MENU
static final int POPUP_MENU
- See Also:
- Constant Field Values
PREEDIT_CHANGED
static final int PREEDIT_CHANGED
- See Also:
- Constant Field Values
REALIZE
static final int REALIZE
- See Also:
- Constant Field Values
ROW_ACTIVATED
static final int ROW_ACTIVATED
- See Also:
- Constant Field Values
SCROLL_CHILD
static final int SCROLL_CHILD
- See Also:
- Constant Field Values
SELECT
static final int SELECT
- See Also:
- Constant Field Values
SHOW
static final int SHOW
- See Also:
- Constant Field Values
SHOW_HELP
static final int SHOW_HELP
- See Also:
- Constant Field Values
SIZE_ALLOCATE
static final int SIZE_ALLOCATE
- See Also:
- Constant Field Values
STYLE_SET
static final int STYLE_SET
- See Also:
- Constant Field Values
SWITCH_PAGE
static final int SWITCH_PAGE
- See Also:
- Constant Field Values
TEST_COLLAPSE_ROW
static final int TEST_COLLAPSE_ROW
- See Also:
- Constant Field Values
TEST_EXPAND_ROW
static final int TEST_EXPAND_ROW
- See Also:
- Constant Field Values
TOGGLED
static final int TOGGLED
- See Also:
- Constant Field Values
UNMAP_EVENT
static final int UNMAP_EVENT
- See Also:
- Constant Field Values
UNREALIZE
static final int UNREALIZE
- See Also:
- Constant Field Values
VALUE_CHANGED
static final int VALUE_CHANGED
- See Also:
- Constant Field Values
VISIBILITY_NOTIFY_EVENT
static final int VISIBILITY_NOTIFY_EVENT
- See Also:
- Constant Field Values
WINDOW_STATE_EVENT
static final int WINDOW_STATE_EVENT
- See Also:
- Constant Field Values
| Constructor Detail |
Widget
Widget()
- Prevents uninitialized instances from being created outside the package.
Widget
public Widget(Widget 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 |
addListener
public void addListener(int eventType,
Listener handler)
- Adds the listener to the collection of listeners who will
be notifed when an event of the given type occurs. When the
event does occur in the widget, the listener is notified by
sending it the
handleEvent()message.
addDisposeListener
public void addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
- Adds the listener to the collection of listeners who will
be notifed when the widget is disposed. When the widget is
disposed, the listener is notified by sending it the
widgetDisposed()message.
textCellDataProc
long textCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
pixbufCellDataProc
long pixbufCellDataProc(long tree_column,
long cell,
long tree_model,
long iter,
long data)
checkBits
static int checkBits(int style,
int int0,
int int1,
int int2,
int int3,
int int4,
int int5)
checkOrientation
void checkOrientation(Widget parent)
checkParent
void checkParent(Widget parent)
- Throws an exception if the specified widget can not be
used as a parent for the receiver.
checkSubclass
protected void checkSubclass()
- Checks that this class can be subclassed.
The SWT class library is intended to be subclassed only at specific, controlled points (most notably,
CompositeandCanvaswhen implementing new widgets). This method enforces this rule unless it is overridden.IMPORTANT: By providing an implementation of this method that allows a subclass of a class which does not normally allow subclassing to be created, the implementer agrees to be fully responsible for the fact that any such subclass will likely fail between SWT releases and will be strongly platform specific. No support is provided for user-written classes which are implemented in this fashion.
The ability to subclass outside of the allowed SWT classes is intended purely to enable those not on the SWT development team to implement patches in order to get around specific limitations in advance of when those limitations can be addressed by the team. Subclassing should not be attempted without an intimate and detailed understanding of the hierarchy.
checkWidget
protected void checkWidget()
- Throws an
SWTExceptionif the receiver can not be accessed by the caller. This may include both checks on the state of the receiver and more generally on the entire execution context. This method should be called by widget implementors to enforce the standard SWT invariants.Currently, it is an error to invoke any method (other than
isDisposed()) on a widget that has had itsdispose()method called. It is also an error to call widget methods from any thread that is different from the thread that created the widget.In future releases of SWT, there may be more or fewer error checks and exceptions may be thrown for different reasons.
createHandle
void createHandle(int index)
createWidget
void createWidget(int index)
deregister
void deregister()
destroyWidget
void destroyWidget()
dispose
public void dispose()
- Disposes of the operating system resources associated with
the receiver and all its descendents. After this method has
been invoked, the receiver and all descendents will answer
truewhen sent the messageisDisposed(). Any internal connections between the widgets in the tree will have been removed to facilitate garbage collection.NOTE: This method is not called recursively on the descendents of the receiver. This means that, widget implementers can not detect when a widget is being disposed of by re-implementing this method, but should instead listen for the
Disposeevent.
error
void error(int code)
getData
public java.lang.Object getData()
- Returns the application defined widget data associated
with the receiver, or null if it has not been set. The
widget data is a single, unnamed field that is
stored with every widget.
Applications may put arbitrary objects in this field. If the object stored in the widget data needs to be notified when the widget is disposed of, it is the application's responsibility to hook the Dispose event on the widget and do so.
getData
public java.lang.Object getData(java.lang.String key)
- Returns the application defined property of the receiver
with the specified name, or null if it has not been set.
Applications may have associated arbitrary objects with the receiver in this fashion. If the objects stored in the properties need to be notified when the widget is disposed of, it is the application's responsibility to hook the Dispose event on the widget and do so.
getDisplay
public Display getDisplay()
- Returns the
Displaythat is associated with the receiver.A widget's display is either provided when it is created (for example, top level
Shells) or is the same as its parent's display.
getName
java.lang.String getName()
getNameText
java.lang.String getNameText()
getStyle
public int getStyle()
- Returns the receiver's style information.
Note that the value which is returned by this method may not match the value which was provided to the constructor when the receiver was created. This can occur when the underlying operating system does not support a particular combination of requested styles. For example, if the platform widget used to implement a particular SWT widget always has scroll bars, the result of calling this method would always have the
SWT.H_SCROLLandSWT.V_SCROLLbits set.
gtk_activate
long gtk_activate(long widget)
gtk_button_press_event
long gtk_button_press_event(long widget,
long event)
gtk_button_release_event
long gtk_button_release_event(long widget,
long event)
gtk_changed
long gtk_changed(long widget)
gtk_clicked
long gtk_clicked(long widget)
gtk_commit
long gtk_commit(long imcontext,
long text)
gtk_configure_event
long gtk_configure_event(long widget,
long event)
gtk_delete_event
long gtk_delete_event(long widget,
long event)
gtk_delete_range
long gtk_delete_range(long widget,
long iter1,
long iter2)
gtk_delete_text
long gtk_delete_text(long widget,
long start_pos,
long end_pos)
gtk_enter_notify_event
long gtk_enter_notify_event(long widget,
long event)
gtk_event
long gtk_event(long widget,
long event)
gtk_event_after
long gtk_event_after(long widget,
long event)
gtk_expose_event
long gtk_expose_event(long widget,
long event)
gtk_focus
long gtk_focus(long widget,
long event)
gtk_focus_in_event
long gtk_focus_in_event(long widget,
long event)
gtk_focus_out_event
long gtk_focus_out_event(long widget,
long event)
gtk_hide
long gtk_hide(long widget)
gtk_insert_text
long gtk_insert_text(long widget,
long new_text,
long new_text_length,
long position)
gtk_key_press_event
long gtk_key_press_event(long widget,
long event)
gtk_key_release_event
long gtk_key_release_event(long widget,
long event)
gtk_leave_notify_event
long gtk_leave_notify_event(long widget,
long event)
gtk_map_event
long gtk_map_event(long widget,
long event)
gtk_mnemonic_activate
long gtk_mnemonic_activate(long widget,
long arg1)
gtk_motion_notify_event
long gtk_motion_notify_event(long widget,
long event)
gtk_popup_menu
long gtk_popup_menu(long widget)
gtk_preedit_changed
long gtk_preedit_changed(long imcontext)
gtk_realize
long gtk_realize(long widget)
gtk_row_activated
long gtk_row_activated(long tree,
long path,
long column)
gtk_scroll_child
long gtk_scroll_child(long widget,
long scrollType,
long horizontal)
gtk_select
long gtk_select(long item)
gtk_show
long gtk_show(long widget)
gtk_show_help
long gtk_show_help(long widget,
long helpType)
gtk_size_allocate
long gtk_size_allocate(long widget,
long allocation)
gtk_style_set
long gtk_style_set(long widget,
long previousStyle)
gtk_switch_page
long gtk_switch_page(long widget,
long page,
long page_num)
gtk_test_collapse_row
long gtk_test_collapse_row(long tree,
long iter,
long path)
gtk_test_expand_row
long gtk_test_expand_row(long tree,
long iter,
long path)
gtk_timer
long gtk_timer()
gtk_toggled
long gtk_toggled(long renderer,
long pathStr)
gtk_unmap_event
long gtk_unmap_event(long widget,
long event)
gtk_unrealize
long gtk_unrealize(long widget)
gtk_value_changed
long gtk_value_changed(long adjustment)
gtk_visibility_notify_event
long gtk_visibility_notify_event(long widget,
long event)
gtk_window_state_event
long gtk_window_state_event(long widget,
long event)
fontHeight
int fontHeight(long font,
long widgetHandle)
filters
boolean filters(int eventType)
filterProc
long filterProc(long xEvent,
long gdkEvent,
long data)
fixMnemonic
char[] fixMnemonic(java.lang.String string)
isDisposed
public boolean isDisposed()
- Returns
trueif the widget has been disposed, andfalseotherwise.This method gets the dispose state for the widget. When a widget has been disposed, it is an error to invoke any other method using the widget.
isListening
protected boolean isListening(int eventType)
- Returns
trueif there are any listeners for the specified event type associated with the receiver, andfalseotherwise.
isValidThread
boolean isValidThread()
isValidWidget
boolean isValidWidget()
isValidSubclass
boolean isValidSubclass()
hookEvents
void hookEvents()
hooks
boolean hooks(int eventType)
hoverProc
long hoverProc(long widget)
menuPositionProc
long menuPositionProc(long menu,
long x,
long y,
long push_in,
long user_data)
mnemonicHit
boolean mnemonicHit(long mnemonicHandle,
char key)
mnemonicMatch
boolean mnemonicMatch(long mnemonicHandle,
char key)
notifyListeners
public void notifyListeners(int eventType,
Event event)
- Notifies all of the receiver's listeners for events
of the given type that one such event has occurred by
invoking their
handleEvent()method.
postEvent
void postEvent(int eventType)
postEvent
void postEvent(int eventType,
Event event)
register
void register()
releaseChild
void releaseChild()
releaseHandle
void releaseHandle()
releaseResources
void releaseResources()
releaseWidget
void releaseWidget()
removeListener
public void removeListener(int eventType,
Listener handler)
- Removes the listener from the collection of listeners who will
be notifed when an event of the given type occurs.
removeListener
protected void removeListener(int eventType,
org.eclipse.swt.internal.SWTEventListener handler)
- Removes the listener from the collection of listeners who will
be notifed when an event of the given type occurs.
IMPORTANT: This method is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It should never be referenced from application code.
removeDisposeListener
public void removeDisposeListener(org.eclipse.swt.events.DisposeListener listener)
- Removes the listener from the collection of listeners who will
be notifed when the widget is disposed.
sendEvent
void sendEvent(Event event)
sendEvent
void sendEvent(int eventType)
sendEvent
void sendEvent(int eventType,
Event event)
sendEvent
void sendEvent(int eventType,
Event event,
boolean send)
setData
public void setData(java.lang.Object data)
- Sets the application defined widget data associated
with the receiver to be the argument. The widget
data is a single, unnamed field that is stored
with every widget.
Applications may put arbitrary objects in this field. If the object stored in the widget data needs to be notified when the widget is disposed of, it is the application's responsibility to hook the Dispose event on the widget and do so.
setData
public void setData(java.lang.String key, java.lang.Object value)
- Sets the application defined property of the receiver
with the specified name to the given value.
Applications may associate arbitrary objects with the receiver in this fashion. If the objects stored in the properties need to be notified when the widget is disposed of, it is the application's responsibility to hook the Dispose event on the widget and do so.
setInputState
boolean setInputState(Event event, int state)
setKeyState
boolean setKeyState(Event event, org.eclipse.swt.internal.gtk.GdkEventKey keyEvent)
setOrientation
void setOrientation()
shellMapProc
long shellMapProc(long handle,
long arg0,
long user_data)
toString
public java.lang.String toString()
- Returns a string containing a concise, human-readable
description of the receiver.
topHandle
long topHandle()
timerProc
long timerProc(long widget)
treeSelectionProc
long treeSelectionProc(long model,
long path,
long iter,
int[] selection,
int length)
translateTraversal
boolean translateTraversal(int event)
windowProc
long windowProc(long handle,
long user_data)
windowProc
long windowProc(long handle,
long arg0,
long user_data)
windowProc
long windowProc(long handle,
long arg0,
long arg1,
long user_data)
windowProc
long windowProc(long handle,
long arg0,
long arg1,
long arg2,
long user_data)
|
|||||||||
| Home >> All >> org >> eclipse >> swt >> [ widgets overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.eclipse.swt.widgets.Widget