本文整理了Java中org.eclipse.swt.widgets.Table.setVisible()
方法的一些代码示例,展示了Table.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Table.setVisible()
方法的具体详情如下:
包路径:org.eclipse.swt.widgets.Table
类名称:Table
方法名:setVisible
暂无
代码示例来源:origin: apache/axis2-java
public void clearPreviousData(){
this.classNameTextBox.setText("");
this.classNameTextBox.setEnabled(true);
//set service name
this.serviceNameTextBox.setText("");
if (table.isVisible()){
table.setVisible(false);
}
loadButton.setEnabled(true);
}
private void updateDirtyStatus(boolean status){
代码示例来源:origin: apache/axis2-java
items[i].setChecked(true);//check them all by default
table.setVisible(true);
代码示例来源:origin: apache/axis2-java
items[i].setChecked(true);//check them all by default
table.setVisible(true);
代码示例来源:origin: apache/axis2-java
declareColumn(table,100,"Parameter Count");
table.setVisible(false);
代码示例来源:origin: apache/axis2-java
declareColumn(table,100,ServiceArchiver.getResourceString("page3.table.col3"));
table.setVisible(false);
代码示例来源:origin: org.eclipse.mylyn.commons/workbench
private void setHistoryTableVisible(boolean isVisible) {
GridData layoutData = (GridData) historyTable.getTable().getLayoutData();
historyTable.getTable().setVisible(isVisible);
boolean wasVisible = !layoutData.exclude;
layoutData.exclude = !isVisible;
if (wasVisible != isVisible || isVisible) {
getShell().pack();
}
initializeBounds();
}
代码示例来源:origin: openaudible/openaudible
table.setVisible(true);
代码示例来源:origin: inspectIT/inspectIT
/**
* Clears the look of the forms body.
*/
protected void clearFormBody() {
if ((messageComposite != null) && !messageComposite.isDisposed()) {
messageComposite.dispose();
}
tableViewer.setInput(Collections.emptyList());
tableViewer.getTable().setHeaderVisible(false);
tableViewer.getTable().setLinesVisible(false);
tableViewer.getTable().setVisible(false);
tableViewer.getTable().setLayoutData(new GridData(SWT.LEFT, SWT.TOP, false, false));
for (TableColumn tableColumn : tableViewer.getTable().getColumns()) {
tableColumn.dispose();
}
}
代码示例来源:origin: openaudible/openaudible
public void changeTableLayout(int i) {
table.setVisible(false);
table.removeAll();
TableColumn tc[] = table.getColumns();
for (TableColumn aTc : tc) {
aTc.dispose();
}
numColumns = i;
for (int x = 0; x < numColumns; x++) {
TableColumn column = new TableColumn(table, SWT.LEFT);
String n = getColumnName(x);
Image r = getColumnImage(x);
column.setImage(r);
column.setText(n);
column.setWidth(getColumnWidth(x));
}
setColumWidths();
// populateData(); // TODO: See about removing this.
ColumnListener columnListener = getColumnListener();
for (int c = 0; c < table.getColumnCount(); c++) {
table.getColumn(c).addSelectionListener(columnListener);
}
table.setVisible(true);
}
代码示例来源:origin: inspectIT/inspectIT
tableViewer.getTable().setHeaderVisible(true);
tableViewer.getTable().setLinesVisible(true);
tableViewer.getTable().setVisible(true);
tableViewer.getTable().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
代码示例来源:origin: BiglySoftware/BiglyBT
libraryTable.setVisible(false);
compEmpty.setVisible(true);
代码示例来源:origin: inspectIT/inspectIT
/**
* Updates the table input and refreshes the table. Sub-classes can extend if needed.
*/
protected void updateFormBody() {
clearFormBody();
if (null == displayedCmrRepositoryDefinition) {
displayMessage("No CMR repository present. Please add the CMR repository via 'Add CMR repository' action.", Display.getDefault().getSystemImage(SWT.ICON_INFORMATION));
} else if (displayedCmrRepositoryDefinition.getOnlineStatus() == OnlineStatus.OFFLINE) {
displayMessage("Selected CMR repository is currently unavailable.", Display.getDefault().getSystemImage(SWT.ICON_WARNING));
} else {
List<?> inputList = getTableInput();
if ((null == inputList) || CollectionUtils.isEmpty(inputList)) {
displayMessage("No items exists on selected CMR repository.", Display.getDefault().getSystemImage(SWT.ICON_INFORMATION));
} else {
createTableColumns(tableViewer);
tableViewer.setLabelProvider(getLabelProvider());
ViewerComparator comparator = getViewerComparator();
if (null != comparator) {
tableViewer.setComparator(getViewerComparator());
}
tableViewer.getTable().setHeaderVisible(true);
tableViewer.getTable().setLinesVisible(true);
tableViewer.getTable().setVisible(true);
tableViewer.getTable().setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
tableViewer.setInput(inputList);
}
}
mainForm.getBody().layout();
}
内容来源于网络,如有侵权,请联系作者删除!