Package org.eclipse.swt.widgets

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


        contextMenu.setVisible(true);
      }
    });
    presenceLabel.addListener(SWT.MouseDown, showMenuListener);
    presenceButton.addListener(SWT.MouseDown, showMenuListener);
    presenceComposite.addListener(SWT.MouseDown, showMenuListener);
    addAccount(account);
    layout(true);
    this.addListener(SWT.Dispose, RemoveListener.getRemoveListener(
        account.xmpp.ownPresenceChanged, ownPresenceChangedListener));
  }
View Full Code Here


    final Composite parent1 = new Composite(getContainer(), SWT.NONE);
    FillLayout fillLayout = new FillLayout();
    fillLayout.marginWidth = fillLayout.marginHeight = 1;
    parent1.setLayout(fillLayout);

    parent1.addListener(SWT.Activate, new Listener() {
      public void handleEvent(Event event) {
        if (event.type == SWT.Activate) {
          activeEditorChanged(editor);
          parent1.setBackground(ColorConstants.green);
        }
View Full Code Here

          activeEditorChanged(editor);
          parent1.setBackground(ColorConstants.green);
        }
      }
    });
    parent1.addListener(SWT.Deactivate, new Listener() {
      public void handleEvent(Event event) {
        parent1.setBackground(ColorConstants.titleInactiveBackground);
      }
    });
    SWTUtils.workaroundResize(parent1);
View Full Code Here

      titleArea.addListener(SWT.MouseDown, mouseMoveListener);
      titleArea.addListener(SWT.MouseMove, mouseMoveListener);
      titleArea.addListener(SWT.MouseUp, mouseMoveListener);

      Composite windowTitle = (Composite) titleArea.getData("title");
      windowTitle.addListener(SWT.MouseDown, mouseMoveListener);
      windowTitle.addListener(SWT.MouseMove, mouseMoveListener);
      windowTitle.addListener(SWT.MouseUp, mouseMoveListener);
    }

    {
View Full Code Here

      titleArea.addListener(SWT.MouseMove, mouseMoveListener);
      titleArea.addListener(SWT.MouseUp, mouseMoveListener);

      Composite windowTitle = (Composite) titleArea.getData("title");
      windowTitle.addListener(SWT.MouseDown, mouseMoveListener);
      windowTitle.addListener(SWT.MouseMove, mouseMoveListener);
      windowTitle.addListener(SWT.MouseUp, mouseMoveListener);
    }

    {
      setEnabled(ThemeConstants.BUTTON_HELP, false);
View Full Code Here

      titleArea.addListener(SWT.MouseUp, mouseMoveListener);

      Composite windowTitle = (Composite) titleArea.getData("title");
      windowTitle.addListener(SWT.MouseDown, mouseMoveListener);
      windowTitle.addListener(SWT.MouseMove, mouseMoveListener);
      windowTitle.addListener(SWT.MouseUp, mouseMoveListener);
    }

    {
      setEnabled(ThemeConstants.BUTTON_HELP, false);
View Full Code Here

          }
          break;
        }
      }
    };
    windowTitle.addListener(SWT.Paint, listener);
    windowTitle.addListener(SWT.MouseDoubleClick, listener);
    windowTitle.addListener(SWT.MenuDetect, new Listener()
    {
      public void handleEvent(Event event)
      {
View Full Code Here

          break;
        }
      }
    };
    windowTitle.addListener(SWT.Paint, listener);
    windowTitle.addListener(SWT.MouseDoubleClick, listener);
    windowTitle.addListener(SWT.MenuDetect, new Listener()
    {
      public void handleEvent(Event event)
      {
        menuManager.showMenu();
View Full Code Here

        }
      }
    };
    windowTitle.addListener(SWT.Paint, listener);
    windowTitle.addListener(SWT.MouseDoubleClick, listener);
    windowTitle.addListener(SWT.MenuDetect, new Listener()
    {
      public void handleEvent(Event event)
      {
        menuManager.showMenu();
      }
View Full Code Here

    createExpendituresTable(expendituresPage);
    createExpendituresControlButtons(expendituresPage);

    expendituresTabItem.setControl(expendituresPage);
    expendituresPage.addListener(SWT.Activate, new Listener() {
      public void handleEvent(Event arg0) {
        tempLevel = levelBillPlan;
        levelBillPlan = EXPEDITURE_LEVEL;
      }
    });
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.