|
|||||||||||
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
Safe:
Field Summary | |
(package private) static short[] |
ACCENTS
|
(package private) org.eclipse.swt.accessibility.Accessible |
accessible
|
(package private) int |
background
|
(package private) int |
drawCount
|
(package private) int |
foreground
|
int |
handle
Suppressed: the handle to the OS resource (Warning: This field is platform dependent) |
(package private) int |
hCursor
|
(package private) Object |
layoutData
|
(package private) Menu |
menu
|
(package private) Composite |
parent
|
(package private) String |
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) |
Control()
Prevents uninitialized instances from being created outside the package. |
|
Control(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 |
addControlListener(ControlListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when the control is moved or resized, by sending it one of the messages defined in the ControlListener
interface. |
void |
addFocusListener(FocusListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when the control gains or loses focus, by sending it one of the messages defined in the FocusListener
interface. |
void |
addHelpListener(HelpListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when help events are generated for the control, by sending it one of the messages defined in the HelpListener interface. |
void |
addKeyListener(KeyListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when keys are pressed and released on the system keyboard, by sending it one of the messages defined in the KeyListener
interface. |
void |
addMouseListener(MouseListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when mouse buttons are pressed and released, by sending it one of the messages defined in the MouseListener
interface. |
void |
addMouseMoveListener(MouseMoveListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when the mouse moves, by sending it one of the messages defined in the MouseMoveListener
interface. |
void |
addMouseTrackListener(MouseTrackListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when the mouse passes or hovers over controls, by sending it one of the messages defined in the MouseTrackListener
interface. |
void |
addPaintListener(PaintListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when the receiver needs to be painted, by sending it one of the messages defined in the PaintListener
interface. |
void |
addTraverseListener(TraverseListener listener)
Enabled: Adds the listener to the collection of listeners who will be notified when traversal events occur, by sending it one of the messages defined in the TraverseListener
interface. |
(package private) abstract int |
callWindowProc(int msg,
int wParam,
int lParam)
|
(package private) void |
checkOrientation(Widget parent)
|
Point |
computeSize(int wHint,
int hHint)
Enabled: Returns the preferred size of the receiver. |
Point |
computeSize(int wHint,
int hHint,
boolean changed)
Enabled: Returns the preferred size of the receiver. |
(package private) Control |
computeTabGroup()
|
(package private) Control[] |
computeTabList()
|
(package private) Control |
computeTabRoot()
|
(package private) void |
createHandle()
|
(package private) void |
createWidget()
|
(package private) int |
defaultBackground()
|
(package private) int |
defaultFont()
|
(package private) int |
defaultForeground()
|
(package private) void |
deregister()
|
(package private) void |
destroyWidget()
Destroys the widget in the operating system and releases the widget's handle. |
(package private) void |
drawBackground(int hDC)
|
(package private) void |
drawBackground(int hDC,
org.eclipse.swt.internal.win32.RECT rect)
|
(package private) int |
findBrush(int pixel)
|
(package private) int |
findCursor()
|
(package private) char |
findMnemonic(String string)
|
(package private) void |
fixFocus()
|
boolean |
forceFocus()
Suppressed: Forces the receiver to have the keyboard focus, causing all keyboard events to be delivered to it. |
(package private) void |
forceResize()
|
org.eclipse.swt.accessibility.Accessible |
getAccessible()
Suppressed: Returns the accessible object for the receiver. |
Color |
getBackground()
Enabled: Returns the receiver's background color. |
(package private) int |
getBackgroundPixel()
|
int |
getBorderWidth()
Enabled: Returns the receiver's border width. |
Rectangle |
getBounds()
Enabled: Returns a rectangle describing the receiver's size and location relative to its parent (or its display if its parent is null). |
(package private) int |
getCodePage()
|
Display |
getDisplay()
Suppressed: Returns the display that the receiver was created on. |
boolean |
getEnabled()
Enabled: Returns true if the receiver is enabled, and
false otherwise. |
Font |
getFont()
Enabled: Returns the font that the receiver will use to paint textual information. |
Color |
getForeground()
Enabled: Returns the foreground color that the receiver will use to draw. |
(package private) int |
getForegroundPixel()
|
Object |
getLayoutData()
Enabled: Returns layout data which is associated with the receiver. |
Point |
getLocation()
Enabled: Returns a point describing the receiver's location relative to its parent (or its display if its parent is null). |
Menu |
getMenu()
Enabled: Returns the receiver's pop up menu if it has one, or null if it does not. |
Composite |
getParent()
Suppressed: Returns the receiver's parent, which must be a Composite
or null when the receiver is a shell that was created with null or
a display for a parent. |
(package private) Control[] |
getPath()
|
Shell |
getShell()
Suppressed: Returns the receiver's shell. |
Point |
getSize()
Enabled: Returns a point describing the receiver's size. |
String |
getToolTipText()
Enabled: Returns the receiver's tool tip text, or null if it has not been set. |
boolean |
getVisible()
Enabled: Returns true if the receiver is visible, and
false otherwise. |
(package private) boolean |
hasCursor()
|
(package private) boolean |
hasFocus()
|
void |
internal_dispose_GC(int hDC,
GCData data)
Suppressed: Invokes platform specific functionality to dispose a GC handle. |
int |
internal_new_GC(GCData data)
Suppressed: Invokes platform specific functionality to allocate a new GC handle. |
(package private) boolean |
isActive()
|
boolean |
isDisposed()
Enabled: |
boolean |
isEnabled()
Enabled: Returns true if the receiver is enabled and all
of the receiver's ancestors are enabled, and false
otherwise. |
(package private) boolean |
isFocusAncestor()
|
boolean |
isFocusControl()
Enabled: Returns true if the receiver has the user-interface
focus, and false otherwise. |
boolean |
isReparentable()
Enabled: Returns true if the underlying operating
system supports this reparenting, otherwise false |
(package private) boolean |
isShowing()
|
(package private) boolean |
isTabGroup()
|
(package private) boolean |
isTabItem()
|
boolean |
isVisible()
Enabled: Returns true if the receiver is visible and all
of the receiver's ancestors are visible and false
otherwise. |
(package private) Decorations |
menuShell()
|
(package private) boolean |
mnemonicHit(char key)
|
(package private) boolean |
mnemonicMatch(char key)
|
void |
moveAbove(Control control)
Suppressed: Moves the receiver above the specified control in the drawing order. |
void |
moveBelow(Control control)
Suppressed: Moves the receiver below the specified control in the drawing order. |
(package private) org.eclipse.swt.accessibility.Accessible |
new_Accessible(Control control)
|
void |
pack()
Enabled: Causes the receiver to be resized to its preferred size. |
void |
pack(boolean changed)
Enabled: Causes the receiver to be resized to its preferred size. |
void |
redraw()
Enabled: Causes the entire bounds of the receiver to be marked as needing to be redrawn. |
void |
redraw(int x,
int y,
int width,
int height,
boolean all)
Enabled: Causes the rectangular area of the receiver specified by the arguments to be marked as needing to be redrawn. |
(package private) void |
register()
|
(package private) void |
releaseHandle()
|
(package private) void |
releaseWidget()
|
void |
removeControlListener(ControlListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the control is moved or resized. |
void |
removeFocusListener(FocusListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the control gains or loses focus. |
void |
removeHelpListener(HelpListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the help events are generated for the control. |
void |
removeKeyListener(KeyListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when keys are pressed and released on the system keyboard. |
void |
removeMouseListener(MouseListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when mouse buttons are pressed and released. |
void |
removeMouseMoveListener(MouseMoveListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the mouse moves. |
void |
removeMouseTrackListener(MouseTrackListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the mouse passes or hovers over controls. |
void |
removePaintListener(PaintListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when the receiver needs to be painted. |
void |
removeTraverseListener(TraverseListener listener)
Enabled: Removes the listener from the collection of listeners who will be notified when traversal events occur. |
(package private) boolean |
sendKeyEvent(int type,
int msg,
int wParam,
int lParam)
|
(package private) boolean |
sendKeyEvent(int type,
int msg,
int wParam,
int lParam,
Event event)
|
(package private) boolean |
sendMouseEvent(int type,
int msg,
int wParam,
int lParam,
Event event)
|
(package private) boolean |
sendMouseEvent(int type,
int button,
int msg,
int wParam,
int lParam)
|
void |
setBackground(Color color)
Enabled: Sets the receiver's background color to the color specified by the argument, or to the default system color for the control if the argument is null. |
(package private) void |
setBackgroundPixel(int pixel)
|
void |
setBounds(int x,
int y,
int width,
int height)
Enabled: Sets the receiver's size and location to the rectangular area specified by the arguments. |
(package private) void |
setBounds(int x,
int y,
int width,
int height,
int flags)
|
void |
setBounds(Rectangle rect)
Enabled: Sets the receiver's size and location to the rectangular area specified by the argument. |
void |
setCapture(boolean capture)
Suppressed: If the argument is true , causes the receiver to have
all mouse events delivered to it until the method is called with
false as the argument. |
void |
setCursor(Cursor cursor)
Enabled: Sets the receiver's cursor to the cursor specified by the argument, or to the default cursor for that kind of control if the argument is null. |
(package private) void |
setDefaultFont()
|
void |
setEnabled(boolean enabled)
Enabled: Enables the receiver if the argument is true ,
and disables it otherwise. |
boolean |
setFocus()
Suppressed: Causes the receiver to have the keyboard focus, such that all keyboard events will be delivered to it. |
void |
setFont(Font font)
Enabled: Sets the font that the receiver will use to paint textual information to the font specified by the argument, or to the default font for that kind of control if the argument is null. |
void |
setForeground(Color color)
Enabled: Sets the receiver's foreground color to the color specified by the argument, or to the default system color for the control if the argument is null. |
(package private) void |
setForegroundPixel(int pixel)
|
void |
setLayoutData(Object layoutData)
Enabled: Sets the layout data associated with the receiver to the argument. |
void |
setLocation(int x,
int y)
Enabled: Sets the receiver's location to the point specified by the arguments which are relative to the receiver's parent (or its display if its parent is null). |
void |
setLocation(Point location)
Enabled: Sets the receiver's location to the point specified by the argument which is relative to the receiver's parent (or its display if its parent is null). |
void |
setMenu(Menu menu)
Enabled: Sets the receiver's pop up menu to the argument. |
boolean |
setParent(Composite parent)
Suppressed: Changes the parent of the widget to be the one provided if the underlying operating system supports this feature. |
(package private) boolean |
setRadioFocus()
|
(package private) boolean |
setRadioSelection(boolean value)
|
void |
setRedraw(boolean redraw)
Enabled: If the argument is false , causes subsequent drawing
operations in the receiver to be ignored. |
(package private) boolean |
setSavedFocus()
|
void |
setSize(int width,
int height)
Enabled: Sets the receiver's size to the point specified by the arguments. |
void |
setSize(Point size)
Enabled: Sets the receiver's size to the point specified by the argument. |
(package private) boolean |
setTabGroupFocus()
|
(package private) boolean |
setTabItemFocus()
|
void |
setToolTipText(String string)
Enabled: Sets the receiver's tool tip text to the argument, which may be null indicating that no tool tip text should be shown. |
void |
setVisible(boolean visible)
Enabled: Marks the receiver as visible if the argument is true ,
and marks it invisible otherwise. |
(package private) void |
sort(int[] items)
|
(package private) void |
subclass()
|
Point |
toControl(int x,
int y)
Suppressed: Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver. |
Point |
toControl(Point point)
Enabled: Returns a point which is the result of converting the argument, which is specified in display relative coordinates, to coordinates relative to the receiver. |
Point |
toDisplay(int x,
int y)
Suppressed: Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates. |
Point |
toDisplay(Point point)
Enabled: Returns a point which is the result of converting the argument, which is specified in coordinates relative to the receiver, to display relative coordinates. |
static boolean |
transferActive(Shell[] sources,
Shell dest)
Added: If any of the sources were the active shell, then make dest the active shell. |
static boolean |
transferFocus(Control[] sources,
Control dest)
Added: If any of 'sources' currently has or contains the focus, then requests that 'dest' gets the focus. |
(package private) boolean |
translateAccelerator(org.eclipse.swt.internal.win32.MSG msg)
|
(package private) boolean |
translateMnemonic(char key)
|
(package private) boolean |
translateMnemonic(org.eclipse.swt.internal.win32.MSG msg)
|
(package private) boolean |
translateTraversal(org.eclipse.swt.internal.win32.MSG msg)
|
(package private) boolean |
traverse(Event event)
|
boolean |
traverse(int traversal)
Suppressed: Based on the argument, perform one of the expected platform traversal action. |
(package private) boolean |
traverseEscape()
|
(package private) boolean |
traverseGroup(boolean next)
|
(package private) boolean |
traverseItem(boolean next)
|
(package private) boolean |
traverseMnemonic(char key)
|
(package private) boolean |
traversePage(boolean next)
|
(package private) boolean |
traverseReturn()
|
(package private) void |
unsubclass()
|
void |
update()
Suppressed: Forces all outstanding paint requests for the widget to be processed before this method returns. |
(package private) void |
update(boolean all)
|
(package private) void |
updateFont(Font oldFont,
Font newFont)
|
(package private) int |
widgetExtStyle()
|
(package private) int |
widgetStyle()
|
(package private) abstract org.eclipse.swt.internal.win32.TCHAR |
windowClass()
|
(package private) abstract int |
windowProc()
|
(package private) int |
windowProc(int msg,
int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_ACTIVATE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_CHAR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_CLEAR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_CLOSE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_COMMAND(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_CONTEXTMENU(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_CTLCOLOR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_CUT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_DESTROY(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_DRAWITEM(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_ENDSESSION(int wParam,
int lParam)
|
(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_GETFONT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_GETOBJECT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_HELP(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_HOTKEY(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_HSCROLL(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_IME_CHAR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_IME_COMPOSITION(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_INITMENUPOPUP(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_KEYUP(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_KILLFOCUS(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_LBUTTONDBLCLK(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_MBUTTONDBLCLK(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MBUTTONDOWN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MBUTTONUP(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MEASUREITEM(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MENUCHAR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MENUSELECT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MOUSEACTIVATE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MOUSEHOVER(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MOUSELEAVE(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_MOUSEWHEEL(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_MOVE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_NCACTIVATE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_NCCALCSIZE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_NCHITTEST(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_NOTIFY(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_PAINT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_PALETTECHANGED(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_PASTE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_PRINTCLIENT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_QUERYENDSESSION(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_QUERYNEWPALETTE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_QUERYOPEN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_RBUTTONDBLCLK(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_RBUTTONDOWN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_RBUTTONUP(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETCURSOR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETFOCUS(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETFONT(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETREDRAW(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SETTINGCHANGE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SHOWWINDOW(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_SYSCHAR(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SYSCOLORCHANGE(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SYSCOMMAND(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SYSKEYDOWN(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_SYSKEYUP(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_TIMER(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
WM_UNDO(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 |
WM_WINDOWPOSCHANGING(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmColorChild(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmCommandChild(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmDrawChild(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmMeasureChild(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmNotifyChild(int wParam,
int lParam)
|
(package private) org.eclipse.swt.internal.win32.LRESULT |
wmScrollChild(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 |
public int handle
Composite parent
int drawCount
int hCursor
int foreground
int background
Menu menu
String toolTipText
Object layoutData
org.eclipse.swt.accessibility.Accessible accessible
static final short[] ACCENTS
Constructor Detail |
Control()
public Control(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.BORDER
,
Widget.checkSubclass()
,
Widget.getStyle()
Method Detail |
public void addControlListener(ControlListener listener)
ControlListener
interface.
listener
- the listener which should be notifiedControlListener
,
removeControlListener(org.eclipse.swt.events.ControlListener)
public void addFocusListener(FocusListener listener)
FocusListener
interface.
listener
- the listener which should be notifiedFocusListener
,
removeFocusListener(org.eclipse.swt.events.FocusListener)
public void addHelpListener(HelpListener listener)
HelpListener
interface.
listener
- the listener which should be notifiedHelpListener
,
removeHelpListener(org.eclipse.swt.events.HelpListener)
public void addKeyListener(KeyListener listener)
KeyListener
interface.
listener
- the listener which should be notifiedKeyListener
,
removeKeyListener(org.eclipse.swt.events.KeyListener)
public void addMouseListener(MouseListener listener)
MouseListener
interface.
listener
- the listener which should be notifiedMouseListener
,
removeMouseListener(org.eclipse.swt.events.MouseListener)
public void addMouseTrackListener(MouseTrackListener listener)
MouseTrackListener
interface.
listener
- the listener which should be notifiedMouseTrackListener
,
removeMouseTrackListener(org.eclipse.swt.events.MouseTrackListener)
public void addMouseMoveListener(MouseMoveListener listener)
MouseMoveListener
interface.
listener
- the listener which should be notifiedMouseMoveListener
,
removeMouseMoveListener(org.eclipse.swt.events.MouseMoveListener)
public void addPaintListener(PaintListener listener)
PaintListener
interface.
listener
- the listener which should be notifiedPaintListener
,
removePaintListener(org.eclipse.swt.events.PaintListener)
public void addTraverseListener(TraverseListener listener)
TraverseListener
interface.
listener
- the listener which should be notifiedTraverseListener
,
removeTraverseListener(org.eclipse.swt.events.TraverseListener)
abstract int callWindowProc(int msg, int wParam, int lParam)
void checkOrientation(Widget parent)
checkOrientation
in class Widget
public Point computeSize(int wHint, int hHint)
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.DEFAULT
is passed for the hint.
wHint
- the width hint (can be SWT.DEFAULT
)hHint
- the height hint (can be SWT.DEFAULT
)
Layout
,
getBorderWidth()
,
getBounds()
,
getSize()
,
pack()
,
"computeTrim, getClientArea for controls that implement them"public Point computeSize(int wHint, int hHint, boolean changed)
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.DEFAULT
is 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 be false
, so layout
manager caches can be retained.
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
,
getBorderWidth()
,
getBounds()
,
getSize()
,
pack()
,
"computeTrim, getClientArea for controls that implement them"Control computeTabGroup()
Control computeTabRoot()
Control[] computeTabList()
void createHandle()
void createWidget()
int defaultBackground()
int defaultFont()
int defaultForeground()
void deregister()
void destroyWidget()
Widget
When a widget is destroyed in the operating system, its
descendents are also destroyed by the operating system.
This means that it is only necessary to call destroyWidget
on the root of the widget tree.
This method is called after releaseWidget
.
destroyWidget
in class Widget
Widget.dispose()
,
Widget.releaseChild()
,
Widget.releaseWidget()
,
Widget.releaseHandle()
void drawBackground(int hDC)
void drawBackground(int hDC, org.eclipse.swt.internal.win32.RECT rect)
int findBrush(int pixel)
int findCursor()
char findMnemonic(String string)
void fixFocus()
public boolean forceFocus()
true
if the control got focus, and false
if it was unable to.setFocus()
void forceResize()
public org.eclipse.swt.accessibility.Accessible getAccessible()
Accessible.addAccessibleListener(org.eclipse.swt.accessibility.AccessibleListener)
,
Accessible.addAccessibleControlListener(org.eclipse.swt.accessibility.AccessibleControlListener)
public Color getBackground()
int getBackgroundPixel()
public int getBorderWidth()
public Rectangle getBounds()
int getCodePage()
public Display getDisplay()
getDisplay
in class Widget
public boolean getEnabled()
true
if the receiver is enabled, and
false
otherwise. A disabled control is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
isEnabled()
public Font getFont()
public Color getForeground()
int getForegroundPixel()
public Object getLayoutData()
public Point getLocation()
public Menu getMenu()
public Composite getParent()
Composite
or null when the receiver is a shell that was created with null or
a display for a parent.
Control[] getPath()
public Shell getShell()
getParent()
public Point getSize()
public String getToolTipText()
public boolean getVisible()
true
if the receiver is visible, and
false
otherwise.
If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, this method may still indicate that it is considered visible even though it may not actually be showing.
boolean hasCursor()
boolean hasFocus()
public int internal_new_GC(GCData data)
IMPORTANT: This method is not part of the public
API for Control
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
internal_new_GC
in interface Drawable
data
- the platform specific GC data
public void internal_dispose_GC(int hDC, GCData data)
IMPORTANT: This method is not part of the public
API for Control
. It is marked public only so that it
can be shared within the packages provided by SWT. It is not
available on all platforms, and should never be called from
application code.
internal_dispose_GC
in interface Drawable
data
- the platform specific GC datahDC
- the platform specific GC handleboolean isActive()
public boolean isDisposed()
isDisposed
in class Widget
true
when the widget is disposed and false
otherwisepublic boolean isEnabled()
true
if the receiver is enabled and all
of the receiver's ancestors are enabled, and false
otherwise. A disabled control is typically not selectable from the
user interface and draws with an inactive or "grayed" look.
getEnabled()
public boolean isFocusControl()
true
if the receiver has the user-interface
focus, and false
otherwise.
boolean isFocusAncestor()
public boolean isReparentable()
true
if the underlying operating
system supports this reparenting, otherwise false
true
if the widget can be reparented, otherwise false
boolean isShowing()
boolean isTabGroup()
boolean isTabItem()
public boolean isVisible()
true
if the receiver is visible and all
of the receiver's ancestors are visible and false
otherwise.
getVisible()
Decorations menuShell()
boolean mnemonicHit(char key)
boolean mnemonicMatch(char key)
public void moveAbove(Control control)
public void moveBelow(Control control)
org.eclipse.swt.accessibility.Accessible new_Accessible(Control control)
public void pack()
computeSize(int, int)
public void pack(boolean changed)
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 be false
, so layout
manager caches can be retained.
computeSize(int, int)
public void redraw()
update()
public void redraw(int x, int y, int width, int height, boolean all)
all
flag
is true
, any children of the receiver which
intersect with the specified area will also paint their
intersecting areas. If the all
flag is
false
, the children will not be painted.
x
- the x coordinate of the area to drawy
- the y coordinate of the area to drawwidth
- the width of the area to drawheight
- the height of the area to drawall
- true
if children should redraw, and false
otherwiseupdate()
void register()
void releaseHandle()
releaseHandle
in class Widget
void releaseWidget()
releaseWidget
in class Widget
public void removeControlListener(ControlListener listener)
listener
- the listener which should be notifiedControlListener
,
addControlListener(org.eclipse.swt.events.ControlListener)
public void removeFocusListener(FocusListener listener)
listener
- the listener which should be notifiedFocusListener
,
addFocusListener(org.eclipse.swt.events.FocusListener)
public void removeHelpListener(HelpListener listener)
listener
- the listener which should be notifiedHelpListener
,
addHelpListener(org.eclipse.swt.events.HelpListener)
public void removeKeyListener(KeyListener listener)
listener
- the listener which should be notifiedKeyListener
,
addKeyListener(org.eclipse.swt.events.KeyListener)
public void removeMouseTrackListener(MouseTrackListener listener)
listener
- the listener which should be notifiedMouseTrackListener
,
addMouseTrackListener(org.eclipse.swt.events.MouseTrackListener)
public void removeMouseListener(MouseListener listener)
listener
- the listener which should be notifiedMouseListener
,
addMouseListener(org.eclipse.swt.events.MouseListener)
public void removeMouseMoveListener(MouseMoveListener listener)
listener
- the listener which should be notifiedMouseMoveListener
,
addMouseMoveListener(org.eclipse.swt.events.MouseMoveListener)
public void removePaintListener(PaintListener listener)
listener
- the listener which should be notifiedPaintListener
,
addPaintListener(org.eclipse.swt.events.PaintListener)
public void removeTraverseListener(TraverseListener listener)
listener
- the listener which should be notifiedTraverseListener
,
addTraverseListener(org.eclipse.swt.events.TraverseListener)
boolean sendKeyEvent(int type, int msg, int wParam, int lParam)
boolean sendKeyEvent(int type, int msg, int wParam, int lParam, Event event)
boolean sendMouseEvent(int type, int button, int msg, int wParam, int lParam)
boolean sendMouseEvent(int type, int msg, int wParam, int lParam, Event event)
public void setBackground(Color color)
color
- the new color (or null)void setBackgroundPixel(int pixel)
public void setBounds(int x, int y, int width, int height)
x
and
y
arguments are relative to the receiver's
parent (or its display if its parent is null).
Note: Attempting to set the width or height of the receiver to a negative number will cause that value to be set to zero instead.
x
- the new x coordinate for the receivery
- the new y coordinate for the receiverwidth
- the new width for the receiverheight
- the new height for the receivervoid setBounds(int x, int y, int width, int height, int flags)
public void setBounds(Rectangle rect)
x
and
y
fields of the rectangle are relative to
the receiver's parent (or its display if its parent is null).
Note: Attempting to set the width or height of the receiver to a negative number will cause that value to be set to zero instead.
rect
- the new bounds for the receiverpublic void setCapture(boolean capture)
true
, causes the receiver to have
all mouse events delivered to it until the method is called with
false
as the argument.
capture
- true
to capture the mouse, and false
to release itpublic void setCursor(Cursor cursor)
When the mouse pointer passes over a control its appearance is changed to match the control's cursor.
cursor
- the new cursor (or null)void setDefaultFont()
public void setEnabled(boolean enabled)
true
,
and disables it otherwise. A disabled control is typically
not selectable from the user interface and draws with an
inactive or "grayed" look.
enabled
- the new enabled statepublic boolean setFocus()
true
if the control got focus, and false
if it was unable to.forceFocus()
public void setFont(Font font)
font
- the new font (or null)public void setForeground(Color color)
color
- the new color (or null)void setForegroundPixel(int pixel)
public void setLayoutData(Object layoutData)
layoutData
- the new layout data for the receiver.public void setLocation(int x, int y)
x
- the new x coordinate for the receivery
- the new y coordinate for the receiverpublic void setLocation(Point location)
location
- the new location for the receiverpublic void setMenu(Menu menu)
menu
- the new pop up menuboolean setRadioFocus()
boolean setRadioSelection(boolean value)
public void setRedraw(boolean redraw)
false
, causes subsequent drawing
operations in the receiver to be ignored. No drawing of any kind
can occur in the receiver until the flag is set to true.
Graphics operations that occurred while the flag was
false
are lost. When the flag is set to true
,
the entire widget is marked as needing to be redrawn.
Note: This operation is a hint and may not be supported on some platforms or for some widgets.
redraw
- the new redraw stateredraw()
,
update()
boolean setSavedFocus()
public void setSize(int width, int height)
Note: Attempting to set the width or height of the receiver to a negative number will cause that value to be set to zero instead.
width
- the new width for the receiverheight
- the new height for the receiverpublic void setSize(Point size)
Note: Attempting to set the width or height of the receiver to a negative number will cause them to be set to zero instead.
size
- the new size for the receiverboolean setTabGroupFocus()
boolean setTabItemFocus()
public void setToolTipText(String string)
string
- the new tool tip text (or null)public void setVisible(boolean visible)
true
,
and marks it invisible otherwise.
If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.
visible
- the new visibility statevoid sort(int[] items)
void subclass()
public Point toControl(int x, int y)
x
- the x coordinate to be translatedy
- the y coordinate to be translated
public Point toControl(Point point)
point
- the point to be translated (must not be null)
public Point toDisplay(int x, int y)
x
- the x coordinate to be translatedy
- the y coordinate to be translated
public Point toDisplay(Point point)
point
- the point to be translated (must not be null)
boolean translateAccelerator(org.eclipse.swt.internal.win32.MSG msg)
boolean translateMnemonic(char key)
boolean translateMnemonic(org.eclipse.swt.internal.win32.MSG msg)
boolean translateTraversal(org.eclipse.swt.internal.win32.MSG msg)
boolean traverse(Event event)
public boolean traverse(int traversal)
SWT.TRAVERSE_ESCAPE
, SWT.TRAVERSE_RETURN
,
SWT.TRAVERSE_TAB_NEXT
, SWT.TRAVERSE_TAB_PREVIOUS
,
SWT.TRAVERSE_ARROW_NEXT
and SWT.TRAVERSE_ARROW_PREVIOUS
.
traversal
- the type of traversal
boolean traverseEscape()
boolean traverseGroup(boolean next)
boolean traverseItem(boolean next)
boolean traverseMnemonic(char key)
boolean traversePage(boolean next)
boolean traverseReturn()
void unsubclass()
public void update()
redraw()
void update(boolean all)
void updateFont(Font oldFont, Font newFont)
int widgetExtStyle()
int widgetStyle()
public boolean setParent(Composite parent)
true
if the parent is successfully changed.
parent
- the new parent for the control.
true
if the parent is changed and false
otherwise.abstract org.eclipse.swt.internal.win32.TCHAR windowClass()
abstract int windowProc()
int windowProc(int msg, int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_ACTIVATE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_CHAR(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_CLEAR(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_CLOSE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_COMMAND(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_CONTEXTMENU(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_CTLCOLOR(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_CUT(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_DESTROY(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_DRAWITEM(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_ENDSESSION(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_ERASEBKGND(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_GETDLGCODE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_GETFONT(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_GETOBJECT(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_HOTKEY(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_HELP(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_HSCROLL(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_IME_CHAR(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_IME_COMPOSITION(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_INITMENUPOPUP(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_KEYDOWN(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_KEYUP(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_KILLFOCUS(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDBLCLK(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONDOWN(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_LBUTTONUP(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONDBLCLK(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONDOWN(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MBUTTONUP(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MEASUREITEM(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MENUCHAR(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MENUSELECT(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MOUSEACTIVATE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MOUSEHOVER(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MOUSELEAVE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MOUSEMOVE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MOUSEWHEEL(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_MOVE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_NCACTIVATE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_NCCALCSIZE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_NCHITTEST(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_NOTIFY(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_PAINT(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_PALETTECHANGED(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_PASTE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_PRINTCLIENT(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_QUERYENDSESSION(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_QUERYNEWPALETTE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_QUERYOPEN(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDBLCLK(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONDOWN(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_RBUTTONUP(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SETCURSOR(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SETFOCUS(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SETTINGCHANGE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SETFONT(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SETREDRAW(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SHOWWINDOW(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SIZE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SYSCHAR(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SYSCOLORCHANGE(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SYSCOMMAND(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SYSKEYDOWN(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_SYSKEYUP(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_TIMER(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_UNDO(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_VSCROLL(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT WM_WINDOWPOSCHANGING(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT wmColorChild(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT wmCommandChild(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT wmDrawChild(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT wmMeasureChild(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT wmNotifyChild(int wParam, int lParam)
org.eclipse.swt.internal.win32.LRESULT wmScrollChild(int wParam, int lParam)
public static boolean transferFocus(Control[] sources, Control dest)
public static boolean transferActive(Shell[] sources, Shell dest)
Neither dest nor any of the sources may be null.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |