Java Code Examples for com.vaadin.ui.Table#setDescription()

The following examples show how to use com.vaadin.ui.Table#setDescription() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MatchEditorWindow.java    From XACML with MIT License 5 votes vote down vote up
@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;
}
 
Example 2
Source File: OaExpressionsEditorComponent.java    From XACML with MIT License 5 votes vote down vote up
@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;
}
 
Example 3
Source File: EnumerationEditorComponent.java    From XACML with MIT License 5 votes vote down vote up
@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;
}
 
Example 4
Source File: FunctionSelectionWindow.java    From XACML with MIT License 4 votes vote down vote up
@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;
}