org.eclipse.swt.widgets.TableColumn.removeSelectionListener()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(157)

本文整理了Java中org.eclipse.swt.widgets.TableColumn.removeSelectionListener()方法的一些代码示例,展示了TableColumn.removeSelectionListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.removeSelectionListener()方法的具体详情如下:
包路径:org.eclipse.swt.widgets.TableColumn
类名称:TableColumn
方法名:removeSelectionListener

TableColumn.removeSelectionListener介绍

[英]Removes the listener from the collection of listeners who will be notified when the control is selected by the user.
[中]

代码示例

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java15

/**
   * Releases the resources consumed by this {@link TableComparatorChooser} so that it
   * may eventually be garbage collected.
   *
   * <p>A {@link TableComparatorChooser} will be garbage collected without a call to
   * {@link #dispose()}, but not before its source {@link EventList} is garbage
   * collected. By calling {@link #dispose()}, you allow the {@link TableComparatorChooser}
   * to be garbage collected before its source {@link EventList}. This is
   * necessary for situations where an {@link TableComparatorChooser} is short-lived but
   * its source {@link EventList} is long-lived.
   *
   * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error
   * to call any method on a {@link TableComparatorChooser} after it has been disposed.
   */
  @Override
  public void dispose() {
    // stop listening for events on the specified table
    for(int c = 0; c < table.getColumnCount(); c++) {
      table.getColumn(c).removeSelectionListener(columnListener);
    }
  }
}

代码示例来源:origin: net.java.dev.glazedlists/glazedlists_java16

/**
   * Releases the resources consumed by this {@link TableComparatorChooser} so that it
   * may eventually be garbage collected.
   *
   * <p>A {@link TableComparatorChooser} will be garbage collected without a call to
   * {@link #dispose()}, but not before its source {@link EventList} is garbage
   * collected. By calling {@link #dispose()}, you allow the {@link TableComparatorChooser}
   * to be garbage collected before its source {@link EventList}. This is
   * necessary for situations where an {@link TableComparatorChooser} is short-lived but
   * its source {@link EventList} is long-lived.
   *
   * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error
   * to call any method on a {@link TableComparatorChooser} after it has been disposed.
   */
  @Override
  public void dispose() {
    // stop listening for events on the specified table
    for(int c = 0; c < table.getColumnCount(); c++) {
      table.getColumn(c).removeSelectionListener(columnListener);
    }
  }
}

代码示例来源:origin: com.haulmont.thirdparty/glazedlists

/**
   * Releases the resources consumed by this {@link TableComparatorChooser} so that it
   * may eventually be garbage collected.
   *
   * <p>A {@link TableComparatorChooser} will be garbage collected without a call to
   * {@link #dispose()}, but not before its source {@link EventList} is garbage
   * collected. By calling {@link #dispose()}, you allow the {@link TableComparatorChooser}
   * to be garbage collected before its source {@link EventList}. This is
   * necessary for situations where an {@link TableComparatorChooser} is short-lived but
   * its source {@link EventList} is long-lived.
   *
   * <p><strong><font color="#FF0000">Warning:</font></strong> It is an error
   * to call any method on a {@link TableComparatorChooser} after it has been disposed.
   */
  @Override
  public void dispose() {
    // stop listening for events on the specified table
    for(int c = 0; c < table.getColumnCount(); c++) {
      table.getColumn(c).removeSelectionListener(columnListener);
    }
  }
}

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

for (TableColumn column : columns) {
  SelectionListener listener = (SelectionListener)column.getData("SortListener");	//$NON-NLS-1$
  if (listener != null) column.removeSelectionListener(listener);

相关文章