本文整理了Java中org.eclipse.swt.widgets.Table.<init>()
方法的一些代码示例,展示了Table.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.<init>()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:<init>
[英]Constructs a new instance of this class given its parent and a style value describing its behavior and appearance.
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.
[中]根据该类的父类和描述其行为和外观的样式值,构造该类的新实例。
样式值可以是类SWT
中定义的样式常量之一,该类适用于该类的实例,或者必须通过位或组合(即使用int
“|”运算符)两个或多个SWT
样式常量来构建。类描述列出了适用于该类的样式常量。样式位也继承自超类。
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.VIRTUAL);
table.setHeaderVisible(true);
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
table.setHeaderVisible(true);;
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
table.setHeaderVisible(true);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 2));
代码示例来源:origin: caoxinyu/RedisClient
message.setBounds(0, 0, 73, 21);
final Table table = new Table(sashForm_2, SWT.BORDER | SWT.FULL_SELECTION);
table.setHeaderVisible(true);
table.setLinesVisible(true);
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI | SWT.VIRTUAL);
table.setHeaderVisible(true);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 4));
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION
| SWT.MULTI);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION
| SWT.MULTI | SWT.VIRTUAL);;
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 3));
table.setHeaderVisible(true);
代码示例来源:origin: caoxinyu/RedisClient
grpValues.setLayout(new GridLayout(4, false));
table = new Table(grpValues, SWT.BORDER | SWT.FULL_SELECTION
| SWT.MULTI);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 3));
代码示例来源:origin: caoxinyu/RedisClient
grpFavorites.setLayout(new GridLayout(4, false));
table = new Table(grpFavorites, SWT.BORDER | SWT.FULL_SELECTION | SWT.MULTI);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 2));
table.addSelectionListener(new SelectionAdapter() {
代码示例来源: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
withScore = strs[strs.length-1].equalsIgnoreCase("WITHSCORES");
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);
代码示例来源:origin: caoxinyu/RedisClient
String[] strs = tab.split("\r\n");
tbtmServerInformation.setText(strs[0]);
Table table = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);
tbtmServerInformation.setControl(table);
table.setHeaderVisible(true);
代码示例来源: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.setText(RedisClient.i18nFile.getText(I18nFile.GENERAL));
Table tableServer = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);
tbtmServer.setControl(tableServer);
tableServer.setHeaderVisible(true);
TabItem tbtmServerInformation = new TabItem(tabFolder, SWT.NONE);
tbtmServerInformation.setText(entry.getKey());
Table table = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION);
tbtmServerInformation.setControl(table);
table.setHeaderVisible(true);
代码示例来源:origin: pentaho/pentaho-kettle
toolbarControl.setParent( shell );
table = new Table( shell, SWT.FULL_SELECTION | SWT.CHECK | SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL | SWT.MULTI );
props.setLook( table );
table.setHeaderVisible( true );
代码示例来源:origin: caoxinyu/RedisClient
tbtmSubItem.setText(subChannel + " " + RedisClient.i18nFile.getText(I18nFile.CHANNEL));
final Table table = new Table(composite, SWT.BORDER | SWT.FULL_SELECTION);
table.setHeaderVisible(true);
table.setLinesVisible(true);
代码示例来源:origin: caoxinyu/RedisClient
private void initTable(CTabFolder tabFolder) {
table = new Table(tabFolder, SWT.BORDER | SWT.FULL_SELECTION
| SWT.MULTI);
mainTabItem.setControl(table);
代码示例来源:origin: pentaho/pentaho-kettle
table = new Table( this, style | SWT.MULTI );
props.setLook( table, Props.WIDGET_STYLE_TABLE );
table.setLinesVisible( true );
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
private void createViewer(Composite composite) {
if (isSupportsChecking())
viewer = CheckboxTableViewer.newCheckList(composite, getViewerStyle());
else
viewer = new TableViewer(new Table(composite, getViewerStyle()));
}
内容来源于网络,如有侵权,请联系作者删除!