當前位置: 首頁>>代碼示例>>Java>>正文


Java Table.setHeight方法代碼示例

本文整理匯總了Java中com.vaadin.ui.Table.setHeight方法的典型用法代碼示例。如果您正苦於以下問題:Java Table.setHeight方法的具體用法?Java Table.setHeight怎麽用?Java Table.setHeight使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在com.vaadin.ui.Table的用法示例。


在下文中一共展示了Table.setHeight方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: initMembersTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initMembersTable() {
  LazyLoadingQuery query = new GroupMembersQuery(group.getId(), this);
  if (query.size() > 0) {
    membersTable = new Table();
    membersTable.setWidth(100, UNITS_PERCENTAGE);
    membersTable.setHeight(400, UNITS_PIXELS);
    
    membersTable.setEditable(false);
    membersTable.setSelectable(false);
    membersTable.setSortDisabled(false);
    
    LazyLoadingContainer container = new LazyLoadingContainer(query, 10);
    membersTable.setContainerDataSource(container);
    
    membersTable.addContainerProperty("id", Button.class, null);
    membersTable.addContainerProperty("firstName", String.class, null);
    membersTable.addContainerProperty("lastName", String.class, null);
    membersTable.addContainerProperty("email", String.class, null);
    membersTable.addContainerProperty("actions", Component.class, null);
    
    membersLayout.addComponent(membersTable);
  } else {
    noMembersTable = new Label(i18nManager.getMessage(Messages.GROUP_NO_MEMBERS));
    membersLayout.addComponent(noMembersTable);
  }
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:27,代碼來源:GroupDetailPanel.java

示例2: initMatchingUsersTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initMatchingUsersTable() {
 matchingUsersTable = new Table();
 matchingUsersTable.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
 matchingUsersTable.setSelectable(true);
 matchingUsersTable.setEditable(false);
 matchingUsersTable.setImmediate(true);
 matchingUsersTable.setNullSelectionAllowed(false);
 matchingUsersTable.setSortDisabled(true);
 
 if (multiSelect) {
   matchingUsersTable.setMultiSelect(true);
 }
 
 matchingUsersTable.addGeneratedColumn("icon", new ThemeImageColumnGenerator(Images.USER_16));
 matchingUsersTable.setColumnWidth("icon", 16);
 matchingUsersTable.addContainerProperty("userName", String.class, null);

 matchingUsersTable.setWidth(300, UNITS_PIXELS);
 matchingUsersTable.setHeight(200, UNITS_PIXELS);
 userSelectionLayout.addComponent(matchingUsersTable);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:22,代碼來源:SelectUsersPopupWindow.java

示例3: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100%");
	mainLayout.setHeight("100%");
	mainLayout.setMargin(false);

	// top-level component properties
	setWidth("100.0%");
	setHeight("100.0%");

	// users
	users = new Table();
	users.setImmediate(false);
	users.setWidth("100.0%");
	users.setHeight("100%");
	mainLayout.addComponent(users);

	return mainLayout;
}
 
開發者ID:dnebinger,項目名稱:vaadin-sample-portlet,代碼行數:23,代碼來源:UserListComponent.java

示例4: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100%");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(false);
	
	// top-level component properties
	setWidth("100.0%");
	setHeight("-1px");
	
	// horizontalLayoutToolbar
	horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
	mainLayout.addComponent(horizontalLayoutToolbar);
	
	// tableUsers
	tableUsers = new Table();
	tableUsers.setImmediate(false);
	tableUsers.setWidth("100.0%");
	tableUsers.setHeight("-1px");
	mainLayout.addComponent(tableUsers);
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:27,代碼來源:UserManagement.java

示例5: initGroupTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initGroupTable() {
  groupTable = new Table();
  groupTable.setNullSelectionAllowed(false);
  groupTable.setSelectable(true);
  groupTable.setMultiSelect(true);
  groupTable.setSortDisabled(true);
  groupTable.setWidth(460, UNITS_PIXELS);
  groupTable.setHeight(275, UNITS_PIXELS);
  addComponent(groupTable);
  
  GroupSelectionQuery query = new GroupSelectionQuery(identityService, userId);
  LazyLoadingContainer container = new LazyLoadingContainer(query, 10);
  groupTable.setContainerDataSource(container);
  
  groupTable.addContainerProperty("id", String.class, null);
  groupTable.addContainerProperty("name", String.class, null);
  groupTable.addContainerProperty("type", String.class, null);
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:19,代碼來源:GroupSelectionPopupWindow.java

示例6: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// table
	table = new Table();
	table.setCaption("PIP Configurations");
	table.setImmediate(false);
	table.setWidth("-1px");
	table.setHeight("-1px");
	mainLayout.addComponent(table);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(false);
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	mainLayout.addComponent(buttonSave);
	mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:34,代碼來源:SelectPIPConfigurationWindow.java

示例7: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// tableFunctions
	tableFunctions = new Table();
	tableFunctions.setCaption("Function");
	tableFunctions.setImmediate(true);
	tableFunctions
			.setDescription("Select a function for matching the attribute.");
	tableFunctions.setWidth("100.0%");
	tableFunctions.setHeight("-1px");
	tableFunctions.setInvalidAllowed(false);
	tableFunctions.setRequired(true);
	mainLayout.addComponent(tableFunctions);
	mainLayout.setExpandRatio(tableFunctions, 1.0f);
	
	// buttonSave
	buttonSave = new Button();
	buttonSave.setCaption("Save");
	buttonSave.setImmediate(true);
	buttonSave.setWidth("-1px");
	buttonSave.setHeight("-1px");
	mainLayout.addComponent(buttonSave);
	mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:39,代碼來源:MatchEditorWindow.java

示例8: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// horizontalLayout_1
	horizontalLayout_1 = buildHorizontalLayout_1();
	mainLayout.addComponent(horizontalLayout_1);
	
	// tableFunction
	tableFunction = new Table();
	tableFunction.setCaption("Select A Function");
	tableFunction.setImmediate(false);
	tableFunction.setWidth("100.0%");
	tableFunction.setHeight("-1px");
	tableFunction.setInvalidAllowed(false);
	tableFunction.setRequired(true);
	mainLayout.addComponent(tableFunction);
	mainLayout.setExpandRatio(tableFunction, 1.0f);
	
	// buttonSelect
	buttonSelect = new Button();
	buttonSelect.setCaption("Select and Continue");
	buttonSelect.setImmediate(true);
	buttonSelect.setWidth("-1px");
	buttonSelect.setHeight("-1px");
	mainLayout.addComponent(buttonSelect);
	mainLayout.setComponentAlignment(buttonSelect, new Alignment(48));
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:41,代碼來源:ApplyEditorWindow.java

示例9: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100.0%");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// table
	table = new Table();
	table.setCaption("Status");
	table.setImmediate(false);
	table.setWidth("100.0%");
	table.setHeight("-1px");
	mainLayout.addComponent(table);
	
	// buttonOK
	buttonOK = new Button();
	buttonOK.setCaption("Ok");
	buttonOK.setImmediate(true);
	buttonOK.setWidth("-1px");
	buttonOK.setHeight("-1px");
	mainLayout.addComponent(buttonOK);
	mainLayout.setComponentAlignment(buttonOK, new Alignment(48));
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:34,代碼來源:PDPStatusWindow.java

示例10: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(false);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// tableExpressions
	tableExpressions = new Table();
	tableExpressions.setCaption("Expressions");
	tableExpressions.setImmediate(false);
	tableExpressions
			.setDescription("The list of expressions for the obligation/advice object.");
	tableExpressions.setWidth("-1px");
	tableExpressions.setHeight("-1px");
	mainLayout.addComponent(tableExpressions);
	
	// horizontalLayout_1
	horizontalLayout_1 = buildHorizontalLayout_1();
	mainLayout.addComponent(horizontalLayout_1);
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:30,代碼來源:OaExpressionsEditorComponent.java

示例11: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("-1px");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// tableEnumerations
	tableEnumerations = new Table();
	tableEnumerations.setCaption("Enumeration Values");
	tableEnumerations.setImmediate(true);
	tableEnumerations
			.setDescription("Enter possible values for the attribute.");
	tableEnumerations.setWidth("100.0%");
	tableEnumerations.setHeight("-1px");
	tableEnumerations.setInvalidAllowed(false);
	mainLayout.addComponent(tableEnumerations);
	mainLayout.setExpandRatio(tableEnumerations, 1.0f);
	
	// horizontalLayout_1
	horizontalLayout_1 = buildHorizontalLayout_1();
	mainLayout.addComponent(horizontalLayout_1);
	mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:34,代碼來源:EnumerationEditorComponent.java

示例12: buildHorizontalLayout_1

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
	// common part: create layout
	horizontalLayout_1 = new HorizontalLayout();
	horizontalLayout_1.setImmediate(false);
	horizontalLayout_1.setWidth("-1px");
	horizontalLayout_1.setHeight("-1px");
	horizontalLayout_1.setMargin(false);
	horizontalLayout_1.setSpacing(true);
	
	// tableCategory
	tableCategory = new Table();
	tableCategory.setCaption("Choose Category");
	tableCategory.setImmediate(false);
	tableCategory.setWidth("-1px");
	tableCategory.setHeight("-1px");
	tableCategory.setInvalidAllowed(false);
	tableCategory.setRequired(true);
	horizontalLayout_1.addComponent(tableCategory);
	
	// tableDatatype
	tableDatatype = new Table();
	tableDatatype.setCaption("Choose Data Type");
	tableDatatype.setImmediate(false);
	tableDatatype.setWidth("-1px");
	tableDatatype.setHeight("-1px");
	tableDatatype.setInvalidAllowed(false);
	tableDatatype.setRequired(true);
	horizontalLayout_1.addComponent(tableDatatype);
	
	return horizontalLayout_1;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:33,代碼來源:AttributeSimpleCreatorComponent.java

示例13: buildHorizontalLayout_2

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_2() {
	// common part: create layout
	horizontalLayout_2 = new HorizontalLayout();
	horizontalLayout_2.setImmediate(false);
	horizontalLayout_2.setWidth("-1px");
	horizontalLayout_2.setHeight("-1px");
	horizontalLayout_2.setMargin(false);
	horizontalLayout_2.setSpacing(true);
	
	// tableAttributes
	tableAttributes = new Table();
	tableAttributes.setCaption("Standard Attributes");
	tableAttributes.setImmediate(false);
	tableAttributes.setWidth("-1px");
	tableAttributes.setHeight("-1px");
	tableAttributes.setInvalidAllowed(false);
	tableAttributes.setRequired(true);
	horizontalLayout_2.addComponent(tableAttributes);
	
	// tableDatatypes
	tableDatatypes = new Table();
	tableDatatypes.setCaption("Standard Data Types");
	tableDatatypes.setImmediate(false);
	tableDatatypes.setWidth("-1px");
	tableDatatypes.setHeight("-1px");
	tableDatatypes.setInvalidAllowed(false);
	tableDatatypes.setRequired(true);
	horizontalLayout_2.addComponent(tableDatatypes);
	
	return horizontalLayout_2;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:33,代碼來源:AttributeStandardSelectorComponent.java

示例14: buildMainLayout

import com.vaadin.ui.Table; //導入方法依賴的package包/類
@AutoGenerated
private VerticalLayout buildMainLayout() {
	// common part: create layout
	mainLayout = new VerticalLayout();
	mainLayout.setImmediate(false);
	mainLayout.setWidth("100%");
	mainLayout.setHeight("-1px");
	mainLayout.setMargin(true);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("100.0%");
	setHeight("-1px");
	
	// horizontalLayoutToolbar
	horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
	mainLayout.addComponent(horizontalLayoutToolbar);
	
	// table
	table = new Table();
	table.setImmediate(true);
	table.setWidth("-1px");
	table.setHeight("-1px");
	mainLayout.addComponent(table);
	
	return mainLayout;
}
 
開發者ID:apache,項目名稱:incubator-openaz,代碼行數:28,代碼來源:ObadviceDictionary.java

示例15: initGroupsTable

import com.vaadin.ui.Table; //導入方法依賴的package包/類
protected void initGroupsTable() {
  groupsForUserQuery = new GroupsForUserQuery(identityService, this, user.getId());
  if (groupsForUserQuery.size() > 0) {
    groupTable = new Table();
    groupTable.setSortDisabled(true);
    groupTable.setHeight(150, UNITS_PIXELS);
    groupTable.setWidth(100, UNITS_PERCENTAGE);
    groupLayout.addComponent(groupTable);
    
    groupContainer = new LazyLoadingContainer(groupsForUserQuery, 10);
    groupTable.setContainerDataSource(groupContainer);
    
    groupTable.addContainerProperty("id", Button.class, null);
    groupTable.setColumnExpandRatio("id", 22);
    groupTable.addContainerProperty("name", String.class, null);
    groupTable.setColumnExpandRatio("name", 45);
    groupTable.addContainerProperty("type", String.class, null);
    groupTable.setColumnExpandRatio("type", 22);
    groupTable.addContainerProperty("actions", Component.class, null);
    groupTable.setColumnExpandRatio("actions", 11);
    groupTable.setColumnAlignment("actions", Table.ALIGN_CENTER);

  } else {
    noGroupsLabel = new Label(i18nManager.getMessage(Messages.USER_NO_GROUPS));
    groupLayout.addComponent(noGroupsLabel);
  }
}
 
開發者ID:logicalhacking,項目名稱:SecureBPMN,代碼行數:28,代碼來源:UserDetailPanel.java


注:本文中的com.vaadin.ui.Table.setHeight方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。