Package org.eclipse.swt.widgets

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


    table.setLayoutData(gd);

    table.setLinesVisible(0 != (flags & LINES_VISIBLE));
    table.setHeaderVisible(0 != (flags & HEADER_VISIBLE));
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this); // delete key
    return table;
  }

  protected Tree newTree(Composite parent) {
    Tree tree = toolkit.createTree(parent, SWT.SINGLE);
View Full Code Here


    table.setHeaderVisible(true);
    table.setLinesVisible(true);
   
    final Color defaultForegroundColor = table.getForeground();
   
    table.addListener(SWT.EraseItem, new Listener() {
      public void handleEvent(Event event) {
          if((event.detail & SWT.SELECTED) != 0 ){
              event.detail &= ~SWT.SELECTED;
              event.gc.setForeground(defaultForegroundColor);
          }
View Full Code Here

   */
  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this); // delete key
    return table;
  }

  public int getHitColumn(TableItem item, Point p) {
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this); // delete key
    return table;
  }

  public int getHitColumn(TableItem item, Point p) {
    for (int i = item.getParent().getColumnCount() - 1; i >= 0; i--) {
View Full Code Here

    for (int i = 0; i < AndrolateApplication.STRINGLIST_TABLE_TITLES.length; i++) {
      TableColumn column = new TableColumn(table, SWT.NONE);
      column.setText(AndrolateApplication.STRINGLIST_TABLE_TITLES[i]);
    }
    table.addListener(SWT.Selection, this);
    if (mode == AndrolateApplication.STRINGLIST_TABLE_MODE_TRANSLATE) {
      mTranslateStringTable = table;
    } else {
      mIgnoreStringTable = table;
    }
View Full Code Here

    //          {
    //          // Efface toute la ligne : event.detail &= ~SWT.FOREGROUND;
    //          }
    //      });

    tabFile.addListener(SWT.PaintItem, new Listener()
      {
        public void handleEvent(Event event)
          {
          if (_poserLiner != null)
            {
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER | SWT.MULTI);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this);
    return table;
  }

  private void displayFilteredTypes(String aTypeName) {
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER | SWT.MULTI);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this);
    return table;
  }

  private void displayFilteredTypes(String aTypeName) {
    list.setRedraw(false);
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this);
    return table;
  }

  private void displayFilteredTypes(String aTypeName) {
View Full Code Here

  protected Table newTable(Composite parent, int style) {
    Table table = new Table(parent, style | SWT.BORDER);
    GridData gd = new GridData(GridData.FILL_BOTH);
    table.setLayoutData(gd);
    table.addListener(SWT.Selection, this);
    table.addListener(SWT.KeyUp, this);
    return table;
  }

  private void displayFilteredTypes(String aTypeName) {
    matchingTypesUI.setRedraw(false);
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.