Available Methods
- NONE
- BORDER
- V_SCROLL
- PUSH
- CHECK
- LEFT
- MULTI
- SINGLE
- READ_ONLY
- OK
- H_SCROLL
- FILL
- CENTER
- WRAP
- error ( )
- ICON_ERROR
- RIGHT
- NULL
- HORIZONTAL
- FULL_SELECTION
- BOLD
- SEPARATOR
- DEFAULT
- RADIO
- RESIZE
- FLAT
- VERTICAL
- TOP
- DROP_DOWN
- ITALIC
- NORMAL
- SAVE
- ICON_INFORMATION
- CTRL
- SHIFT
- NO_FOCUS
- APPLICATION_MODAL
- DIALOG_TRIM
- DOUBLE_BUFFERED
- OPEN
- CR
- ARROW_DOWN
- Selection ( )
- YES
- CANCEL
- BOTTOM
- NO_BACKGROUND
- NO
- CLOSE
- ICON_WARNING
- RIGHT_TO_LEFT
- LEFT_TO_RIGHT
- TOGGLE
- SHEET
- DOWN
- BEGINNING
- MAX
- ARROW_LEFT
- ARROW_RIGHT
- NO_TRIM
- END
- ON_TOP
- MIN
- ARROW_UP
- KeyDown ( )
- KeyUp ( )
- ICON_QUESTION
- Dispose ( )
- ALT
- CASCADE
- VIRTUAL
- SHADOW_ETCHED_IN
- PAGE_UP
- DEL
- FocusOut ( )
- Traverse ( )
- PASSWORD
- SHELL_TRIM
- ARROW
- Deactivate ( )
- BS
- FocusIn ( )
- ESC
- LEAD
- MouseUp ( )
- SMOOTH
- MouseDoubleClick ( )
- TRAVERSE_TAB_NEXT
- UP
- MouseDown ( )
- TITLE
- Paint ( )
- PAGE_DOWN
- Move ( )
- HOME
- SHADOW_IN
- TRAVERSE_TAB_PREVIOUS
- F2 ( )
- LINE_SOLID
- HIDE_SELECTION
- JOIN_BEVEL
- SHADOW_NONE
- Modify ( )
- BAR
- SEARCH
- COMMAND
- LINE_DASHDOT
- ICON_SEARCH
- TAB
- SHADOW_OUT
- LINE_DASH
- KEYPAD_CR
- LINE_DOT
- JOIN_ROUND
- MOD1 ( )
- TOOL
- MODIFIER_MASK
- CURSOR_ARROW
- IMAGE_GIF
- LF
- MouseEnter ( )
- MouseMove ( )
- TRAVERSE_ARROW_PREVIOUS
- UNDERLINE_LINK
- MODELESS
- CURSOR_HAND
- IMAGE_JPEG
- MouseHover ( )
- CURSOR_WAIT
- getPlatform ( )
- IMAGE_BMP
- PRIMARY_MODAL
- CAP_FLAT
- UNDERLINE_ERROR
- POP_UP
- CAP_ROUND
- SIMPLE
- DATE
- EraseItem ( )
- TRANSPARENT
- TIME
- CAP_SQUARE
- COLOR_DARK_GREEN
- FOREGROUND
- INHERIT_DEFAULT
- KEYPAD_SUBTRACT
- TRAVERSE_ARROW_NEXT
- Help ( )
- LINE_DASHDOTDOT
- TRAVERSE_ESCAPE
- MouseExit ( )
- JOIN_MITER
- NO_SCROLL
- Collapse ( )
- F9 ( )
- FILL_WINDING
- HIGH
- ERROR_NULL_ARGUMENT
- BORDER_DOT
- CAPS_LOCK
- ICON_CANCEL
- KEYPAD_4 ( )
- PATH_MOVE_TO
- MOD2 ( )
- INDETERMINATE
- NO_REDRAW_RESIZE
- INSERT
- DefaultSelection ( )
- SYSTEM_MODAL
- IMAGE_COPY
- CALENDAR
- BACKGROUND
- MOD4 ( )
Related Classes
- java.io.File
- org.eclipse.swt.widgets.Composite
- org.eclipse.swt.widgets.Display
- org.eclipse.swt.widgets.Button
- org.eclipse.swt.widgets.Label
- org.eclipse.swt.widgets.Shell
- org.eclipse.swt.layout.GridData
- org.eclipse.swt.widgets.Text
- org.eclipse.swt.layout.GridLayout
- org.eclipse.swt.events.SelectionEvent
- org.eclipse.swt.events.SelectionAdapter
- org.eclipse.swt.widgets.Control
- org.eclipse.swt.graphics.Image
- org.eclipse.swt.widgets.Group
- org.eclipse.swt.widgets.Event
- org.eclipse.swt.graphics.Point
- org.eclipse.swt.graphics.Color
- org.eclipse.ui.PlatformUI
- org.eclipse.swt.widgets.Listener
- org.eclipse.swt.events.SelectionListener
- org.eclipse.swt.events.ModifyListener
- org.eclipse.swt.widgets.Combo
- org.eclipse.swt.widgets.FileDialog
- org.eclipse.swt.events.ModifyEvent
- org.eclipse.jface.viewers.IStructuredSelection
Java Code Examples for org.eclipse.swt.SWT#MouseExit
The following examples show how to use
org.eclipse.swt.SWT#MouseExit .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SWTSkin.java From BiglyBT with GNU General Public License v2.0 | 6 votes |
protected static Listener getHandCursorListener(Display display) { if (handCursorListener == null) { handCursor = new Cursor(display, SWT.CURSOR_HAND); handCursorListener = new Listener() { @Override public void handleEvent(Event event) { if (event.type == SWT.MouseEnter) { ((Control) event.widget).setCursor(handCursor); } if (event.type == SWT.MouseExit) { ((Control) event.widget).setCursor(null); } } }; } return handCursorListener; }
Example 2
Source File: Utils.java From BiglyBT with GNU General Public License v2.0 | 5 votes |
public static void addSafeMouseUpListener(Control control, Listener mouseDownListener, Listener mouseUpListener) { Listener l = new Listener() { boolean isMouseDown = false; @Override public void handleEvent(Event e) { switch (e.type) { case SWT.MouseDown: isMouseDown = true; if (mouseDownListener != null) { mouseDownListener.handleEvent(e); } break; case SWT.MouseExit: isMouseDown = false; break; case SWT.MouseUp: if (!isMouseDown) { return; } if (e.widget instanceof Control) { Point size = ((Control) e.widget).getSize(); Rectangle bounds = new Rectangle(0, 0, size.x, size.y); if (!bounds.contains(e.x, e.y)) { return; } } mouseUpListener.handleEvent(e); break; } } }; control.addListener(SWT.MouseDown, l); control.addListener(SWT.MouseUp, l); control.addListener(SWT.MouseExit, l); }
Example 3
Source File: Java2DDisplaySurface.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public void dispatchMouseEvent(final int swtMouseEvent) { final int x = mousePosition.x; final int y = mousePosition.y; for (final IEventLayerListener gl : listeners) { switch (swtMouseEvent) { case SWT.MouseDown: gl.mouseDown(x, y, 1); break; case SWT.MouseUp: gl.mouseUp(x, y, 1); break; case SWT.MouseMove: gl.mouseMove(x, y); break; case SWT.MouseEnter: gl.mouseEnter(x, y); break; case SWT.MouseExit: gl.mouseExit(x, y); break; case SWT.MenuDetect: gl.mouseMenu(x, y); break; } } }
Example 4
Source File: FlatButton.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public void handleEvent(final Event e) { switch (e.type) { case SWT.MouseExit: doHover(false); break; case SWT.MouseMove: break; case SWT.MouseEnter: case SWT.MouseHover: doHover(true); e.doit = true; break; case SWT.MouseUp: if (e.button == 1 && getClientArea().contains(e.x, e.y)) { doButtonUp(); } break; case SWT.MouseDown: if (e.button == 1 && getClientArea().contains(e.x, e.y)) { doButtonDown(); } break; default: ; } }
Example 5
Source File: SWTOpenGLDisplaySurface.java From gama with GNU General Public License v3.0 | 5 votes |
@Override public void dispatchMouseEvent(final int swtMouseEvent) { final GamaPoint p = renderer.getCameraHelper().getMousePosition(); final int x = (int) p.x; final int y = (int) p.y; for (final IEventLayerListener gl : listeners) { switch (swtMouseEvent) { case SWT.MouseDown: gl.mouseDown(x, y, 1); break; case SWT.MouseUp: gl.mouseUp(x, y, 1); break; case SWT.MouseMove: gl.mouseMove(x, y); break; case SWT.MouseEnter: gl.mouseEnter(x, y); break; case SWT.MouseExit: gl.mouseExit(x, y); break; case SWT.MenuDetect: gl.mouseMenu(x, y); break; } } }
Example 6
Source File: InformationPresenterControlManager.java From Pydev with Eclipse Public License 1.0 | 5 votes |
@Override public void handleEvent(Event event) { switch (event.type) { case SWT.Activate: case SWT.MouseVerticalWheel: case SWT.MouseUp: case SWT.MouseDown: case SWT.FocusOut: IInformationControl iControl = fInformationControl; if (iControl != null && !iControl.isFocusControl()) { hideInformationControl(); } break; case SWT.MouseMove: case SWT.MouseEnter: case SWT.MouseExit: handleMouseMove(event); break; case SWT.KeyDown: if (event.keyCode == SWT.ESC) { hideInformationControl(); } else if (fActivateEditorBinding != null && KeyBindingHelper.matchesKeybinding(event.keyCode, event.stateMask, fActivateEditorBinding)) { hideInformationControl(true, true); } break; } }