本文整理了Java中org.eclipse.swt.widgets.Table.removeControlListener()
方法的一些代码示例,展示了Table.removeControlListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.removeControlListener()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:removeControlListener
暂无
代码示例来源:origin: org.codehaus.openxma/xmartclient
/**
* Attaches the TableLayoutManager to an SWT-Table. From this time on, the column widths are controled by
* the TableLayoutManager.
* @param table to manage
* @param take defines which layout information should be calculated from the current width of the columns.
* possible values: {@link #PERCENT}, {@link #SCALEDPERCENT}, {@link #MIN}, {@link #MAX}, {@link #ABSOLUT}. These value may be ored
* together to take more information.
*/
public void manageTable(Table table,int take) {
if(this.table!=null) { // remove from old table if any
this.table.removeControlListener(this);
for(int i=0,size=this.table.getColumnCount();i<size;i++) {
this.table.getColumn(i).removeControlListener(this);
}
}
this.table=table;
this.table.addControlListener(this);
for(int i=0,size=this.table.getColumnCount();i<size;i++) {
this.table.getColumn(i).addControlListener(this);
}
recalcLayoutInfoFromTable(take);
}
代码示例来源:origin: org.codehaus.openxma/xmartserver
/**
* Attaches the TableLayoutManager to an SWT-Table. From this time on, the column widths are controled by
* the TableLayoutManager.
* @param table to manage
* @param take defines which layout information should be calculated from the current width of the columns.
* possible values: {@link #PERCENT}, {@link #SCALEDPERCENT}, {@link #MIN}, {@link #MAX}, {@link #ABSOLUT}. These value may be ored
* together to take more information.
*/
public void manageTable(Table table,int take) {
if(this.table!=null) { // remove from old table if any
this.table.removeControlListener(this);
for(int i=0,size=this.table.getColumnCount();i<size;i++) {
this.table.getColumn(i).removeControlListener(this);
}
}
this.table=table;
this.table.addControlListener(this);
for(int i=0,size=this.table.getColumnCount();i<size;i++) {
this.table.getColumn(i).addControlListener(this);
}
recalcLayoutInfoFromTable(take);
}
内容来源于网络,如有侵权,请联系作者删除!