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

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

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

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);
}

相关文章

Table类方法