Here are the examples of the java api com.vaadin.ui.VerticalLayout.setHeight() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
82 Examples
19
View Complete Implementation : MainUI.java
Copyright Apache License 2.0
Author : opensecuritycontroller
Copyright Apache License 2.0
Author : opensecuritycontroller
private VerticalLayout buildSidebar() {
VerticalLayout sideBar = new VerticalLayout();
sideBar.addStyleName("sidebar");
sideBar.addComponent(buildMainMenu());
sideBar.setExpandRatio(this.menu, 1);
sideBar.setWidth(null);
sideBar.setHeight("100%");
return sideBar;
}
19
View Complete Implementation : UploadProgressInfoWindow.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private void setPopupSizeInMinMode() {
mainLayout.setWidth(900, Unit.PIXELS);
mainLayout.setHeight(510, Unit.PIXELS);
}
19
View Complete Implementation : DashboardMenu.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout buildMenuItems() {
final VerticalLayout menuItemsLayout = new VerticalLayout();
menuItemsLayout.addStyleName("valo-menuitems");
menuItemsLayout.setHeight(100.0F, Unit.PERCENTAGE);
final List<DashboardMenuItem> accessibleViews = getAccessibleViews();
if (accessibleViews.isEmpty()) {
accessibleViewsEmpty = true;
return menuItemsLayout;
}
initialViewName = accessibleViews.get(0).getViewName();
for (final DashboardMenuItem view : accessibleViews) {
final ValoMenuItemButton menuItemComponent = new ValoMenuItemButton(view);
menuButtons.add(menuItemComponent);
menuItemsLayout.addComponent(buildLabelWrapper(menuItemComponent, view.getNotificationUnreadLabel()));
}
return menuItemsLayout;
}
19
View Complete Implementation : PDPManagement.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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%");
// horizontalLayoutToolbar
horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
mainLayout.addComponent(horizontalLayoutToolbar);
// tree
table = new Table();
table.setImmediate(false);
table.setWidth("-1px");
table.setHeight("-1px");
mainLayout.addComponent(table);
mainLayout.setExpandRatio(table, 1.0f);
return mainLayout;
}
19
View Complete Implementation : DashboardMenu.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private static VerticalLayout getMenuLayout() {
final VerticalLayout menuContent = new VerticalLayout();
menuContent.addStyleName(ValoTheme.MENU_PART);
menuContent.addStyleName("sidebar");
menuContent.addStyleName("no-vertical-drag-hints");
menuContent.addStyleName("no-horizontal-drag-hints");
menuContent.setWidth(null);
menuContent.setHeight("100%");
return menuContent;
}
19
View Complete Implementation : DashBoardView.java
Copyright GNU General Public License v3.0
Author : rlsutton1
Copyright GNU General Public License v3.0
Author : rlsutton1
void postLoad() {
VerticalLayout sliderHolder = new VerticalLayout();
sliderHolder.setWidth("80%");
sliderHolder.setHeight("40");
addComponent(sliderHolder);
setComponentAlignment(sliderHolder, Alignment.TOP_CENTER);
dashboardsSlider = new SliderPanelBuilder(dashboardPanels()).expanded(false).mode(SliderMode.TOP).tabPosition(SliderTabPosition.MIDDLE).style(style).caption("Dashboards").animationDuration(400).tabSize(30).autoCollapseSlider(true).build();
sliderHolder.addComponent(dashboardsSlider);
Tblportallayout portalLayout = findDefaultPortal();
createDashboard(portalLayout);
dashBoardSelector.select(portalLayout);
dashBoardHolderPanel.setSizeFull();
addComponent(dashBoardHolderPanel);
setExpandRatio(dashBoardHolderPanel, 1);
}
18
View Complete Implementation : ObadviceDictionary.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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;
}
18
View Complete Implementation : RangeEditorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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);
mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
// horizontalLayout_2
horizontalLayout_2 = buildHorizontalLayout_2();
mainLayout.addComponent(horizontalLayout_2);
mainLayout.setExpandRatio(horizontalLayout_2, 1.0f);
// panelTester
panelTester = buildPanelTester();
mainLayout.addComponent(panelTester);
mainLayout.setExpandRatio(panelTester, 1.0f);
return mainLayout;
}
18
View Complete Implementation : MainView.java
Copyright GNU General Public License v3.0
Author : AskNowQA
Copyright GNU General Public License v3.0
Author : AskNowQA
private void createMainPanel() {
mainPanel = new VerticalLayout();
mainPanel.setSpacing(true);
mainPanel.setSizeFull();
addComponent(mainPanel);
setExpandRatio(mainPanel, 1f);
// top part
Component inputForm = createInputComponent();
inputForm.setWidth("60%");
inputForm.setHeight("100%");
VerticalLayout inputFormHolder = new VerticalLayout();
inputFormHolder.addStyleName("input-form");
inputFormHolder.setHeight(null);
inputFormHolder.setWidth("100%");
inputFormHolder.addComponent(inputForm);
inputFormHolder.setComponentAlignment(inputForm, Alignment.MIDDLE_CENTER);
mainPanel.addComponent(inputFormHolder);
mainPanel.setComponentAlignment(inputFormHolder, Alignment.MIDDLE_CENTER);
// middle part
resultHolderPanel = new VerticalLayout();
resultHolderPanel.setWidth("80%");
resultHolderPanel.setHeight("100%");
mainPanel.addComponent(resultHolderPanel);
mainPanel.setComponentAlignment(resultHolderPanel, Alignment.MIDDLE_CENTER);
mainPanel.setExpandRatio(resultHolderPanel, 0.8f);
// refine button, only visible if constraints running QTL algorithm are satisfied
refineButton = new Button("Refine");
refineButton.setVisible(false);
refineButton.addListener(new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
onRefineResult();
}
});
mainPanel.addComponent(refineButton);
mainPanel.setComponentAlignment(refineButton, Alignment.MIDDLE_CENTER);
}
18
View Complete Implementation : Box.java
Copyright Apache License 2.0
Author : chelu
Copyright Apache License 2.0
Author : chelu
/**
* @return new VerticalLayout
*/
public static VerticalLayout createVerticalBox() {
VerticalLayout vl = new VerticalLayout();
vl.setHeight(100, Unit.PERCENTAGE);
return vl;
}
18
View Complete Implementation : AbstractMetadataPopupLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
protected VerticalLayout createMetadataFieldsLayout() {
final VerticalLayout metadataFieldsLayout = new VerticalLayout();
metadataFieldsLayout.setSizeFull();
metadataFieldsLayout.setHeight("100%");
metadataFieldsLayout.addComponent(keyTextField);
metadataFieldsLayout.addComponent(valueTextArea);
metadataFieldsLayout.setSpacing(true);
metadataFieldsLayout.setExpandRatio(valueTextArea, 1F);
return metadataFieldsLayout;
}
18
View Complete Implementation : TargetBulkUpdateWindowLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout getTokenFieldLayout() {
final TagPanelLayout tagPanelLayout = targetBulkTokenTags.getTagPanel();
tagPanelLayout.setMargin(false);
final VerticalLayout tokenLayout = SPUIComponentProvider.getDetailTabLayout();
tokenLayout.addStyleName("bulk-target-tags-layout");
tokenLayout.addComponent(tagPanelLayout);
tokenLayout.setSpacing(false);
tokenLayout.setMargin(false);
tokenLayout.setSizeFull();
tokenLayout.setHeight("100px");
tokenLayout.setId(UIComponentIdProvider.BULK_UPLOAD_TAG);
return tokenLayout;
}
18
View Complete Implementation : AbstractView.java
Copyright Apache License 2.0
Author : Hack23
Copyright Apache License 2.0
Author : Hack23
/**
* Creates the full size vertical layout.
*
* @param margin
* the margin
* @param spacing
* the spacing
* @return the vertical layout
*/
private static VerticalLayout createFullSizeVerticalLayout(final boolean margin, final boolean spacing) {
final VerticalLayout layout = new VerticalLayout();
layout.setMargin(margin);
layout.setSpacing(spacing);
layout.setWidth(100, Unit.PERCENTAGE);
layout.setHeight(100, Unit.PERCENTAGE);
return layout;
}
18
View Complete Implementation : AttributeDictionary.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// horizontalLayoutToolbar
horizontalLayoutToolbar = buildHorizontalLayoutToolbar();
mainLayout.addComponent(horizontalLayoutToolbar);
// table
table = new Table();
table.setImmediate(false);
table.setWidth("100.0%");
table.setHeight("-1px");
mainLayout.addComponent(table);
return mainLayout;
}
17
View Complete Implementation : MainLayout.java
Copyright Apache License 2.0
Author : alenca
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
// common part: create layout
verticalLayout_2 = new VerticalLayout();
verticalLayout_2.setImmediate(false);
verticalLayout_2.setWidth("100.0%");
verticalLayout_2.setHeight("100.0%");
verticalLayout_2.setMargin(true);
verticalLayout_2.setSpacing(true);
// horizontalLayout_3
horizontalLayout_3 = buildHorizontalLayout_3();
verticalLayout_2.addComponent(horizontalLayout_3);
verticalLayout_2.setExpandRatio(horizontalLayout_3, 1.0f);
// horizontalLayout_4
horizontalLayout_4 = buildHorizontalLayout_4();
verticalLayout_2.addComponent(horizontalLayout_4);
return verticalLayout_2;
}
17
View Complete Implementation : PIPManagement.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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);
// tablePIP
tablePIP = new Table();
tablePIP.setCaption("PIP Configurations");
tablePIP.setImmediate(false);
tablePIP.setWidth("100.0%");
tablePIP.setHeight("-1px");
mainLayout.addComponent(tablePIP);
return mainLayout;
}
17
View Complete Implementation : PIPParameterComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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;
}
17
View Complete Implementation : PIPResolverComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// tableResolvers
tableResolvers = new Table();
tableResolvers.setCaption("Resolvers");
tableResolvers.setImmediate(false);
tableResolvers.setWidth("-1px");
tableResolvers.setHeight("-1px");
mainLayout.addComponent(tableResolvers);
return mainLayout;
}
17
View Complete Implementation : MainLayout.java
Copyright Apache License 2.0
Author : alenca
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_4() {
// common part: create layout
verticalLayout_4 = new VerticalLayout();
verticalLayout_4.setImmediate(false);
verticalLayout_4.setWidth("100.0%");
verticalLayout_4.setHeight("100.0%");
verticalLayout_4.setMargin(false);
// menuBar_1
menuBar_1 = new MenuBar();
menuBar_1.setImmediate(false);
menuBar_1.setWidth("100.0%");
menuBar_1.setHeight("-1px");
verticalLayout_4.addComponent(menuBar_1);
// verticalLayout_2
verticalLayout_2 = buildVerticalLayout_2();
verticalLayout_4.addComponent(verticalLayout_2);
verticalLayout_4.setExpandRatio(verticalLayout_2, 1.0f);
return verticalLayout_4;
}
16
View Complete Implementation : SnapshotView.java
Copyright Apache License 2.0
Author : alenca
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
// common part: create layout
verticalLayout_2 = new VerticalLayout();
verticalLayout_2.setImmediate(false);
verticalLayout_2.setWidth("100.0%");
verticalLayout_2.setHeight("100.0%");
verticalLayout_2.setMargin(true);
// description
description = new Label();
description.setImmediate(false);
description.setWidth("-1px");
description.setHeight("-1px");
description.setValue("Select znode or session");
verticalLayout_2.addComponent(description);
return verticalLayout_2;
}
16
View Complete Implementation : ApplyEditorWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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;
}
16
View Complete Implementation : GitConflictResolver.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
return mainLayout;
}
16
View Complete Implementation : PIPSQLResolverEditorWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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;
}
16
View Complete Implementation : MainView.java
Copyright GNU General Public License v3.0
Author : AskNowQA
Copyright GNU General Public License v3.0
Author : AskNowQA
private Component createInputComponent() {
HorizontalLayout l = new HorizontalLayout();
l.setSpacing(true);
Component kbSelector = createSelectTBSLComponent();
kbSelector.setWidth("150px");
kbSelector.setHeight("100px");
l.addComponent(kbSelector);
VerticalLayout right = new VerticalLayout();
right.setSizeFull();
right.setHeight("100px");
right.setSpacing(true);
l.addComponent(right);
l.setExpandRatio(right, 1f);
HorizontalLayout rightTop = new HorizontalLayout();
rightTop.setSpacing(true);
rightTop.setHeight(null);
rightTop.setWidth("100%");
right.addComponent(rightTop);
questionBox = new ComboBox();
questionBox.setWidth("100%");
questionBox.setHeight(null);
questionBox.setImmediate(true);
questionBox.setNewItemsAllowed(true);
questionBox.setInputPrompt("Enter your question.");
questionBox.addListener(new Property.ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
onExecuteQuery();
}
});
questionBox.addShortcutListener(new ShortcutListener("run", ShortcutAction.KeyCode.ENTER, null) {
@Override
public void handleAction(Object sender, Object target) {
onExecuteQuery();
}
});
rightTop.addComponent(questionBox);
rightTop.setExpandRatio(questionBox, 1f);
addExampleQuestions();
executeButton = new NativeButton("Run");
executeButton.addListener(new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
onExecuteQuery();
}
});
rightTop.addComponent(executeButton);
Component feedbackComponent = createFeedbackComponent();
right.addComponent(feedbackComponent);
right.setExpandRatio(feedbackComponent, 1f);
right.setComponentAlignment(feedbackComponent, Alignment.MIDDLE_CENTER);
return l;
}
16
View Complete Implementation : AbstractMetadataPopupLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private void buildLayout() {
final HorizontalLayout headerLayout = new HorizontalLayout();
headerLayout.addStyleName(SPUIStyleDefinitions.WIDGET_replacedLE);
headerLayout.setSpacing(false);
headerLayout.setMargin(false);
headerLayout.setSizeFull();
headerLayout.addComponent(headerCaption);
if (hasCreatePermission()) {
headerLayout.addComponents(addIcon);
headerLayout.setComponentAlignment(addIcon, Alignment.MIDDLE_RIGHT);
}
headerLayout.setExpandRatio(headerCaption, 1.0F);
final HorizontalLayout headerWrapperLayout = new HorizontalLayout();
headerWrapperLayout.addStyleName("bordered-layout" + " " + "no-border-bottom" + " " + "metadata-table-margin");
headerWrapperLayout.addComponent(headerLayout);
headerWrapperLayout.setWidth("100%");
headerLayout.setHeight("30px");
final VerticalLayout tableLayout = new VerticalLayout();
tableLayout.setSizeFull();
tableLayout.setHeight("100%");
tableLayout.addComponent(headerWrapperLayout);
tableLayout.addComponent(metaDataGrid);
tableLayout.addStyleName("table-layout");
tableLayout.setExpandRatio(metaDataGrid, 1.0F);
final VerticalLayout metadataFieldsLayout = createMetadataFieldsLayout();
mainLayout = new HorizontalLayout();
mainLayout.addComponent(tableLayout);
mainLayout.addComponent(metadataFieldsLayout);
mainLayout.setExpandRatio(tableLayout, 0.5F);
mainLayout.setExpandRatio(metadataFieldsLayout, 0.5F);
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
setCompositionRoot(mainLayout);
setSizeFull();
}
16
View Complete Implementation : DashBoardView.java
Copyright GNU General Public License v3.0
Author : rlsutton1
Copyright GNU General Public License v3.0
Author : rlsutton1
private Component dashboardManagement() {
VerticalLayout layout = new VerticalLayout();
HorizontalLayout buttonLayout = new HorizontalLayout();
buttonLayout.setWidth("100%");
buttonLayout.setHeight("50");
Button newDashboard = createNewButton();
Button rename = createRenameButton();
addClickListenerToRenameButton(rename);
newDashboard.addClickListener(new ClickListener() {
private static final long serialVersionUID = -609738416141590613L;
@Override
public void buttonClick(ClickEvent event) {
createDashboard(null);
}
});
buttonLayout.addComponent(newDashboard);
buttonLayout.addComponent(rename);
Button createMakeDefaultButton = createMakeDefaultButton();
addClickListenerToDefaultButton(createMakeDefaultButton);
buttonLayout.addComponent(createMakeDefaultButton);
// buttonLayout.addComponent(copy);
// buttonLayout.addComponent(share);
createDashboardSelector();
Button createDeleteButton = createDeleteButton();
addClickListenerToDeleteButton(createDeleteButton);
buttonLayout.addComponent(createDeleteButton);
if (creplacederShareDashboards()) {
Button createShareButton = createShareButton();
buttonLayout.addComponent(createShareButton);
addClickListenerToShareButton(createShareButton);
}
TabSheet selectorHolder = new TabSheet();
selectorHolder.addTab(layout, "Dashboards");
layout.addComponent(dashBoardSelector);
layout.setExpandRatio(dashBoardSelector, 1);
layout.addComponent(buttonLayout);
layout.setHeight("250");
// layout.setSizeFull();
return selectorHolder;
}
15
View Complete Implementation : EnumerationEditorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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;
}
15
View Complete Implementation : PDPStatusWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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;
}
15
View Complete Implementation : AbstractPageModContentFactoryImpl.java
Copyright Apache License 2.0
Author : Hack23
Copyright Apache License 2.0
Author : Hack23
/**
* Creates the panel content.
*
* @return the vertical layout
*/
protected final VerticalLayout createPanelContent() {
final VerticalLayout panelContent = new VerticalLayout();
panelContent.setMargin(true);
panelContent.setWidth(100, Unit.PERCENTAGE);
panelContent.setHeight(100, Unit.PERCENTAGE);
panelContent.setStyleName("Header");
return panelContent;
}
15
View Complete Implementation : ComboBoxWithSearchFieldChooserWindow.java
Copyright GNU General Public License v3.0
Author : rlsutton1
Copyright GNU General Public License v3.0
Author : rlsutton1
@SuppressWarnings("unchecked")
public Component getPopupContent2() {
grid = new SearchableGrid<T, C>() {
/**
*/
private static final long serialVersionUID = 1L;
@Override
public GridHeadingPropertySetIfc<T> getHeadingPropertySet() {
return headingProps;
}
@Override
protected Filter getContainerFilter(String filterString, boolean advancedSearchActive) {
List<Filter> filters = new ArrayList<>();
if (baseFilters != null) {
filters.add(baseFilters);
}
if (filterString.length() > 0) {
List<Filter> orFilters = new LinkedList<>();
for (String search : sortColumns) {
// protect against empty filters or fields
if (StringUtils.isNotBlank(search) && StringUtils.isNotBlank(filterString)) {
if (localContainer.getType(search).isreplacedignableFrom(String.clreplaced)) {
orFilters.add(new SimpleStringFilter(search, filterString, true, false));
} else {
logger.warn("Can't text search on nested field '{}'", search);
}
}
}
filters.add(new Or(orFilters.toArray(new Filter[] {})));
}
if (filters.size() == 0) {
return null;
}
return new And(filters.toArray(new Filter[] {}));
}
@Override
protected String getreplacedle() {
return null;
}
@Override
public C getContainer() {
return localContainer;
}
@Override
protected AbstractLayout getAdvancedSearchLayout() {
if (advancedSearchProvider == null) {
return null;
}
return advancedSearchProvider.getAdvancedSearchLayout();
}
@Override
protected AdvancedSearchListener getAdvancedSearchListener() {
return advancedSearchListener;
}
};
grid.init(caption, (Clreplaced<T>) type);
// grid.getGrid().removeHeaderRow(0);
ItemClickListener itemClickListener = new ItemClickListener() {
private static final long serialVersionUID = -4659382639878762429L;
@Override
public void itemClick(ItemClickEvent event) {
listener.selected(event.gereplacedemId());
}
};
Sort sort = Sort.by(sortColumns[0]);
for (int i = 1; i < sortColumns.length; i++) {
sort.then(sortColumns[i]);
}
grid.sort(sort);
grid.setSelectionMode(SelectionMode.SINGLE);
grid.addItemClickListener(itemClickListener);
grid.setSizeFull();
holder = new VerticalLayout();
holder.setWidth("100%");
holder.setHeight("300");
holder.addComponent(grid);
grid.setId("PopupGrid");
return holder;
}
14
View Complete Implementation : CmsUpdateStep05Modules.java
Copyright GNU Lesser General Public License v2.1
Author : alkacon
Copyright GNU Lesser General Public License v2.1
Author : alkacon
/**
* Get content.<p>
*
* @return VerticalLayout
*/
private VerticalLayout getReportContent() {
VerticalLayout layout = new VerticalLayout();
layout.setHeight("100%");
final CmsStreamReportWidget report = new CmsStreamReportWidget();
report.setWidth("100%");
report.setHeight("100%");
enableOK(false);
Thread thread = new CmsVaadinUpdateThread(m_ui.getUpdateBean(), report);
thread.start();
try {
OutputStream logStream = new FileOutputStream(m_ui.getUpdateBean().getLogName());
report.setDelegateStream(logStream);
report.addReportFinishedHandler(() -> {
try {
logStream.close();
report.getStream().close();
enableOK(true);
m_finished.setVisible(true);
m_running.setVisible(false);
m_isDone = true;
} catch (IOException e) {
//
}
});
} catch (FileNotFoundException e1) {
//
}
layout.addComponent(report);
return layout;
}
14
View Complete Implementation : AttributeDictionarySelectorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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_2
horizontalLayout_2 = buildHorizontalLayout_2();
mainLayout.addComponent(horizontalLayout_2);
// listSelectAttribute
listSelectAttribute = new ListSelect();
listSelectAttribute.setCaption("Dictionary Attributes");
listSelectAttribute.setImmediate(false);
listSelectAttribute.setWidth("100.0%");
listSelectAttribute.setHeight("-1px");
listSelectAttribute.setInvalidAllowed(false);
listSelectAttribute.setRequired(true);
mainLayout.addComponent(listSelectAttribute);
mainLayout.setExpandRatio(listSelectAttribute, 1.0f);
return mainLayout;
}
14
View Complete Implementation : AttributeStandardSelectorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// comboBoxCategories
comboBoxCategories = new ComboBox();
comboBoxCategories.setCaption("Select A Category");
comboBoxCategories.setImmediate(false);
comboBoxCategories.setWidth("-1px");
comboBoxCategories.setHeight("-1px");
comboBoxCategories.setInvalidAllowed(false);
comboBoxCategories.setRequired(true);
mainLayout.addComponent(comboBoxCategories);
mainLayout.setExpandRatio(comboBoxCategories, 1.0f);
// horizontalLayout_2
horizontalLayout_2 = buildHorizontalLayout_2();
mainLayout.addComponent(horizontalLayout_2);
mainLayout.setExpandRatio(horizontalLayout_2, 1.0f);
return mainLayout;
}
14
View Complete Implementation : HyperCSVPIPConfigurationComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// textFieldSource
textFieldSource = new TextField();
textFieldSource.setCaption("CSV Source File");
textFieldSource.setImmediate(false);
textFieldSource.setDescription("Path to CSV file");
textFieldSource.setWidth("-1px");
textFieldSource.setHeight("-1px");
textFieldSource.setInvalidAllowed(false);
textFieldSource.setRequired(true);
textFieldSource.setInputPrompt("Eg. /opt/app/data.csv");
mainLayout.addComponent(textFieldSource);
// textFieldTarget
textFieldTarget = new TextField();
textFieldTarget.setCaption("Table");
textFieldTarget.setImmediate(false);
textFieldTarget.setDescription("Name of database table to be created.");
textFieldTarget.setWidth("-1px");
textFieldTarget.setHeight("-1px");
textFieldTarget.setInvalidAllowed(false);
textFieldTarget.setRequired(true);
mainLayout.addComponent(textFieldTarget);
// textFieldDefinition
textFieldDefinition = new TextField();
textFieldDefinition.setCaption("Table Definition");
textFieldDefinition.setImmediate(false);
textFieldDefinition.setDescription("SQL Table Definition");
textFieldDefinition.setWidth("-1px");
textFieldDefinition.setHeight("-1px");
textFieldDefinition.setInvalidAllowed(false);
textFieldDefinition.setRequired(true);
mainLayout.addComponent(textFieldDefinition);
return mainLayout;
}
14
View Complete Implementation : ExpressionBuilderComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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("-1px");
setHeight("-1px");
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
// treeExpressions
treeExpressions = new TreeTable();
treeExpressions.setImmediate(false);
treeExpressions.setWidth("100.0%");
treeExpressions.setHeight("-1px");
mainLayout.addComponent(treeExpressions);
mainLayout.setExpandRatio(treeExpressions, 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;
}
14
View Complete Implementation : XacmlAdminConsole.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setMargin(true);
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
// tabSheet
tabSheet = new TabSheet();
tabSheet.setImmediate(false);
tabSheet.setWidth("100.0%");
tabSheet.setHeight("100.0%");
mainLayout.addComponent(tabSheet);
mainLayout.setExpandRatio(tabSheet, 1.0f);
// labelCopyright
labelCopyright = new Label();
labelCopyright.setImmediate(false);
labelCopyright.setWidth("-1px");
labelCopyright.setHeight("40px");
labelCopyright.setValue("<center>Copyright © 2015 The Apache Software Foundation, Licensed under the Apache License, Version 2.0.</center>");
mainLayout.addComponent(labelCopyright);
mainLayout.setComponentAlignment(labelCopyright, new Alignment(48));
return mainLayout;
}
14
View Complete Implementation : GitSynchronizeWindow.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@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");
// textAreaResults
textAreaResults = new TextArea();
textAreaResults.setCaption("Synch Results");
textAreaResults.setImmediate(false);
textAreaResults.setWidth("462px");
textAreaResults.setHeight("222px");
mainLayout.addComponent(textAreaResults);
// buttonSynchronize
buttonSynchronize = new Button();
buttonSynchronize.setCaption("Synchronize");
buttonSynchronize.setImmediate(true);
buttonSynchronize.setWidth("-1px");
buttonSynchronize.setHeight("-1px");
mainLayout.addComponent(buttonSynchronize);
mainLayout.setComponentAlignment(buttonSynchronize, new Alignment(24));
return mainLayout;
}
14
View Complete Implementation : XacmlAdminConsole.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private VerticalLayout buildMainLayout() {
// common part: create layout
mainLayout = new VerticalLayout();
mainLayout.setImmediate(false);
mainLayout.setWidth("100%");
mainLayout.setHeight("100%");
mainLayout.setMargin(true);
// top-level component properties
setWidth("100.0%");
setHeight("100.0%");
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
// tabSheet
tabSheet = new TabSheet();
tabSheet.setImmediate(false);
tabSheet.setWidth("100.0%");
tabSheet.setHeight("100.0%");
mainLayout.addComponent(tabSheet);
mainLayout.setExpandRatio(tabSheet, 1.0f);
// labelCopyright
labelCopyright = new Label();
labelCopyright.setImmediate(false);
labelCopyright.setWidth("-1px");
labelCopyright.setHeight("40px");
labelCopyright.setValue("<center>© 2013-2014 AT&T Intellectual Property. All rights reserved.</center>");
mainLayout.addComponent(labelCopyright);
mainLayout.setComponentAlignment(labelCopyright, new Alignment(48));
return mainLayout;
}
14
View Complete Implementation : SnapshotView.java
Copyright Apache License 2.0
Author : alenca
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
// common part: create layout
verticalLayout_1 = new VerticalLayout();
verticalLayout_1.setImmediate(false);
verticalLayout_1.setWidth("100.0%");
verticalLayout_1.setHeight("-1px");
verticalLayout_1.setMargin(true);
verticalLayout_1.setSpacing(true);
// label_4
label_4 = new Label();
label_4.setImmediate(false);
label_4.setWidth("-1px");
label_4.setHeight("-1px");
label_4.setValue("Data Tree:");
verticalLayout_1.addComponent(label_4);
// dataTree
dataTree = new Tree();
dataTree.setImmediate(false);
dataTree.setWidth("-1px");
dataTree.setHeight("-1px");
verticalLayout_1.addComponent(dataTree);
// label_5
label_5 = new Label();
label_5.setImmediate(false);
label_5.setWidth("-1px");
label_5.setHeight("-1px");
label_5.setValue("Sessions:");
verticalLayout_1.addComponent(label_5);
// sessionTree
sessionTree = new Tree();
sessionTree.setImmediate(false);
sessionTree.setWidth("-1px");
sessionTree.setHeight("-1px");
verticalLayout_1.addComponent(sessionTree);
return verticalLayout_1;
}
13
View Complete Implementation : OpenTransactionLogFileDialog.java
Copyright Apache License 2.0
Author : alenca
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
// common part: create layout
verticalLayout_1 = new VerticalLayout();
verticalLayout_1.setImmediate(false);
verticalLayout_1.setWidth("-1px");
verticalLayout_1.setHeight("-1px");
verticalLayout_1.setMargin(true);
verticalLayout_1.setSpacing(true);
// nameLabel
nameLabel = new TextField();
nameLabel.setCaption("Name");
nameLabel.setImmediate(false);
nameLabel.setWidth("-1px");
nameLabel.setHeight("-1px");
nameLabel.setRequired(true);
verticalLayout_1.addComponent(nameLabel);
// transactionLogFileLabel
transactionLogFileLabel = new TextField();
transactionLogFileLabel.setCaption("Transaction log file or directory containing transaction log files to open");
transactionLogFileLabel.setImmediate(false);
transactionLogFileLabel.setWidth("540px");
transactionLogFileLabel.setHeight("-1px");
transactionLogFileLabel.setRequired(true);
verticalLayout_1.addComponent(transactionLogFileLabel);
// snapshotDirectoryLabel
snapshotDirectoryLabel = new TextField();
snapshotDirectoryLabel.setCaption("Directory containing snapshot files");
snapshotDirectoryLabel.setImmediate(false);
snapshotDirectoryLabel.setWidth("540px");
snapshotDirectoryLabel.setHeight("-1px");
verticalLayout_1.addComponent(snapshotDirectoryLabel);
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
verticalLayout_1.addComponent(horizontalLayout_1);
// button_1
openButton = new Button();
openButton.setCaption("Open");
openButton.setImmediate(true);
openButton.setWidth("-1px");
openButton.setHeight("-1px");
verticalLayout_1.addComponent(openButton);
return verticalLayout_1;
}
13
View Complete Implementation : RangeEditorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
// common part: create layout
verticalLayout_2 = new VerticalLayout();
verticalLayout_2.setImmediate(false);
verticalLayout_2.setWidth("100.0%");
verticalLayout_2.setHeight("100.0%");
verticalLayout_2.setMargin(false);
verticalLayout_2.setSpacing(true);
// textFieldTestInput
textFieldTestInput = new TextField();
textFieldTestInput.setCaption("Value");
textFieldTestInput.setImmediate(true);
textFieldTestInput.setDescription("Enter a value to test against.");
textFieldTestInput.setWidth("-1px");
textFieldTestInput.setHeight("-1px");
textFieldTestInput.setInputPrompt("eg. 50");
verticalLayout_2.addComponent(textFieldTestInput);
// buttonValidate
buttonValidate = new Button();
buttonValidate.setCaption("Test");
buttonValidate.setImmediate(true);
buttonValidate.setDescription("Click to test if value is within the range.");
buttonValidate.setWidth("-1px");
buttonValidate.setHeight("-1px");
verticalLayout_2.addComponent(buttonValidate);
verticalLayout_2.setComponentAlignment(buttonValidate, new Alignment(48));
return verticalLayout_2;
}
13
View Complete Implementation : RegexpEditorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
// common part: create layout
verticalLayout_2 = new VerticalLayout();
verticalLayout_2.setImmediate(false);
verticalLayout_2.setWidth("100.0%");
verticalLayout_2.setHeight("100.0%");
verticalLayout_2.setMargin(false);
// textFieldTestValue
textFieldTestValue = new TextField();
textFieldTestValue.setCaption("Test Value");
textFieldTestValue.setImmediate(true);
textFieldTestValue.setDescription("Enter a value to match against the regular expression.");
textFieldTestValue.setWidth("-1px");
textFieldTestValue.setHeight("-1px");
textFieldTestValue.setInputPrompt("eg. example");
verticalLayout_2.addComponent(textFieldTestValue);
// buttonTest
buttonTest = new Button();
buttonTest.setCaption("Test");
buttonTest.setImmediate(true);
buttonTest.setWidth("-1px");
buttonTest.setHeight("-1px");
verticalLayout_2.addComponent(buttonTest);
verticalLayout_2.setComponentAlignment(buttonTest, new Alignment(48));
return verticalLayout_2;
}
13
View Complete Implementation : RegexpEditorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// textFieldExpression
textFieldExpression = new TextField();
textFieldExpression.setCaption("Regular Expression");
textFieldExpression.setImmediate(true);
textFieldExpression.setDescription("Create a regular expression used to constrain attribute values.");
textFieldExpression.setWidth("-1px");
textFieldExpression.setHeight("-1px");
textFieldExpression.setInvalidAllowed(false);
textFieldExpression.setInputPrompt("eg. [a-zA-Z0-9]");
mainLayout.addComponent(textFieldExpression);
mainLayout.setExpandRatio(textFieldExpression, 1.0f);
// panelTester
panelTester = buildPanelTester();
mainLayout.addComponent(panelTester);
mainLayout.setExpandRatio(panelTester, 1.0f);
return mainLayout;
}
13
View Complete Implementation : AttributeSelectionWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private VerticalLayout buildVerticalLayout_2() {
// common part: create layout
verticalLayout_2 = new VerticalLayout();
verticalLayout_2.setImmediate(false);
verticalLayout_2.setWidth("-1px");
verticalLayout_2.setHeight("-1px");
verticalLayout_2.setMargin(true);
verticalLayout_2.setSpacing(true);
// textFieldIssuer
textFieldIssuer = new TextField();
textFieldIssuer.setCaption("Issuer");
textFieldIssuer.setImmediate(false);
textFieldIssuer.setWidth("-1px");
textFieldIssuer.setHeight("-1px");
verticalLayout_2.addComponent(textFieldIssuer);
// checkBoxMustBePresent
checkBoxMustBePresent = new CheckBox();
checkBoxMustBePresent.setCaption("Attribute Must Be Present");
checkBoxMustBePresent.setImmediate(false);
checkBoxMustBePresent.setWidth("-1px");
checkBoxMustBePresent.setHeight("-1px");
verticalLayout_2.addComponent(checkBoxMustBePresent);
return verticalLayout_2;
}
13
View Complete Implementation : AttributeSelectionWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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);
// horizontalLayoutAttribute
horizontalLayoutAttribute = new HorizontalLayout();
horizontalLayoutAttribute.setImmediate(false);
horizontalLayoutAttribute.setWidth("-1px");
horizontalLayoutAttribute.setHeight("-1px");
horizontalLayoutAttribute.setMargin(false);
mainLayout.addComponent(horizontalLayoutAttribute);
mainLayout.setExpandRatio(horizontalLayoutAttribute, 1.0f);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Select");
buttonSave.setImmediate(true);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(48));
return mainLayout;
}
13
View Complete Implementation : SelectWorkspacePoliciesWindow.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// treeWorkspace
treeWorkspace = new TreeTable();
treeWorkspace.setCaption("Select Policy(s) for PDP Group");
treeWorkspace.setImmediate(true);
treeWorkspace.setWidth("100.0%");
treeWorkspace.setHeight("-1px");
mainLayout.addComponent(treeWorkspace);
// 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;
}
12
View Complete Implementation : TransactionLogView.java
Copyright Apache License 2.0
Author : alenca
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private VerticalLayout buildVerticalLayout_1() {
// common part: create layout
verticalLayout_1 = new VerticalLayout();
verticalLayout_1.setImmediate(false);
verticalLayout_1.setWidth("100.0%");
verticalLayout_1.setHeight("100.0%");
verticalLayout_1.setMargin(true);
verticalLayout_1.setSpacing(true);
// reconstructDataTreeButton
reconstructDataTreeButton = new Button();
reconstructDataTreeButton.setCaption("Reconstruct Data Tree");
reconstructDataTreeButton.setImmediate(true);
reconstructDataTreeButton.setWidth("-1px");
reconstructDataTreeButton.setHeight("-1px");
verticalLayout_1.addComponent(reconstructDataTreeButton);
verticalLayout_1.setComponentAlignment(reconstructDataTreeButton, new Alignment(6));
// descriptionLabel
descriptionLabel = new Label();
descriptionLabel.setImmediate(false);
descriptionLabel.setWidth("-1px");
descriptionLabel.setHeight("-1px");
descriptionLabel.setValue("Select Transaction");
verticalLayout_1.addComponent(descriptionLabel);
verticalLayout_1.setExpandRatio(descriptionLabel, 1.0f);
return verticalLayout_1;
}
12
View Complete Implementation : UserManagement.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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;
}
12
View Complete Implementation : AttributeSimpleCreatorComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// textFieldAttributeId
textFieldAttributeId = new TextField();
textFieldAttributeId.setCaption("Attribute Id");
textFieldAttributeId.setImmediate(false);
textFieldAttributeId.setWidth("100.0%");
textFieldAttributeId.setHeight("-1px");
textFieldAttributeId.setInvalidAllowed(false);
textFieldAttributeId.setRequired(true);
mainLayout.addComponent(textFieldAttributeId);
mainLayout.setExpandRatio(textFieldAttributeId, 1.0f);
// textFieldContextPath
textFieldContextPath = new TextField();
textFieldContextPath.setCaption("Context Path");
textFieldContextPath.setImmediate(false);
textFieldContextPath.setDescription("The Selector's Context Path.");
textFieldContextPath.setWidth("100.0%");
textFieldContextPath.setHeight("-1px");
textFieldContextPath.setInputPrompt("eg. md:record/md:patient/md:patient-number/text()");
mainLayout.addComponent(textFieldContextPath);
mainLayout.setExpandRatio(textFieldContextPath, 1.0f);
// horizontalLayout_1
horizontalLayout_1 = buildHorizontalLayout_1();
mainLayout.addComponent(horizontalLayout_1);
mainLayout.setExpandRatio(horizontalLayout_1, 1.0f);
return mainLayout;
}
12
View Complete Implementation : CSVPIPConfigurationComponent.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@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");
// textFieldFile
textFieldFile = new TextField();
textFieldFile.setCaption("Path to CSV File");
textFieldFile.setImmediate(false);
textFieldFile.setDescription("This is the path to CSV file on the PDP node.");
textFieldFile.setWidth("-1px");
textFieldFile.setHeight("-1px");
textFieldFile.setInvalidAllowed(false);
textFieldFile.setRequired(true);
textFieldFile.setInputPrompt("Eg. \"c:\\data.csv\" \"http://foo.com/data.csv\"");
mainLayout.addComponent(textFieldFile);
mainLayout.setExpandRatio(textFieldFile, 1.0f);
// textFieldDelimiter
textFieldDelimiter = new TextField();
textFieldDelimiter.setCaption("Delimiter");
textFieldDelimiter.setImmediate(false);
textFieldDelimiter.setDescription("Enter a separator character or string that delineates columns in each row.");
textFieldDelimiter.setWidth("-1px");
textFieldDelimiter.setHeight("-1px");
textFieldDelimiter.setInputPrompt("Eg. \",\" or \"|\"");
textFieldDelimiter.setNullSettingAllowed(true);
mainLayout.addComponent(textFieldDelimiter);
mainLayout.setExpandRatio(textFieldDelimiter, 1.0f);
// textFieldQuote
textFieldQuote = new TextField();
textFieldQuote.setCaption("Quote");
textFieldQuote.setImmediate(false);
textFieldQuote.setDescription("Enter character used for quoted elements.");
textFieldQuote.setWidth("-1px");
textFieldQuote.setHeight("-1px");
textFieldQuote.setInputPrompt("Eg. \" or '");
textFieldQuote.setNullSettingAllowed(true);
mainLayout.addComponent(textFieldQuote);
// textFieldSkip
textFieldSkip = new TextField();
textFieldSkip.setCaption("Skip Lines");
textFieldSkip.setImmediate(false);
textFieldSkip.setDescription("Skips the number of lines at the beginning of the file.");
textFieldSkip.setWidth("-1px");
textFieldSkip.setHeight("-1px");
textFieldSkip.setInputPrompt("Eg. 1 or 2");
mainLayout.addComponent(textFieldSkip);
return mainLayout;
}