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

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

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

TableColumn.<init>介绍

[英]Constructs a new instance of this class given its parent (which must be a Table) and a style value describing its behavior and appearance. The item is added to the end of the items maintained by its parent.

The style value is either one of the style constants defined in class SWT which is applicable to instances of this class, or must be built by bitwise OR'ing together (that is, using the int "|" operator) two or more of those SWT style constants. The class description lists the style constants that are applicable to the class. Style bits are also inherited from superclasses.
[中]给定该类的父类(必须是Table)和描述其行为和外观的样式值,构造该类的新实例。该项将添加到其父项维护的项的末尾。
样式值可以是类SWT中定义的样式常量之一,该类适用于该类的实例,或者必须通过位或组合(即使用int“|”运算符)两个或多个SWT样式常量来构建。类描述列出了适用于该类的样式常量。样式位也继承自超类。

代码示例

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.MouseDown, listener);
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setWidth(100);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.TIME));
tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);
tblclmnNewColumn_1.setWidth(100);
tblclmnNewColumn_1.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE);
tblclmnNewColumn_2.setWidth(100);
tblclmnNewColumn_2.setText(RedisClient.i18nFile.getText(I18nFile.MESSAGE));

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.MouseDown, new EditListener(table, true));
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
tblclmnNewColumn.setWidth(200);

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.MouseDown, new EditListener(table, true));
TableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setWidth(132);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.FIELD));
TableColumn tblclmnMember = new TableColumn(table, SWT.NONE);
tblclmnMember.setWidth(236);
tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.SetData, pageListener);
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
tblclmnNewColumn.setWidth(200);

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.MouseDown, new EditListener(table, true));
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
tblclmnNewColumn.setWidth(200);

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.MouseDown, new EditListener(table, true));
TableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setWidth(88);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.SCORE));
TableColumn tblclmnMember = new TableColumn(table, SWT.NONE);
tblclmnMember.setWidth(164);
tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.MEMBER));

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.SetData, pageListener);
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
tblclmnNewColumn.setWidth(200);

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.SetData, pageListener);
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setWidth(88);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.SCORE));
tblclmnMember = new TableColumn(table, SWT.NONE);
tblclmnMember.setWidth(164);
tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.MEMBER));

代码示例来源:origin: caoxinyu/RedisClient

table.setLinesVisible(true);
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setWidth(132);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.FIELD));
tblclmnMember = new TableColumn(table, SWT.NONE);
tblclmnMember.setWidth(236);
tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));

代码示例来源:origin: caoxinyu/RedisClient

table.setHeaderVisible(true);
TableColumn tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setWidth(100);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.NAME));
TableColumn tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);
tblclmnNewColumn_1.setWidth(187);
tblclmnNewColumn_1.setText(RedisClient.i18nFile.getText(I18nFile.FAVORITE));

代码示例来源:origin: caoxinyu/RedisClient

protected void initData(Composite composite) {
  Table table = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
  table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 5));
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  EditListener listener = new EditListener(table, false);
  table.addListener(SWT.MouseDown, listener);
  
  tblclmnNewColumn = new TableColumn(table, SWT.NONE);
  tblclmnNewColumn.setWidth(132);
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.FIELD));
  tblclmnMember = new TableColumn(table, SWT.NONE);
  tblclmnMember.setWidth(236);
  tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  
  String[] data = result.getResult().split("\n");
  
  for(int i = 0 ; i < data.length/2; i ++){
    TableItem item = new TableItem(table, SWT.NONE);
    String[] values = new String[]{data[i*2], data[i*2+1]};
    item.setText(values);
  }
}

代码示例来源:origin: caoxinyu/RedisClient

tblclmnNewColumn = new TableColumn(table, SWT.NONE);
  tblclmnNewColumn.setWidth(88);
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.SCORE));
tblclmnMember = new TableColumn(table, SWT.NONE);
tblclmnMember.setWidth(164);
tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.MEMBER));

代码示例来源:origin: caoxinyu/RedisClient

