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


Java Table.setRequired方法代码示例

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


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

示例1: 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);
    }
 
开发者ID:eclipse,项目名称:hawkbit,代码行数:24,代码来源:CreateUpdateDistSetTypeLayout.java

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

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

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

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

示例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");
	
	// textAreaSelect
	textAreaSelect = new TextArea();
	textAreaSelect.setCaption("SQL Select Statement");
	textAreaSelect.setImmediate(false);
	textAreaSelect.setWidth("100.0%");
	textAreaSelect.setHeight("-1px");
	textAreaSelect.setInvalidAllowed(false);
	textAreaSelect.setRequired(true);
	mainLayout.addComponent(textAreaSelect);
	mainLayout.setExpandRatio(textAreaSelect, 1.0f);
	
	// textFieldBase
	textFieldBase = new TextField();
	textFieldBase.setCaption("Base DN");
	textFieldBase.setImmediate(false);
	textFieldBase.setWidth("-1px");
	textFieldBase.setHeight("-1px");
	mainLayout.addComponent(textFieldBase);
	
	// textFieldFilter
	textFieldFilter = new TextField();
	textFieldFilter.setCaption("Filter");
	textFieldFilter.setImmediate(false);
	textFieldFilter.setWidth("-1px");
	textFieldFilter.setHeight("-1px");
	mainLayout.addComponent(textFieldFilter);
	
	// checkBoxShortIds
	checkBoxShortIds = new CheckBox();
	checkBoxShortIds.setCaption("Display short id’s.");
	checkBoxShortIds.setImmediate(false);
	checkBoxShortIds.setWidth("-1px");
	checkBoxShortIds.setHeight("-1px");
	mainLayout.addComponent(checkBoxShortIds);
	
	// tableRequiredAttributes
	tableRequiredAttributes = new Table();
	tableRequiredAttributes.setCaption("Attributes Returned");
	tableRequiredAttributes.setImmediate(false);
	tableRequiredAttributes.setWidth("-1px");
	tableRequiredAttributes.setHeight("-1px");
	mainLayout.addComponent(tableRequiredAttributes);
	
	// tableAttributes
	tableAttributes = new Table();
	tableAttributes.setCaption("Parameters - Attributes Needed (i.e. ?)");
	tableAttributes.setImmediate(false);
	tableAttributes.setWidth("-1px");
	tableAttributes.setHeight("-1px");
	tableAttributes.setInvalidAllowed(false);
	tableAttributes.setRequired(true);
	mainLayout.addComponent(tableAttributes);
	
	return mainLayout;
}
 
开发者ID:apache,项目名称:incubator-openaz,代码行数:70,代码来源:PIPSQLResolverEditorWindow.java


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