当前位置: 首页>>代码示例>>Java>>正文


Java Table.setWidth方法代码示例

本文整理汇总了Java中com.vaadin.ui.Table.setWidth方法的典型用法代码示例。如果您正苦于以下问题:Java Table.setWidth方法的具体用法?Java Table.setWidth怎么用?Java Table.setWidth使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.vaadin.ui.Table的用法示例。


在下文中一共展示了Table.setWidth方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: generateUi

import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void generateUi() {
	logger.debug("GenerateUi aufgerufen");
	headerLabel = new Label("Direkte Eingabe der Cash-Flows (in EUR)");
	gap = new Label();
	inputTable = new Table();
	expandingGap = new Label();

	headerLabel.setStyleName("periodHeaderLabel");
	gap.setHeight("15px");
	inputTable.setWidth(100, UNITS_PERCENTAGE);
	inputTable.setStyleName("fcfTable");
	inputTable.setPageLength(3);
	expandingGap.setHeight(100, UNITS_PERCENTAGE);

	addComponent(headerLabel);
	addComponent(gap);
	addComponent(inputTable);
	addComponent(expandingGap);

	setExpandRatio(expandingGap, 1.0f);

}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:23,代码来源:DirektViewImpl.java

示例2: 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

示例3: initRelatedContentTable

