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

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

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

Table.addControlListener介绍

暂无

代码示例

代码示例来源:origin: anb0s/LogViewer

table.addControlListener(resizer);
TableColumn[] columns= table.getColumns();
for (int i= 0; i < columns.length; i++) {

代码示例来源:origin: net.sf.okapi.steps/okapi-step-searchandreplace-ui

table.addControlListener(new ControlAdapter() {
  public void controlResized(ControlEvent e) {
    int tableWidth = table.getBounds().width;

代码示例来源:origin: net.sf.okapi.lib/okapi-lib-verification-ui

table.addControlListener(new ControlAdapter() {
  public void controlResized(ControlEvent e) {
    int tableWidth = table.getClientArea().width;

代码示例来源:origin: net.sf.okapi.lib/okapi-lib-segmentation-ui

gdTmp.grabExcessVerticalSpace = true;
tblRules.setLayoutData(gdTmp);
tblRules.addControlListener(new ControlAdapter() {
  public void controlResized(ControlEvent e) {
    Rectangle rect = tblRules.getClientArea();

代码示例来源: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);
}

代码示例来源: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: net.sf.okapi.lib/okapi-lib-verification-ui

tblIssues.setMenu(createIssuesContextMenu());
tblIssues.addControlListener(new ControlAdapter() {
  public void controlResized(ControlEvent e) {
    Rectangle rect = tblIssues.getClientArea();

代码示例来源:origin: org.eclipse/org.eclipse.jdt.ui

fTable.setHeaderVisible(false);
addPopupMenu();
fTable.addControlListener(new ControlAdapter() {
  public void controlResized(ControlEvent event) {
    int itemHeight= fTable.getItemHeight();

代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui

fTable.setHeaderVisible(false);
addPopupMenu();
fTable.addControlListener(new ControlAdapter() {
  public void controlResized(ControlEvent event) {
    int itemHeight= fTable.getItemHeight();

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.ui

fTable.setHeaderVisible(false);
addPopupMenu();
fTable.addControlListener(new ControlAdapter() {
  @Override
  public void controlResized(ControlEvent event) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.ui

fTable.setHeaderVisible(false);
addPopupMenu();
fTable.addControlListener(new ControlAdapter() {
  @Override
  public void controlResized(ControlEvent event) {

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

toolkit.paintBordersFor(container);
table.addControlListener(new ControlListener() {

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

toolkit.paintBordersFor(container);
table.addControlListener(new ControlListener() {

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

autoColumnEditor.setText(PDEUIMessages.EquinoxPluginBlock_autoColumn);
table.addControlListener(new ControlListener() {

代码示例来源:origin: org.eclipse/org.eclipse.ajdt.ui

table.addControlListener(new ControlAdapter() {
  public void controlResized(ControlEvent e) {
    resizeColumns();

代码示例来源:origin: org.eclipse.pde/org.eclipse.pde.ui

archColumn.setWidth(60);
table.addControlListener(new ControlListener() {

相关文章

Table类方法