本文整理了Java中org.eclipse.swt.widgets.TableColumn.removeSelectionListener()
方法的一些代码示例,展示了TableColumn.removeSelectionListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TableColumn.removeSelectionListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.TableColumn
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!