import com.vaadin.ui.Table; //导入方法依赖的package包/类
protected Table initRelatedContentTable() {
  Table table = new Table();
  table.setWidth(100, UNITS_PERCENTAGE);
  table.addStyleName(ExplorerLayout.STYLE_RELATED_CONTENT_LIST);
  
  // Invisible by default, only shown when attachments are present
  table.setVisible(false);
  table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);

  table.addContainerProperty("type", Embedded.class, null);
  table.setColumnWidth("type", 16);
  table.addContainerProperty("name", Component.class, null);
  
  relatedContentLayout.addComponent(table);
  return table;
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:17,代码来源:HistoricTaskDetailPanel.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("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

示例5: 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

示例6: generateUi

import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void generateUi() {
			logger.debug("GenerateUi aufgerufen");
			headerLabel = new Label("Eingabe der Werte zur Cash-Flow-Berechnung (in EUR)");
			headerLabel2 = new Label("Eingabe des Fremdkapitals (in EUR)");
			gap = new Label();
			inputTable = new Table();
			gap2 = new Label();
			gap3 = new Label();
			capitalStockInput = new Table();
			expandingGap = new Label();

			headerLabel.setStyleName("periodHeaderLabel");
			headerLabel2.setStyleName("periodHeaderLabel");
			gap.setHeight("15px");
			gap2.setHeight("15px");
			gap3.setHeight("15px");
			inputTable.setWidth(100, UNITS_PERCENTAGE);
			inputTable.setStyleName("fcfTable");
			inputTable.setPageLength(15);
			capitalStockInput.setWidth(100, UNITS_PERCENTAGE);
			capitalStockInput.setStyleName("fcfTable");
			capitalStockInput.setPageLength(1);
			expandingGap.setHeight(100, UNITS_PERCENTAGE);

			addComponent(headerLabel);
			addComponent(gap);
			addComponent(inputTable);
			addComponent(gap2);
			addComponent(headerLabel2);
			addComponent(gap3);
			addComponent(capitalStockInput);
//			addComponent(expandingGap);

//			setExpandRatio(expandingGap, 1.0f);
			
		}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:37,代码来源:GesamtkostenVerfahrenViewImpl.java

示例7: generateUi

import com.vaadin.ui.Table; //导入方法依赖的package包/类
private void generateUi() {
			logger.debug("GenerateUi aufgerufen");
			headerLabel = new Label("Eingabe der Werte zur Cash-Flow-Berechnung (in EUR)");
			headerLabel2 = new Label("Eingabe des Fremdkapitals (in EUR)");
			gap = new Label();
			inputTable = new Table();
			gap2 = new Label();
			gap3 = new Label();
			capitalStockInput = new Table();
			expandingGap = new Label();

			headerLabel.setStyleName("periodHeaderLabel");
			headerLabel2.setStyleName("periodHeaderLabel");
			gap.setHeight("15px");
			gap2.setHeight("15px");
			gap3.setHeight("15px");
			inputTable.setWidth(100, UNITS_PERCENTAGE);
			inputTable.setStyleName("fcfTable");
			inputTable.setPageLength(13);
			capitalStockInput.setWidth(100, UNITS_PERCENTAGE);
			capitalStockInput.setStyleName("fcfTable");
			capitalStockInput.setPageLength(1);
			expandingGap.setHeight(100, UNITS_PERCENTAGE);

			addComponent(headerLabel);
			addComponent(gap);
			addComponent(inputTable);
			addComponent(gap2);
			addComponent(headerLabel2);
			addComponent(gap3);
			addComponent(capitalStockInput);
//			addComponent(expandingGap);
//
//			setExpandRatio(expandingGap, 1.0f);
			
		}
 
开发者ID:DHBW-Karlsruhe,项目名称:businesshorizon2,代码行数:37,代码来源:UmsatzkostenVerfahrenViewImpl.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");
	
	// 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

示例9: 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

示例10: addTableData

import com.vaadin.ui.Table; //导入方法依赖的package包/类
protected void addTableData() {
  LazyLoadingQuery lazyLoadingQuery = new TableDataQuery(tableName, managementService);
  LazyLoadingContainer lazyLoadingContainer = new LazyLoadingContainer(lazyLoadingQuery, 10);
  
  if (lazyLoadingContainer.size() > 0) {
    
    Table data = new Table();
    data.setContainerDataSource(lazyLoadingContainer);
    data.setEditable(false);
    data.setSelectable(true);
    data.setColumnReorderingAllowed(true);
    if (lazyLoadingQuery.size() < 10) {
      data.setPageLength(0);
    } else {
      data.setPageLength(10);
    }
    addDetailComponent(data);
    
    data.setWidth(100, UNITS_PERCENTAGE);
    data.setHeight(100, UNITS_PERCENTAGE);
    data.addStyleName(ExplorerLayout.STYLE_DATABASE_TABLE);
    setDetailExpandRatio(data, 1.0f);
    
    // Create column headers
    TableMetaData metaData = managementService.getTableMetaData(tableName);
    for (String columnName : metaData.getColumnNames()) {
      data.addContainerProperty(columnName, String.class, null);
    }
    
  } else {
    Label noDataLabel = new Label(i18nManager.getMessage(Messages.DATABASE_NO_ROWS));
    noDataLabel.addStyleName(Reindeer.LABEL_SMALL);
    addDetailComponent(noDataLabel);
    setDetailExpandRatio(noDataLabel, 1.0f);
  }
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:37,代码来源:DatabaseDetailPanel.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");
	
	// 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

示例12: 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

示例13: addVariables

import com.vaadin.ui.Table; //导入方法依赖的package包/类
protected void addVariables() {
  Label header = new Label(i18nManager.getMessage(Messages.PROCESS_INSTANCE_HEADER_VARIABLES));
  header.addStyleName(ExplorerLayout.STYLE_H3);
  header.addStyleName(ExplorerLayout.STYLE_DETAIL_BLOCK);
  header.addStyleName(ExplorerLayout.STYLE_NO_LINE);
  panelLayout.addComponent(header);
  
  panelLayout.addComponent(new Label("&nbsp;", Label.CONTENT_XHTML));
  
  // variable sorting is done in-memory (which is ok, since normally there aren't that many vars)
  Map<String, Object> variables = new TreeMap<String, Object>(runtimeService.getVariables(processInstance.getId())); 
  
  if(variables.size() > 0) {
    
    Table variablesTable = new Table();
    variablesTable.setWidth(60, UNITS_PERCENTAGE);
    variablesTable.addStyleName(ExplorerLayout.STYLE_PROCESS_INSTANCE_TASK_LIST);
    
    variablesTable.addContainerProperty("name", String.class, null, i18nManager.getMessage(Messages.PROCESS_INSTANCE_VARIABLE_NAME), null, Table.ALIGN_LEFT);
    variablesTable.addContainerProperty("value", String.class, null, i18nManager.getMessage(Messages.PROCESS_INSTANCE_VARIABLE_VALUE), null, Table.ALIGN_LEFT);
    
    for (String variable : variables.keySet()) {
      Item variableItem = variablesTable.addItem(variable);
      variableItem.getItemProperty("name").setValue(variable);
      
      // Get string value to show
      String theValue = variableRendererManager.getStringRepresentation(variables.get(variable));
      variableItem.getItemProperty("value").setValue(theValue);
    }
    
    variablesTable.setPageLength(variables.size());
    panelLayout.addComponent(variablesTable);
  } else {
    Label noVariablesLabel = new Label(i18nManager.getMessage(Messages.PROCESS_INSTANCE_NO_VARIABLES));
    panelLayout.addComponent(noVariablesLabel);
  }
}
 
开发者ID:logicalhacking,项目名称:SecureBPMN,代码行数:38,代码来源:ProcessInstanceDetailPanel.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("-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

示例15: 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);
	mainLayout.setSpacing(true);
	
	// top-level component properties
	setWidth("-1px");
	setHeight("-1px");
	
	// horizontalLayout_1
	horizontalLayout_1 = buildHorizontalLayout_1();
	mainLayout.addComponent(horizontalLayout_1);
	
	// tableParameters
	tableParameters = new Table();
	tableParameters.setCaption("Configuration Parameters");
	tableParameters.setImmediate(false);
	tableParameters.setWidth("-1px");
	tableParameters.setHeight("-1px");
	mainLayout.addComponent(tableParameters);
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:29,代码来源:PIPParameterComponent.java


注:本文中的com.vaadin.ui.Table.setWidth方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。