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

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

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

TableColumn.setText介绍

暂无

代码示例

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

public void setColumnText( int idx, String text ) {
 TableColumn col = table.getColumn( idx );
 col.setText( text );
}

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

@Override
protected void refreshLangUI() {
  if(withScore)
    tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.SCORE));
  tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.MEMBER));
  super.refreshLangUI();
}

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

@Override
protected void refreshLangUI() {
  clmnKey.setText(RedisClient.i18nFile.getText(I18nFile.KEY));
  clmnValue.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  super.refreshLangUI();
}

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

@Override
protected void refreshLangUI() {
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.FIELD));
  tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  super.refreshLangUI();
}

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

public void refreshLangUI(){
    tbtmSubItem.setText(subChannel + " " + RedisClient.i18nFile.getText(I18nFile.CHANNEL));
    tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.TIME));
    tblclmnNewColumn_1.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
    tblclmnNewColumn_2.setText(RedisClient.i18nFile.getText(I18nFile.MESSAGE));
  }
}

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

@Override
protected void refreshLangUI() {
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  super.refreshLangUI();
}

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

@Override
public void refreshLangUI(){
  tbtmNewItem.setText(server.getName() +" "+RedisClient.i18nFile.getText(I18nFile.PUBLISH));
  btnNewButton.setText(RedisClient.i18nFile.getText(I18nFile.PUBLISH));
  label.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
  label1.setText(RedisClient.i18nFile.getText(I18nFile.MESSAGE));
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.TIME));
  tblclmnNewColumn_1.setText(RedisClient.i18nFile.getText(I18nFile.CHANNEL));
  tblclmnNewColumn_2.setText(RedisClient.i18nFile.getText(I18nFile.MESSAGE));
  composite_3.pack();
}
@Override

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

@Override
public void refreshLangUI() {
  grpValues.setText(RedisClient.i18nFile.getText(I18nFile.VALUES));
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.SCORE));
  tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.MEMBER));
  btnAdd.setText(RedisClient.i18nFile.getText(I18nFile.ADD));
  btnDelete.setText(RedisClient.i18nFile.getText(I18nFile.DELETE));
  btnApply.setText(RedisClient.i18nFile.getText(I18nFile.APPLY));
  btnCancel.setText(RedisClient.i18nFile.getText(I18nFile.CANCEL));
  btnRefresh.setText(RedisClient.i18nFile.getText(I18nFile.REFRESH));
  btnWatch.setText(RedisClient.i18nFile.getText(I18nFile.WATCH));
  super.refreshLangUI();
}

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

@Override
public void refreshLangUI() {
  grpValues.setText(RedisClient.i18nFile.getText(I18nFile.VALUES));
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.FIELD));
  tblclmnMember.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  btnAdd.setText(RedisClient.i18nFile.getText(I18nFile.ADD));
  btnDelete.setText(RedisClient.i18nFile.getText(I18nFile.DELETE));
  btnApply.setText(RedisClient.i18nFile.getText(I18nFile.APPLY));
  btnCancel.setText(RedisClient.i18nFile.getText(I18nFile.CANCEL));
  btnRefresh.setText(RedisClient.i18nFile.getText(I18nFile.REFRESH));
  btnWatch.setText(RedisClient.i18nFile.getText(I18nFile.WATCH));
  super.refreshLangUI();
}

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

@Override
public void refreshLangUI() {
  grpValues.setText(RedisClient.i18nFile.getText(I18nFile.VALUES));
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  btnAdd.setText(RedisClient.i18nFile.getText(I18nFile.ADD));
  btnDelete.setText(RedisClient.i18nFile.getText(I18nFile.DELETE));
  btnRefresh.setText(RedisClient.i18nFile.getText(I18nFile.REFRESH));
  btnWatch.setText(RedisClient.i18nFile.getText(I18nFile.WATCH));
  super.refreshLangUI();
}

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

@Override
public void refreshLangUI() {
  grpValues.setText(RedisClient.i18nFile.getText(I18nFile.VALUES));
  tblclmnNewColumn.setText(RedisClient.i18nFile.getText(I18nFile.VALUE));
  btnInsertHead.setText(RedisClient.i18nFile.getText(I18nFile.INSERTHEAD));
  btnAppendTail.setText(RedisClient.i18nFile.getText(I18nFile.APPENDTAIL));
  btnDeleteHead.setText(RedisClient.i18nFile.getText(I18nFile.DELETEHEAD));
  btnDeleteTail.setText(RedisClient.i18nFile.getText(I18nFile.DELETETAIL));
  btnApply.setText(RedisClient.i18nFile.getText(I18nFile.APPLY));
  btnCancel.setText(RedisClient.i18nFile.getText(I18nFile.CANCEL));
  btnRefresh.setText(RedisClient.i18nFile.getText(I18nFile.REFRESH));
  btnWatch.setText(RedisClient.i18nFile.getText(I18nFile.WATCH));
  super.refreshLangUI();
}

代码示例来源: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.setText(RedisClient.i18nFile.getText(I18nFile.MEMBER));

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

clmnKey.setText(RedisClient.i18nFile.getText(I18nFile.KEY));
clmnKey.setWidth(250);
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: caoxinyu/RedisClient

menuTableServer = initMenuTableServer();
tblclmnName.setText(i18nFile.getText(I18nFile.NAME));
tblclmnType.setText(i18nFile.getText(I18nFile.TYPE));
tblclmnSize.setText(i18nFile.getText(I18nFile.SIZE));

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

wOptionFields.table.getColumn( 0 ).setText(
 BaseMessages.getString( PKG, "JobDialog.TransLogTable.Fields.Enabled" ) );

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

wOptionFields.table.getColumn( 0 ).setText(
 BaseMessages.getString( PKG, "TransDialog.TransLogTable.Fields.Enabled" ) );

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

wOptionFields.table.getColumn( 0 ).setText(
 BaseMessages.getString( PKG, "TransDialog.TransLogTable.Fields.Enabled" ) );

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

wOptionFields.table.getColumn( 0 ).setText(
 BaseMessages.getString( PKG, "TransDialog.TransLogTable.Fields.Enabled" ) );

相关文章