Package org.eclipse.swt.widgets

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


    table_column.setToolTipText(columnDesc);
    table_column.setData(SWTConstants.COLUMN_DESC_KEY, columnDesc);
   
    table_column.setMoveable(true);
    table_column.setResizable(true);
    table_column.addListener(SWT.Resize, column_data_save_listener);
    table_column.addListener(SWT.Move, column_data_save_listener);
   
    Listener sort_listener = new Listener() {
      private int sort_order = 0;
      public void handleEvent(final Event e) {
View Full Code Here


    table_column.setData(SWTConstants.COLUMN_DESC_KEY, columnDesc);
   
    table_column.setMoveable(true);
    table_column.setResizable(true);
    table_column.addListener(SWT.Resize, column_data_save_listener);
    table_column.addListener(SWT.Move, column_data_save_listener);
   
    Listener sort_listener = new Listener() {
      private int sort_order = 0;
      public void handleEvent(final Event e) {
       
View Full Code Here

            TableColumn column = new TableColumn(table, SWT.CENTER | SWT.BORDER);
            column.setText("FID"); //$NON-NLS-1$
            layout.addColumnData(new ColumnWeightData(1, 150, true));
            column.setMoveable(true);

            column.addListener(SWT.Selection, new AttributeColumnSortListener(this,
                    FEATURE_ID_COLUMN_PROPERTY));

            for( int i = 0; i < schema.getAttributeCount(); i++ ) {
                AttributeDescriptor aType = schema.getDescriptor(i);
                column = new TableColumn(table, SWT.CENTER | SWT.BORDER);
View Full Code Here

                    column.setText(aType.getName().getLocalPart());

                layout.addColumnData(new ColumnWeightData(1, 100, true));
                column.setMoveable(true);

                column.addListener(SWT.Selection, new AttributeColumnSortListener(this, aType
                        .getName().getLocalPart()));
            }

        }
    }
View Full Code Here

      TableColumn tc = column.getColumn();
      tc.setText(titles[i]);
      tc.setWidth(bounds[i]);
      tc.setResizable(true);
      tc.setMoveable(true);
      tc.addListener(SWT.Selection, sortListener);
    }
    Table table = viewer.getTable();
    table.setHeaderVisible(true);
    table.setLinesVisible(true);
    table.setSortColumn(column.getColumn());
View Full Code Here

            }
            typeEditor.getItem().setText(1,cmdtype.toString());
            cmd.commandType = cmdtype;
          }
        });
        wait.addListener(SWT.Selection,new Listener() {
          public void handleEvent(Event event) {
            typeEditor.getItem().setText(2,Boolean.toString(wait.getSelection()));
            cmd.waitforterminate = wait.getSelection();
          }
        });
View Full Code Here

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

            };
            tableColumn.addListener(SWT.Resize, listener);
          }
          GridData gridData = new GridData(-1, 25);
          gridData.horizontalAlignment = GridData.FILL;
          gridData.verticalAlignment = GridData.BEGINNING;
          gridData.grabExcessHorizontalSpace = true;
View Full Code Here

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

            };
            tableColumn.addListener(SWT.Resize, listener);
          }
          GridData gridData = new GridData(-1, 25);
          gridData.horizontalAlignment = GridData.FILL;
          gridData.verticalAlignment = GridData.BEGINNING;
          gridData.grabExcessHorizontalSpace = true;
View Full Code Here

            logger.debug("Updated column: {}", column.getText());
            showOrHideColumn(columnItems[i], column);

            String columnId = LogFieldColumn.values()[i].getId();
            ColumnListener columnListener = new ColumnListener(column, columnItems[i], columnId);
            column.addListener(SWT.Resize, columnListener);
            saveColumnDisplay(columnItems[i], columnId);
        }
    }

    private void clearColumnListeners(final Table table) {
View Full Code Here

      if (newWidth > 0) {
        col.setWidth(newWidth);
      } else {
        col.setWidth(100);
      }
      col.addListener(SWT.Resize, new Listener() {
        /* (non-Javadoc)
         * @see org.eclipse.swt.widgets.Listener#handleEvent(org.eclipse.swt.widgets.Event)
         */
        @Override
        public void handleEvent(Event event) {
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.