本文整理汇总了Java中com.vaadin.ui.Table.setSizeFull方法的典型用法代码示例。如果您正苦于以下问题:Java Table.setSizeFull方法的具体用法?Java Table.setSizeFull怎么用?Java Table.setSizeFull使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.Table
的用法示例。
在下文中一共展示了Table.setSizeFull方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private Table createTable() {
Table table = new Table();
table.setSizeFull();
table.setPageLength(0);
table.setSelectable(false);
table.setColumnCollapsingAllowed(true);
table.setColumnReorderingAllowed(true);
table.setImmediate(true);
table.setNullSelectionAllowed(false);
table.setColumnHeaderMode(Table.ColumnHeaderMode.HIDDEN);
table.addContainerProperty("Name", String.class, null);
table.addContainerProperty("Value", String.class, null);
// initializing email table with empty values
table.addItem(new Object[] { "Outgoing Mail Server (SMTP): ", "" }, new Integer(1));
table.addItem(new Object[] { "Port: ", "" }, new Integer(2));
table.addItem(new Object[] { "Email Id: ", "" }, new Integer(3));
return table;
}
示例2: createNetworkTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private Table createNetworkTable() {
Table table = new Table();
table.setSizeFull();
table.setPageLength(0);
table.setSelectable(false);
table.setColumnCollapsingAllowed(true);
table.setColumnReorderingAllowed(true);
table.setImmediate(true);
table.setNullSelectionAllowed(false);
table.setColumnHeaderMode(Table.ColumnHeaderMode.HIDDEN);
table.addContainerProperty("Name", String.class, null);
table.addContainerProperty("Value", String.class, null);
// initializing network table with empty values
table.addItem(new Object[] { "IPv4 Address: ", "" }, new Integer(1));
table.addItem(new Object[] { "Netmask:", "" }, new Integer(2));
table.addItem(new Object[] { "Default Gateway: ", "" }, new Integer(3));
table.addItem(new Object[] { "Primary DNS Server: ", "" }, new Integer(4));
table.addItem(new Object[] { "Secondary DNS Server: ", "" }, new Integer(5));
return table;
}
示例3: createNATTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private Table createNATTable() {
Table table = new Table();
table.setSizeFull();
table.setPageLength(0);
table.setSelectable(false);
table.setColumnCollapsingAllowed(true);
table.setColumnReorderingAllowed(true);
table.setImmediate(true);
table.setNullSelectionAllowed(false);
table.setColumnHeaderMode(Table.ColumnHeaderMode.HIDDEN);
table.addContainerProperty("Name", String.class, null);
table.addContainerProperty("Value", String.class, null);
// initializing network table with empty values
table.addItem(new Object[] { "Public IPv4 Address: ", "" }, new Integer(1));
return table;
}
示例4: createComponents
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void createComponents() {
closeBtn = SPUIComponentProvider.getButton(UIComponentIdProvider.UPLOAD_ARTIFACT_RESULT_CLOSE,
SPUILabelDefinitions.CLOSE, SPUILabelDefinitions.CLOSE, ValoTheme.BUTTON_PRIMARY, false, null,
SPUIButtonStyleTiny.class);
closeBtn.addClickListener(this);
uploadResultTable = new Table();
uploadResultTable.addStyleName("artifact-table");
uploadResultTable.setSizeFull();
uploadResultTable.setImmediate(true);
uploadResultTable.setId(UIComponentIdProvider.UPLOAD_RESULT_TABLE);
uploadResultTable.addStyleName(ValoTheme.TABLE_BORDERLESS);
uploadResultTable.addStyleName(ValoTheme.TABLE_SMALL);
uploadResultTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
uploadResultTable.addStyleName("accordion-tab-table-style");
populateUploadResultTable();
}
示例5: createRequiredComponents
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void createRequiredComponents() {
uploadBtn = SPUIComponentProvider.getButton(UIComponentIdProvider.UPLOAD_BUTTON, SPUILabelDefinitions.SUBMIT,
SPUILabelDefinitions.SUBMIT, ValoTheme.BUTTON_PRIMARY, false, null, SPUIButtonStyleTiny.class);
uploadBtn.addClickListener(this);
cancelBtn = SPUIComponentProvider.getButton(UIComponentIdProvider.UPLOAD_DISCARD_DETAILS_BUTTON,
SPUILabelDefinitions.DISCARD, SPUILabelDefinitions.DISCARD, null, false, null,
SPUIButtonStyleTiny.class);
cancelBtn.addClickListener(this);
uploadDetailsTable = new Table();
uploadDetailsTable.addStyleName("artifact-table");
uploadDetailsTable.setSizeFull();
uploadDetailsTable.setId(UIComponentIdProvider.UPLOAD_ARTIFACT_DETAILS_TABLE);
uploadDetailsTable.addStyleName(ValoTheme.TABLE_BORDERLESS);
uploadDetailsTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
uploadDetailsTable.addStyleName(ValoTheme.TABLE_SMALL);
setTableContainer();
populateUploadDetailsTable();
}
示例6: buildSelectedTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void buildSelectedTable() {
selectedTable = new Table();
selectedTable.setId(SPUIDefinitions.TWIN_TABLE_SELECTED_ID);
selectedTable.setSelectable(true);
selectedTable.setMultiSelect(true);
selectedTable.setSortEnabled(false);
selectedTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
selectedTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
selectedTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
selectedTable.addStyleName(ValoTheme.TABLE_SMALL);
selectedTable.addStyleName("dist_type_twin-table");
selectedTable.setSizeFull();
createSelectedTableContainer();
selectedTable.setContainerDataSource(selectedTableContainer);
addTooltTipToSelectedTable();
selectedTable.setImmediate(true);
selectedTable.setVisibleColumns(DIST_TYPE_NAME, DIST_TYPE_MANDATORY);
selectedTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.selected"), STAR);
selectedTable.setColumnExpandRatio(DIST_TYPE_NAME, 0.75F);
selectedTable.setColumnExpandRatio(DIST_TYPE_MANDATORY, 0.25F);
selectedTable.setRequired(true);
}
示例7: createTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private Table createTable() {
Table table = new Table();
table.setSizeFull();
table.setPageLength(0);
table.setSelectable(false);
table.setColumnCollapsingAllowed(true);
table.setColumnReorderingAllowed(true);
table.setImmediate(true);
table.setNullSelectionAllowed(false);
table.addContainerProperty("Name", String.class, null);
table.addContainerProperty("Status", String.class, null);
table.setColumnHeaderMode(Table.ColumnHeaderMode.HIDDEN);
return table;
}
示例8: initMessageTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void initMessageTable() {
messageData = new IndexedContainer();
messageData.addContainerProperty("Message", String.class, "");
messageTable = new Table("Server messages");
messageTable.setSizeFull();
messageTable.setContainerDataSource(messageData);
messageTable.setImmediate(true);
}
示例9: createArtifactDetailsTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private static Table createArtifactDetailsTable() {
final Table detailsTable = new Table();
detailsTable.addStyleName("sp-table");
detailsTable.setImmediate(true);
detailsTable.setSizeFull();
detailsTable.setId(UIComponentIdProvider.UPLOAD_ARTIFACT_DETAILS_TABLE);
detailsTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
detailsTable.addStyleName(ValoTheme.TABLE_SMALL);
return detailsTable;
}
示例10: buildSourceTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
/**
*
*/
private void buildSourceTable() {
sourceTable = new Table();
sourceTable.setId(SPUIDefinitions.TWIN_TABLE_SOURCE_ID);
sourceTable.setSelectable(true);
sourceTable.setMultiSelect(true);
sourceTable.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
sourceTable.addStyleName(ValoTheme.TABLE_NO_STRIPES);
sourceTable.addStyleName(ValoTheme.TABLE_NO_VERTICAL_LINES);
sourceTable.addStyleName(ValoTheme.TABLE_SMALL);
sourceTable.setImmediate(true);
sourceTable.setSizeFull();
sourceTable.addStyleName("dist_type_twin-table");
sourceTable.setSortEnabled(false);
sourceTableContainer = new IndexedContainer();
sourceTableContainer.addContainerProperty(DIST_TYPE_NAME, String.class, "");
sourceTableContainer.addContainerProperty(DIST_TYPE_DESCRIPTION, String.class, "");
sourceTable.setContainerDataSource(sourceTableContainer);
sourceTable.setVisibleColumns(DIST_TYPE_NAME);
sourceTable.setColumnHeaders(i18n.getMessage("header.dist.twintable.available"));
sourceTable.setColumnExpandRatio(DIST_TYPE_NAME, 1.0F);
getSourceTableData();
addTooltip();
sourceTable.select(sourceTable.firstItemId());
}
示例11: createTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void createTable() {
table = new Table();
table.setSizeFull();
table.setPageLength(SPUIDefinitions.ACCORDION_TAB_DETAILS_PAGE_LENGTH);
// Build Style
final StringBuilder style = new StringBuilder(ValoTheme.TABLE_COMPACT);
style.append(' ');
style.append(ValoTheme.TABLE_SMALL);
style.append(' ');
style.append(ValoTheme.TABLE_NO_VERTICAL_LINES);
// Set style
table.addStyleName(style.toString());
table.addStyleName("accordion-tab-table-style");
table.setImmediate(true);
}
示例12: createList
import com.vaadin.ui.Table; //导入方法依赖的package包/类
@Override
protected Table createList() {
final Table processDefinitionTable = new Table();
processDefinitionTable.addStyleName(ExplorerLayout.STYLE_PROCESS_DEFINITION_LIST);
// Set non-editable, selectable and full-size
processDefinitionTable.setEditable(false);
processDefinitionTable.setImmediate(true);
processDefinitionTable.setSelectable(true);
processDefinitionTable.setNullSelectionAllowed(false);
processDefinitionTable.setSortDisabled(true);
processDefinitionTable.setSizeFull();
LazyLoadingQuery lazyLoadingQuery = new ProcessDefinitionListQuery(repositoryService);
this.processDefinitionContainer = new LazyLoadingContainer(lazyLoadingQuery, 10);
processDefinitionTable.setContainerDataSource(processDefinitionContainer);
// Listener to change right panel when clicked on a task
processDefinitionTable.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
Item item = processDefinitionTable.getItem(event.getProperty().getValue());
String processDefinitionId = (String) item.getItemProperty("id").getValue();
showProcessDefinitionDetail(processDefinitionId);
}
});
// Create columns
processDefinitionTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.PROCESS_22));
processDefinitionTable.setColumnWidth("icon", 22);
processDefinitionTable.addContainerProperty("name", String.class, null);
processDefinitionTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
return processDefinitionTable;
}
示例13: buildTable
import com.vaadin.ui.Table; //导入方法依赖的package包/类
private Table buildTable() {
final Table table = new Table() {
@Override
protected String formatPropertyValue(final Object rowId,
final Object colId, final Property<?> property) {
String result = super.formatPropertyValue(rowId, colId,
property);
if (colId.equals("time")) {
result = DATEFORMAT.format(((Date) property.getValue()));
} else if (colId.equals("price")) {
if (property != null && property.getValue() != null) {
return "$" + DECIMALFORMAT.format(property.getValue());
} else {
return "";
}
}
return result;
}
};
table.setSizeFull();
table.addStyleName(ValoTheme.TABLE_BORDERLESS);
table.addStyleName(ValoTheme.TABLE_NO_HORIZONTAL_LINES);
table.addStyleName(ValoTheme.TABLE_COMPACT);
table.setSelectable(true);
table.setColumnCollapsingAllowed(true);
table.setColumnCollapsible("time", false);
table.setColumnCollapsible("price", false);
table.setColumnReorderingAllowed(true);
table.setContainerDataSource(new TempTransactionsContainer(DashboardUI
.getDataProvider().getRecentTransactions(200)));
table.setSortContainerPropertyId("time");
table.setSortAscending(false);
table.setColumnAlignment("seats", Align.RIGHT);
table.setColumnAlignment("price", Align.RIGHT);
table.setVisibleColumns("time", "country", "city", "theater", "room",
"title", "seats", "price");
table.setColumnHeaders("Time", "Country", "City", "Theater", "Room",
"Title", "Seats", "Price");
table.setFooterVisible(true);
table.setColumnFooter("time", "Total");
table.setColumnFooter(
"price",
"$"
+ DECIMALFORMAT.format(DashboardUI.getDataProvider()
.getTotalSum()));
// Allow dragging items to the reports menu
table.setDragMode(TableDragMode.MULTIROW);
table.setMultiSelect(true);
table.addActionHandler(new TransactionsActionHandler());
table.addValueChangeListener(new ValueChangeListener() {
@Override
public void valueChange(final ValueChangeEvent event) {
if (table.getValue() instanceof Set) {
Set<Object> val = (Set<Object>) table.getValue();
createReport.setEnabled(val.size() > 0);
}
}
});
table.setImmediate(true);
return table;
}
示例14: createList
import com.vaadin.ui.Table; //导入方法依赖的package包/类
protected Table createList() {
groupTable = new Table();
groupTable.setEditable(false);
groupTable.setImmediate(true);
groupTable.setSelectable(true);
groupTable.setNullSelectionAllowed(false);
groupTable.setSortDisabled(true);
groupTable.setSizeFull();
groupListQuery = new GroupListQuery();
groupListContainer = new LazyLoadingContainer(groupListQuery, 20);
groupTable.setContainerDataSource(groupListContainer);
// Column headers
groupTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.GROUP_22));
groupTable.setColumnWidth("icon", 22);
groupTable.addContainerProperty("name", String.class, null);
groupTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
// Listener to change right panel when clicked on a user
groupTable.addListener(new Property.ValueChangeListener() {
private static final long serialVersionUID = 1L;
public void valueChange(ValueChangeEvent event) {
Item item = groupTable.getItem(event.getProperty().getValue()); // the value of the property is the itemId of the table entry
if(item != null) {
String groupId = (String) item.getItemProperty("id").getValue();
setDetailComponent(new GroupDetailPanel(GroupPage.this, groupId));
// Update URL
ExplorerApp.get().setCurrentUriFragment(
new UriFragment(GroupNavigator.GROUP_URI_PART, groupId));
} else {
// Nothing is selected
setDetailComponent(null);
ExplorerApp.get().setCurrentUriFragment(new UriFragment(GroupNavigator.GROUP_URI_PART, groupId));
}
}
});
return groupTable;
}