本文整理了Java中org.eclipse.swt.widgets.Table.setLayoutData()
方法的一些代码示例,展示了Table.setLayoutData()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setLayoutData()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:setLayoutData
暂无
代码示例来源:origin: caoxinyu/RedisClient
table.setHeaderVisible(true);;
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 4));
table.addSelectionListener(new SelectionAdapter() {
@Override
代码示例来源:origin: caoxinyu/RedisClient
table.setHeaderVisible(true);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 2, 5));
table.addSelectionListener(new SelectionAdapter() {
@Override
代码示例来源:origin: caoxinyu/RedisClient
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 2));
table.addSelectionListener(new SelectionAdapter() {
@Override
代码示例来源:origin: caoxinyu/RedisClient
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 4));
table.addSelectionListener(new SelectionAdapter() {
@Override
代码示例来源:origin: caoxinyu/RedisClient
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));
table.setHeaderVisible(true);
table.addSelectionListener(new SelectionAdapter() {
代码示例来源:origin: caoxinyu/RedisClient
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 3));
table.setHeaderVisible(true);
table.addSelectionListener(new SelectionAdapter() {
代码示例来源:origin: caoxinyu/RedisClient
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 6));
table.setHeaderVisible(true);
table.addSelectionListener(new SelectionAdapter() {
代码示例来源:origin: caoxinyu/RedisClient
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 3));
table.setHeaderVisible(true);
table.addSelectionListener(new SelectionAdapter() {
代码示例来源:origin: caoxinyu/RedisClient
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 3, 2));
table.addSelectionListener(new SelectionAdapter() {
@Override
代码示例来源: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);
代码示例来源: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: pentaho/pentaho-kettle
fdTable.right = new FormAttachment( 100, 0 );
fdTable.bottom = new FormAttachment( wOK, -Const.MARGIN * 2 );
table.setLayoutData( fdTable );
代码示例来源:origin: caoxinyu/RedisClient
EditListener listener = new EditListener(table, false, true);
table.addListener(SWT.MouseDown, listener);
table.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
代码示例来源:origin: pentaho/pentaho-kettle
fdTable.top = new FormAttachment( 0, 0 );
fdTable.bottom = new FormAttachment( 100, 0 );
table.setLayoutData( fdTable );
代码示例来源:origin: org.eclipse.platform/org.eclipse.debug.ui
@Override
protected StructuredViewer createViewer(Composite parent){
//by default return a checkbox table viewer
Table table = new Table(parent, SWT.BORDER | SWT.SINGLE | SWT.CHECK);
GridData gd = new GridData(GridData.FILL_BOTH);
gd.heightHint = 150;
gd.widthHint = 250;
table.setLayoutData(gd);
return new CheckboxTableViewer(table);
}
代码示例来源:origin: org.eclipse/org.eclipse.jst.j2ee.ui
protected void createTable(Composite parent) {
availableJARsViewer = owner.createAvailableJARsViewer(parent);
GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.FILL_VERTICAL);
availableJARsViewer.getTable().setLayoutData(gd);
availableJarsProvider = new AvailableJarsProvider();
availableJARsViewer.setContentProvider(availableJarsProvider);
availableJARsViewer.setLabelProvider(availableJarsProvider);
addTableListeners();
}
代码示例来源:origin: org.eclipse/org.eclipse.team.ui
private void addProjectSection(Composite composite) {
table = new Table(composite, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
tableViewer = new TableViewer(table);
table.setLayout(new TableLayout());
GridData data = new GridData(GridData.FILL_BOTH);
data.heightHint = 300;
table.setLayoutData(data);
tableViewer.setContentProvider(new ProjectContentProvider());
tableViewer.setLabelProvider(new ExportProjectSetLabelProvider());
}
代码示例来源:origin: net.anwiba.eclipse/net.anwiba.eclipse.project.dependencies
public TableViewer createTable(final Composite parent, final WritableList<IDependencyRelation> descriptions) {
final TableViewer table = new TableViewer(parent, SWT.SINGLE | SWT.H_SCROLL | SWT.V_SCROLL | SWT.FULL_SELECTION);
createColumns(table);
table.getTable().setLayoutData(new GridData(GridData.FILL_BOTH));
table.setContentProvider(new ObservableListContentProvider());
table.setInput(descriptions);
table.setLabelProvider(new TableLabelProvider());
ColumnViewerToolTipSupport.enableFor(table);
return table;
}
}
代码示例来源:origin: org.eclipse.platform/org.eclipse.team.ui
private void addProjectSection(Composite composite) {
table = new Table(composite, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
tableViewer = new TableViewer(table);
table.setLayout(new TableLayout());
GridData data = new GridData(GridData.FILL_BOTH);
data.heightHint = 300;
table.setLayoutData(data);
tableViewer.setContentProvider(new ProjectContentProvider());
tableViewer.setLabelProvider(new ExportProjectSetLabelProvider());
tableViewer.setComparator(new ResourceComparator(ResourceComparator.NAME));
}
内容来源于网络,如有侵权,请联系作者删除!