table.addListener(SWT.MouseDown, listener);
clmnKey = new TableColumn(table, SWT.LEFT);
clmnKey.setText(RedisClient.i18nFile.getText(I18nFile.KEY));
clmnKey.setWidth(250);
clmnValue = new TableColumn(table, SWT.LEFT);
clmnValue.setWidth(442);
clmnValue.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));

代码示例来源:origin: caoxinyu/RedisClient

@Override
protected void initData(Composite composite) {
  Table table =  new Table(composite, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.VIRTUAL);
  table.setHeaderVisible(true);
  
  table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 5));
  table.setLinesVisible(true);
  EditListener listener = new EditListener(table, false);
  table.addListener(SWT.MouseDown, listener);
  
  tblclmnNewColumn = new TableColumn(table, SWT.NONE);
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  tblclmnNewColumn.setWidth(200);
  String[] data = result.getResult().split("\n");
  
  for(int i = 0 ; i < data.length; i ++){
    TableItem item = new TableItem(table, SWT.NONE);
    item.setText(data[i]);
  }
}

代码示例来源:origin: pentaho/pentaho-kettle

TableColumn column = new TableColumn( wData.table, SWT.NONE, idxByValue );
 column.pack();
} else {

代码示例来源:origin: caoxinyu/RedisClient

table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
tblclmnNewColumn = new TableColumn(table, SWT.NONE);
tblclmnNewColumn.setWidth(100);
tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.TIME));
tblclmnNewColumn_1 = new TableColumn(table, SWT.NONE);
tblclmnNewColumn_1.setWidth(100);
tblclmnNewColumn_1.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
tblclmnNewColumn_2 = new TableColumn(table, SWT.NONE);
tblclmnNewColumn_2.setWidth(100);
tblclmnNewColumn_2.setText(RedisClient.i18nFile.getText(I18nFile.MESSAGE));

代码示例来源:origin: caoxinyu/RedisClient

tableServer.addListener(SWT.MouseDown, listener);
TableColumn tblclmnKey = new TableColumn(tableServer, SWT.LEFT);
tblclmnKey.setText(RedisClient.i18nFile.getText(I18nFile.KEY));
tblclmnKey.setWidth(250);
TableColumn tblclmnValue = new TableColumn(tableServer, SWT.LEFT);
tblclmnValue.setWidth(442);
tblclmnValue.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  table.addListener(SWT.MouseDown, listener1);
  TableColumn clmnKey = new TableColumn(table, SWT.LEFT);
  clmnKey.setText(RedisClient.i18nFile.getText(I18nFile.KEY));
  clmnKey.setWidth(250);
  TableColumn clmnValue = new TableColumn(table, SWT.LEFT);
  clmnValue.setWidth(442);
  clmnValue.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));

代码示例来源:origin: pentaho/pentaho-kettle

TableColumn enabledColumn = new TableColumn( table, SWT.NONE );
enabledColumn.setText( "On?" );
enabledColumn.setWidth( 50 );
TableColumn descriptionColumn = new TableColumn( table, SWT.NONE );
descriptionColumn.setText( "Rule description" );
descriptionColumn.setWidth( 400 );
TableColumn compositeColumn = new TableColumn( table, SWT.NONE );
compositeColumn.setText( "Settings" );
compositeColumn.setWidth( 500 );

代码示例来源:origin: caoxinyu/RedisClient

table.setHeaderVisible(true);
tblclmnName = new TableColumn(table, SWT.NONE);
tblclmnName.setWidth(150);
tblclmnName.setText(i18nFile.getText(I18nFile.NAME));
tblclmnType = new TableColumn(table, SWT.NONE);
tblclmnType.setWidth(150);
tblclmnType.setText(i18nFile.getText(I18nFile.TYPE));
tblclmnSize = new TableColumn(table, SWT.NONE);
tblclmnSize.setWidth(100);
tblclmnSize.setText(i18nFile.getText(I18nFile.SIZE));

代码示例来源:origin: pentaho/pentaho-kettle

tablecolumn[0] = new TableColumn( table, SWT.RIGHT );
tablecolumn[0].setResizable( true );
tablecolumn[0].setText( "#" );
 tablecolumn[i + 1] = new TableColumn( table, allignment );
 tablecolumn[i + 1].setResizable( true );
 if ( columns[i].getName() != null ) {

相关文章