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

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

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

Table.setLinesVisible介绍

[英]Marks the receiver's lines as visible if the argument is true, and marks it invisible otherwise. Note that some platforms draw grid lines while others may draw alternating row colors.

If one of the receiver's ancestors is not visible or some other condition makes the receiver not visible, marking it visible may not actually cause it to be displayed.
[中]如果参数为true,则将接收方的行标记为可见,否则将其标记为不可见。请注意,一些平台会绘制网格线,而其他平台可能会绘制交替的行颜色。
如果接收者的祖先之一不可见,或者其他一些情况使接收者不可见,那么将其标记为可见实际上可能不会导致其显示。

代码示例

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

table.setLinesVisible(true);
listener = new EditListener(table, true);
table.addListener(SWT.MouseDown, listener);

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

table.setLinesVisible(true);
table.addListener(SWT.MouseDown, new EditListener(table, true));

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

table.setLinesVisible(true);
table.addListener(SWT.MouseDown, new EditListener(table, true));

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

table.setLinesVisible(true);
EditListener listener = new EditListener(table, false, true);
table.addListener(SWT.MouseDown, listener);

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

table.setLinesVisible(true);
table.addListener(SWT.MouseDown, new EditListener(table, false));
pageListener = new PagingListener(table, new SetPage(id, db, key));

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

table.setLinesVisible(true);
table.addListener(SWT.MouseDown, new EditListener(table, false));
editListener = new EditListener(table, true);

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

table.setLinesVisible(true);

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

table.setLinesVisible(true);
table.addListener(SWT.MouseDown, new EditListener(table, true));

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

table.setLinesVisible(true);
table.addListener(SWT.MouseDown, new EditListener(table, true));

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

table.setLinesVisible(true);
table.setHeaderVisible(true);

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

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

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

tbtmServerInformation.setControl(table);
table.setHeaderVisible(true);
table.setLinesVisible(true);
EditListener listener = new EditListener(table, false);
table.addListener(SWT.MouseDown, listener);

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

tbtmServer.setControl(tableServer);
tableServer.setHeaderVisible(true);
tableServer.setLinesVisible(true);
EditListener listener = new EditListener(tableServer, false);
tableServer.addListener(SWT.MouseDown, listener);
  tbtmServerInformation.setControl(table);
  table.setHeaderVisible(true);
  table.setLinesVisible(true);
  EditListener listener1 = new EditListener(table, false);
  table.addListener(SWT.MouseDown, listener1);

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

table.setLinesVisible(true);
EditListener listener = new EditListener(table, false, true);
table.addListener(SWT.MouseDown, listener);

代码示例来源:origin: org.eclipse.platform/org.eclipse.swt.examples

/**
 * Sets the lines visible state of the "Example" widgets.
 */
void setWidgetLinesVisible () {
  table1.setLinesVisible (linesVisibleButton.getSelection ());
}

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

table.setLinesVisible( true );
table.setLinesVisible( true );

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

/**
 * Creates the table control.
 */
void createTable(Composite parent) {
  table = new Table(parent, SWT.H_SCROLL | SWT.V_SCROLL | SWT.MULTI
      | SWT.FULL_SELECTION);
  table.setLinesVisible(true);
  //table.setLayout(new TableLayout());
}

代码示例来源:origin: stackoverflow.com

TableViewer tableViewer = new TableViewer(parent); 

Table table = tableViewer.getTable(); 
table.setHeaderVisible(true);      
table.setLinesVisible(true);`

for (int i = 0; i < COLUMN_NAMES.length; i++) {
  TableColumn tableColumn = new TableColumn(table, SWT.LEFT);
  tableColumn.setText(COLUMN_NAMES[i]);
  tableColumn.setWidth(COLUMN_WIDTHS[i]);
}

tableViewer.setContentProvider(new ModelContentProvider());
tableViewer.setLabelProvider(new ModelLabelProvider());
tableViewer.setInput(models);

相关文章

Table类方法