Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Label.addListener()


            .getSystemColor(SWT.COLOR_INFO_FOREGROUND));
        label.setBackground(RoomManager.getMain().getDisplay()
            .getSystemColor(SWT.COLOR_INFO_BACKGROUND));
        label.setData("_TREEITEM", item);
        label.setText(findRoom(item.getText()).getToolTipText());
        label.addListener(SWT.MouseExit, labelListener);
        label.addListener(SWT.MouseDown, labelListener);
        Point size = tip.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        Rectangle rect = item.getBounds(0);
        Point pt = chanList.toDisplay(rect.x, rect.y);
        tip.setBounds(pt.x, pt.y, size.x, size.y);
View Full Code Here


        label.setBackground(RoomManager.getMain().getDisplay()
            .getSystemColor(SWT.COLOR_INFO_BACKGROUND));
        label.setData("_TREEITEM", item);
        label.setText(findRoom(item.getText()).getToolTipText());
        label.addListener(SWT.MouseExit, labelListener);
        label.addListener(SWT.MouseDown, labelListener);
        Point size = tip.computeSize(SWT.DEFAULT, SWT.DEFAULT);
        Rectangle rect = item.getBounds(0);
        Point pt = chanList.toDisplay(rect.x, rect.y);
        tip.setBounds(pt.x, pt.y, size.x, size.y);
        tip.setVisible(true);
View Full Code Here

      }
      windowImage.setImage(image);
    } catch (Exception e)
    {
    }
    windowImage.addListener(SWT.MouseDown, new Listener()
    {

      public void handleEvent(Event event)
      {
        if (!menuManager.isMenuVisiable()) menuManager.showMenu(getClientArea()
View Full Code Here

            .getParent().toDisplay(new Point(0, 0)));
      }

    });

    windowImage.addListener(SWT.MouseDoubleClick, new Listener()
    {

      public void handleEvent(Event event)
      {
        shell.close();
View Full Code Here

       
        final Label label = new Label(itensAreaComposite, SWT.NONE);
        label.setText(itemTitle);
        label.setBackground(defaultBackgroundColor);
       
        label.addListener(SWT.MouseEnter, new Listener(){
            public void handleEvent(Event arg0) {
                label.setForeground(itensAreaFontColorEnter);
            }
        });
        label.addListener(SWT.MouseExit, new Listener(){
View Full Code Here

        label.addListener(SWT.MouseEnter, new Listener(){
            public void handleEvent(Event arg0) {
                label.setForeground(itensAreaFontColorEnter);
            }
        });
        label.addListener(SWT.MouseExit, new Listener(){
            public void handleEvent(Event arg0) {
                label.setForeground(itensAreaFontColor);
            }
        });
        label.addListener(SWT.MouseDown, new Listener(){
View Full Code Here

        label.addListener(SWT.MouseExit, new Listener(){
            public void handleEvent(Event arg0) {
                label.setForeground(itensAreaFontColor);
            }
        });
        label.addListener(SWT.MouseDown, new Listener(){
            public void handleEvent(Event arg0) {
                if (screen instanceof MainScreen)
                    executeMethod(method, GDWindowControl.getInstance());
                else
                    ((HomeControlCenter) screen).goTo(method);
View Full Code Here

      if (i + 1 < thisLocation.length) {
        Color color = new Color(null, 0, 0, 0);
        label.setForeground(color);
        color.dispose();

        label.addListener(SWT.MouseUp, new Listener() {
          public void handleEvent(Event arg0) {
            goTo(location);
          }
        });
View Full Code Here

          public void handleEvent(Event arg0) {
            goTo(location);
          }
        });

        label.addListener(SWT.MouseEnter, new Listener() {
          public void handleEvent(Event arg0) {
            Color color = new Color(null, 65, 80, 140);
            label.setForeground(color);
            color.dispose();
          }
View Full Code Here

            label.setForeground(color);
            color.dispose();
          }
        });

        label.addListener(SWT.MouseExit, new Listener() {
          public void handleEvent(Event arg0) {
            Color color = new Color(null, 0, 0, 0);
            label.setForeground(color);
            color.dispose();
          }
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.