Package org.sf.feeling.swt.win32.internal.extension.widgets

Examples of org.sf.feeling.swt.win32.internal.extension.widgets.ButtonCanvas.addListener()


          .setLayoutData(new GridData(GridData.FILL, GridData.FILL, false, false));

      switch (buttonType)
      {
      case ThemeConstants.BUTTON_MAX:
        buttonCanvas.addListener(SWT.MouseUp, new Listener()
        {
          public void handleEvent(Event event)
          {
            if (event.button != 1) return;
            Rectangle rect = new Rectangle(0, 0, buttonCanvas.getBounds().width,
View Full Code Here


            shell.setMaximized(true);
          }
        });
        break;
      case ThemeConstants.BUTTON_REV:
        buttonCanvas.addListener(SWT.MouseUp, new Listener()
        {
          public void handleEvent(Event event)
          {
            if (event.button != 1) return;
            Rectangle rect = new Rectangle(0, 0, buttonCanvas.getBounds().width,
View Full Code Here

            shell.setMaximized(false);
          }
        });
        break;
      case ThemeConstants.BUTTON_MIN:
        buttonCanvas.addListener(SWT.MouseUp, new Listener()
        {
          public void handleEvent(Event event)
          {
            if (event.button != 1) return;
            Rectangle rect = new Rectangle(0, 0, buttonCanvas.getBounds().width,
View Full Code Here

            shell.setMinimized(true);
          }
        });
        break;
      case ThemeConstants.BUTTON_CLOSE:
        buttonCanvas.addListener(SWT.MouseUp, new Listener()
        {
          public void handleEvent(Event event)
          {
            if (event.button != 1) return;
            Rectangle rect = new Rectangle(0, 0, buttonCanvas.getBounds().width,
View Full Code Here

            shell.close();
          }
        });
        break;
      case ThemeConstants.BUTTON_HELP:
        buttonCanvas.addListener(SWT.MouseUp, new Listener()
        {
          public void handleEvent(Event event)
          {
            if (event.button != 1) return;
            Rectangle rect = new Rectangle(0, 0, buttonCanvas.getBounds().width,
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.