Examples of addListener()


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

        textPath.setText(path);
      }    
      }
    });
 
    textPath.addListener(SWT.Modify, new Listener(){
     
      public void handleEvent(Event event) {
      String path = textPath.getText();
     
      pathSet( path );
View Full Code Here

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

            // Handle Context Menu
            // ToolBarManager.createControl can actually return a pre-existing control.
            // Only add the listener if the toolbar was newly created (bug 62097).
            if (oldToolBar != toolBar) {
              toolBar.addListener(SWT.MenuDetect, new Listener() {
 
                  public void handleEvent(Event event) {
                      // if the toolbar does not have its own context menu then
                      // handle the event
                      if (toolBarManager.getContextMenuManager() == null) {
View Full Code Here

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

       
        final ToolBar schemaSectionToolBar = new ToolBar(schemaSection, SWT.FLAT);
        final ToolItem schemaSectionItemNew = new ToolItem(schemaSectionToolBar, SWT.DROP_DOWN);
        schemaSectionItemNew.setText("new");
        schemaSectionItemNew.setImage(Plugin.getDefault().getImageRegistry().get(Plugin.IMAGE_SCHEMADEFINITION_ADD));
        schemaSectionItemNew.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event event) {

                  Rectangle rect = schemaSectionItemNew.getBounds();
                  Point pt = new Point(rect.x, rect.y + rect.height);
                  pt = schemaSectionToolBar.toDisplay(pt);
View Full Code Here

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

            public void handleEvent (Event event) {
                new UpdateUI(information.getUpdateList());
            }
        });

        tip.addListener (SWT.Selection, new Listener () {
          public void handleEvent (Event event) {
            new UpdateUI(information.getUpdateList());
          }
        });
  }
View Full Code Here

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

        // Create a tracker.  This is just an XOR rect on the screen.
        // As it moves we notify the drag listeners.
        final Tracker tracker = new Tracker(display, SWT.NULL);
        tracker.setStippled(true);

        tracker.addListener(SWT.Move, new Listener() {
            public void handleEvent(final Event event) {
                display.syncExec(new Runnable() {
                    public void run() {
                      // Get the curslor location as a point
                        Point location = new Point(event.x, event.y);
View Full Code Here

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

      tip.setMessage(message);
      tip.setText("Atualiza��o do Gerente Digital.");
      trayItem.setToolTip(tip);
      tip.setVisible(true);
       
        trayItem.addListener (SWT.Selection, new Listener () {
            public void handleEvent (Event event) {
                new UpdateUI(information.getUpdateList());
            }
        });
View Full Code Here

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

        public void widgetDisposed(DisposeEvent e) {
          treeIsDisposed = true;
          unmapAllElements();
        }
      });
      treeControl.addListener(SWT.SetData, new Listener() {

        public void handleEvent(Event event) {
          if (contentProviderIsLazy) {
            TreeItem item = (TreeItem) event.item;
            TreeItem parentItem = item.getParentItem();
View Full Code Here

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

        col = new TreeColumn(tree, SWT.LEFT);
        col.setText(text);
        col.setWidth(width);
        col.setMoveable(true);

        col.addListener(SWT.Selection, sortListener);

        return col;
    }

    @Override
View Full Code Here

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

                  + " (Self)");
              ownPresence.setData("entryjid", account.jid + "/"
                  + account.resource);
            }
          });
      ownPresence.addListener(SWT.Dispose, RemoveListener
          .getRemoveListener(account.changeListenerList,
              changeListener));
    }
    if (roster == null)
      return;
View Full Code Here

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

        /*
         * If the event is still up for grabs, then re-route through the global
         * key filter.
         */
        if (event.doit) {
            widget.addListener(SWT.Modify, new CancelOnModifyListener(
                    chainedListener));
            widget.addListener(SWT.KeyDown, chainedListener);
        }
    }
}
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.