本文整理汇总了Java中com.vaadin.ui.Table.setDescription方法的典型用法代码示例。如果您正苦于以下问题:Java Table.setDescription方法的具体用法?Java Table.setDescription怎么用?Java Table.setDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.vaadin.ui.Table
的用法示例。
在下文中一共展示了Table.setDescription方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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;
}
示例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(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;
}
示例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");
// 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;
}
示例4: 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");
// textFieldFilter
textFieldFilter = new TextField();
textFieldFilter.setCaption("Filter");
textFieldFilter.setImmediate(false);
textFieldFilter.setWidth("-1px");
textFieldFilter.setHeight("-1px");
mainLayout.addComponent(textFieldFilter);
// tableFunctions
tableFunctions = new Table();
tableFunctions.setImmediate(false);
tableFunctions.setDescription("Functions To Select From");
tableFunctions.setWidth("100.0%");
tableFunctions.setHeight("-1px");
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;
}