Package org.eclipse.swt.events

Examples of org.eclipse.swt.events.MenuEvent


    case SWT.Deactivate:
      toString += new ShellEvent(event).toString();
      break;
    case SWT.Show:
    case SWT.Hide:
      toString += event.widget instanceof Menu ? new MenuEvent(event).toString() : event.toString();
      break;
    case SWT.Modify:
      toString += new ModifyEvent(event).toString();
      break;
    case SWT.Verify:
View Full Code Here


    case SWT.Deactivate:
      toString += new ShellEvent(event).toString();
      break;
    case SWT.Show:
    case SWT.Hide:
      toString += event.widget instanceof Menu ? new MenuEvent(event).toString() : event.toString();
      break;
    case SWT.Modify:
      toString += new ModifyEvent(event).toString();
      break;
    case SWT.Verify:
View Full Code Here

    case SWT.Deactivate:
      toString += new ShellEvent(event).toString();
      break;
    case SWT.Show:
    case SWT.Hide:
      toString += event.widget instanceof Menu ? new MenuEvent(event).toString() : event.toString();
      break;
    case SWT.Modify:
      toString += new ModifyEvent(event).toString();
      break;
    case SWT.Verify:
View Full Code Here

      case SWT.Help: {
        ((HelpListener) eventListener).helpRequested (new HelpEvent (e));
        break;
      }
      case SWT.Hide: {
        ((MenuListener) eventListener).menuHidden(new MenuEvent(e));
        break;
      }
      case SWT.Iconify: {
        ((ShellListener) eventListener).shellIconified(new ShellEvent(e));
        break;
      }
      case SWT.KeyDown: {
        /* Fields set by Control */
        KeyEvent event = new KeyEvent(e);
        ((KeyListener) eventListener).keyPressed(event);
        e.doit = event.doit;
        break;
      }
      case SWT.KeyUp: {
        /* Fields set by Control */
        KeyEvent event = new KeyEvent(e);
        ((KeyListener) eventListener).keyReleased(event);
        e.doit = event.doit;
        break;
      }
      case SWT.Modify: {
        ((ModifyListener) eventListener).modifyText(new ModifyEvent(e));
        break;
      }
      case SWT.MenuDetect: {
        MenuDetectEvent event = new MenuDetectEvent(e);
        ((MenuDetectListener) eventListener).menuDetected(event);
        e.x = event.x;
        e.y = event.y;
        e.doit = event.doit;
        e.detail = event.detail;
        break;
      }
      case SWT.MouseDown: {
        ((MouseListener) eventListener).mouseDown(new MouseEvent(e));
        break;
      }
      case SWT.MouseDoubleClick: {
        ((MouseListener) eventListener).mouseDoubleClick(new MouseEvent(e));
        break;
      }
      case SWT.MouseEnter: {
        ((MouseTrackListener) eventListener).mouseEnter (new MouseEvent (e));
        break;
      }
      case SWT.MouseExit: {
        ((MouseTrackListener) eventListener).mouseExit (new MouseEvent (e));
        break;
      }
      case SWT.MouseHover: {
        ((MouseTrackListener) eventListener).mouseHover (new MouseEvent (e));
        break;
      }
      case SWT.MouseMove: {
        ((MouseMoveListener) eventListener).mouseMove(new MouseEvent(e));
        return;
      }
      case SWT.MouseWheel: {
        ((MouseWheelListener) eventListener).mouseScrolled(new MouseEvent(e));
        return;
      }
      case SWT.MouseUp: {
        ((MouseListener) eventListener).mouseUp(new MouseEvent(e));
        break;
      }
      case SWT.Move: {
        ((ControlListener) eventListener).controlMoved(new ControlEvent(e));
        break;
      }
      case SWT.Paint: {
        /* Fields set by Control */
        PaintEvent event = new PaintEvent (e);
        ((PaintListener) eventListener).paintControl (event);
        e.gc = event.gc;
        break;
      }
      case SWT.Resize: {
        ((ControlListener) eventListener).controlResized(new ControlEvent(e));
        break;
      }
      case SWT.Segments: {
        SegmentEvent event = new SegmentEvent(e);
        ((SegmentListener) eventListener).getSegments(event);
        e.segments = event.segments;
        e.segmentsChars = event.segmentsChars;
        break;
      }
      case SWT.Selection: {
        /* Fields set by Sash */
        SelectionEvent event = new SelectionEvent (e);
        ((SelectionListener) eventListener).widgetSelected (event);     
        e.x = event.x;
        e.y = event.y;
        e.doit = event.doit;
        break;
      }
      case SWT.Show: {
        ((MenuListener) eventListener).menuShown(new MenuEvent(e));
        break;
      }
      case SWT.Touch: {
        ((TouchListener)eventListener).touch(new TouchEvent(e));
        break;
View Full Code Here

TOP

Related Classes of org.eclipse.swt.events.MenuEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.