Package org.eclipse.swt.widgets

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


      public void handleEvent(Event event) {
        setEnabledDisabled();
      }
    };

    table.addListener(SWT.Selection, actionEnabler);
    table.addListener(SWT.FocusOut, actionEnabler);
    envVariablesViewer.setContentProvider(new IStructuredContentProvider() {

      public Object[] getElements(Object inputElement) {
        if (inputElement instanceof Collection) {
View Full Code Here


        setEnabledDisabled();
      }
    };

    table.addListener(SWT.Selection, actionEnabler);
    table.addListener(SWT.FocusOut, actionEnabler);
    envVariablesViewer.setContentProvider(new IStructuredContentProvider() {

      public Object[] getElements(Object inputElement) {
        if (inputElement instanceof Collection) {
          return ((Collection<?>) inputElement).toArray(new Object[0]);
View Full Code Here

        hookContextMenu();
        contributeToActionBars();
        hookGlobalActions();

        final Listener tableListener = new ListenerImplementation(t);
        t.addListener(SWT.Dispose, tableListener);
        t.addListener(SWT.KeyDown, tableListener);
        t.addListener(SWT.MouseMove, tableListener);
        t.addListener(SWT.MouseHover, tableListener);

        // /////////////
View Full Code Here

        contributeToActionBars();
        hookGlobalActions();

        final Listener tableListener = new ListenerImplementation(t);
        t.addListener(SWT.Dispose, tableListener);
        t.addListener(SWT.KeyDown, tableListener);
        t.addListener(SWT.MouseMove, tableListener);
        t.addListener(SWT.MouseHover, tableListener);

        // /////////////
View Full Code Here

        hookGlobalActions();

        final Listener tableListener = new ListenerImplementation(t);
        t.addListener(SWT.Dispose, tableListener);
        t.addListener(SWT.KeyDown, tableListener);
        t.addListener(SWT.MouseMove, tableListener);
        t.addListener(SWT.MouseHover, tableListener);

        // /////////////

    }
View Full Code Here

        final Listener tableListener = new ListenerImplementation(t);
        t.addListener(SWT.Dispose, tableListener);
        t.addListener(SWT.KeyDown, tableListener);
        t.addListener(SWT.MouseMove, tableListener);
        t.addListener(SWT.MouseHover, tableListener);

        // /////////////

    }
View Full Code Here

        disposeBuckMgmt();
      }
    });

    //listeners
    BucketTable.addListener (SWT.Selection, new Listener () {
      public void handleEvent (Event e) {
        TableItem[] Selct = BucketTable.getSelection();
        text1.setText (Selct[0].getText());
      }
    });
View Full Code Here

     *            the parent composite.
     * @return returns the list table widget.
     */
    protected Table createLowerList(Composite parent) {
        Table list = new Table(parent, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
        list.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event evt) {
                handleLowerSelectionChanged();
            }
        });
        list.addListener(SWT.MouseDoubleClick, new Listener() {
View Full Code Here

        list.addListener(SWT.Selection, new Listener() {
            public void handleEvent(Event evt) {
                handleLowerSelectionChanged();
            }
        });
        list.addListener(SWT.MouseDoubleClick, new Listener() {
            public void handleEvent(Event evt) {
                handleDefaultSelected();
            }
        });
        list.addDisposeListener(new DisposeListener() {
View Full Code Here

      item.setText(new String[] { "" + i, "" + i, "" + i });
    }
    final TableEditor editor = new TableEditor(table);
    editor.horizontalAlignment = SWT.LEFT;
    editor.grabHorizontal = true;
    table.addListener(SWT.MouseDown, new Listener() {
      public void handleEvent(Event event) {
        Rectangle clientArea = table.getClientArea();
        Point pt = new Point(event.x, event.y);
        int index = table.getTopIndex();
        while (index < table.getItemCount()) {
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.