Here are the examples of the java api com.vaadin.ui.VerticalLayout.setSpacing() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
128 Examples
19
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;
}
19
View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
Copyright Apache License 2.0
Author : tepi
private Component buildTreeTableTab() {
/* Create FilterTable */
FilterTreeTable filterTreeTable = buildFilterTreeTable();
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
mainLayout.addComponent(filterTreeTable);
mainLayout.setExpandRatio(filterTreeTable, 1);
mainLayout.addComponent(buildButtons(filterTreeTable));
Panel p = new Panel();
p.setSizeFull();
p.setContent(mainLayout);
return p;
}
19
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);
}
19
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;
}
19
View Complete Implementation : NoUserSessionHandler.java
Copyright Apache License 2.0
Author : cuba-platform
Copyright Apache License 2.0
Author : cuba-platform
protected void showNoUserSessionDialog(AppUI ui) {
Messages messages = beanLocator.get(Messages.clreplaced);
Connection connection = ui.getApp().getConnection();
// noinspection ConstantConditions
Locale locale = connection.getSession().getLocale();
Window dialog = new NoUserSessionExceptionDialog();
dialog.setStyleName("c-nousersession-dialog");
dialog.setCaption(messages.getMainMessage("dialogs.Information", locale));
dialog.setClosable(false);
dialog.setResizable(false);
dialog.setModal(true);
CubaLabel messageLab = new CubaLabel();
messageLab.setWidthUndefined();
messageLab.setValue(messages.getMainMessage("noUserSession.message", locale));
VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(false);
layout.setWidthUndefined();
layout.setStyleName("c-nousersession-dialog-layout");
layout.setSpacing(true);
dialog.setContent(layout);
CubaButton reloginBtn = new CubaButton();
reloginBtn.addStyleName(WebButton.PRIMARY_ACTION_STYLENAME);
reloginBtn.addClickListener(event -> relogin());
reloginBtn.setCaption(messages.getMainMessage(Type.OK.getMsgKey()));
String iconName = beanLocator.get(Icons.clreplaced).get(Type.OK.getIconKey());
reloginBtn.setIcon(beanLocator.get(IconResolver.clreplaced).getIconResource(iconName));
ClientConfig clientConfig = beanLocator.get(Configuration.clreplaced).getConfig(ClientConfig.clreplaced);
setClickShortcut(reloginBtn, clientConfig.getCommitShortcut());
reloginBtn.focus();
layout.addComponent(messageLab);
layout.addComponent(reloginBtn);
layout.setComponentAlignment(reloginBtn, Alignment.BOTTOM_RIGHT);
ui.addWindow(dialog);
dialog.center();
if (ui.isTestMode()) {
dialog.setCubaId("optionDialog");
reloginBtn.setCubaId("reloginBtn");
}
if (ui.isPerformanceTestMode()) {
dialog.setId(ui.getTestIdManager().getTestId("optionDialog"));
reloginBtn.setId(ui.getTestIdManager().getTestId("reloginBtn"));
}
}
19
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 createSelectTBSLComponent() {
l = new VerticalLayout();
l.setSpacing(true);
l.setSizeFull();
IndexedContainer ic = new IndexedContainer();
ic.addContainerProperty("label", String.clreplaced, null);
for (ExtendedTBSL tbsl : UserSession.getManager().tbsls) {
ic.addItem(tbsl).gereplacedemProperty("label").setValue(tbsl.getLabel());
}
tbslSelector = new NativeSelect();
tbslSelector.addStyleName("borderless");
tbslSelector.setWidth("100%");
tbslSelector.setHeight(null);
tbslSelector.setNullSelectionAllowed(false);
tbslSelector.setContainerDataSource(ic);
tbslSelector.setImmediate(true);
tbslSelector.addListener(new ValueChangeListener() {
@Override
public void valueChange(ValueChangeEvent event) {
onChangeKnowledgebase();
}
});
l.addComponent(tbslSelector);
knowledgebaseLogo = new Embedded("");
knowledgebaseLogo.setType(Embedded.TYPE_IMAGE);
knowledgebaseLogo.setHeight("50px");
l.addComponent(knowledgebaseLogo);
l.setComponentAlignment(knowledgebaseLogo, Alignment.MIDDLE_CENTER);
l.setExpandRatio(knowledgebaseLogo, 1f);
return l;
}
19
View Complete Implementation : JasperReportScheduleLayout.java
Copyright GNU General Public License v3.0
Author : rlsutton1
Copyright GNU General Public License v3.0
Author : rlsutton1
@Override
public TabSheet buildEditor(ValidatingFieldGroup<ReportEmailScheduleEnreplacedy> validatingFieldGroup) {
TabSheet tabsheet = new TabSheet();
tabsheet.setSizeFull();
VerticalLayout main = new VerticalLayout();
main.setSpacing(true);
main.setMargin(true);
main.setSizeFull();
tabsheet.addTab(main, "Email");
main.addComponent(emailTargetLayout);
FormHelper<ReportEmailScheduleEnreplacedy> helper = new FormHelper<ReportEmailScheduleEnreplacedy>(main, fieldGroup);
reportreplacedle = helper.bindTextField("Report", ReportEmailScheduleEnreplacedy_.reportreplacedle);
reportreplacedle.setReadOnly(true);
sender = helper.bindEnreplacedyField("From", ReportEmailScheduleEnreplacedy_.sender, ReportEmailSender_.username);
sender.setReadOnly(true);
outputFormat = helper.bindEnumField("Output format", ReportEmailScheduleEnreplacedy_.outputFormat.getName(), OutputFormat.clreplaced);
outputFormat.removeItem(OutputFormat.HTML);
helper.bindTextField("Subject", ReportEmailScheduleEnreplacedy_.subject);
CKEditorEmailField message = helper.bindEditorField(ReportEmailScheduleEnreplacedy_.message, false);
helper.bindTextField("Report Log", ReportEmailScheduleEnreplacedy_.reportLog.getName()).setReadOnly(true);
main.setExpandRatio(message, 1);
TopVerticalLayout scheduleWrapper = new TopVerticalLayout();
scheduleWrapper.setSizeFull();
tabsheet.addTab(scheduleWrapper, "Schedule");
FormLayout scheduleForm = new FormLayout();
scheduleForm.setSizeFull();
scheduleForm.setMargin(true);
scheduleWrapper.addComponent(scheduleForm);
buildScheduleTab(validatingFieldGroup, scheduleForm, helper);
VerticalLayout paramWrapper = new VerticalLayout();
paramWrapper.setSizeFull();
tabsheet.addTab(paramWrapper, "Parameters");
paramForm = new VerticalLayout();
paramForm.setSizeFull();
paramForm.setMargin(true);
paramWrapper.addComponent(paramForm);
return tabsheet;
}
19
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;
}
19
View Complete Implementation : MismatchedUserSessionHandler.java
Copyright Apache License 2.0
Author : cuba-platform
Copyright Apache License 2.0
Author : cuba-platform
protected void showMismatchedSessionDialog(AppUI ui) {
Messages messages = beanLocator.get(Messages.clreplaced);
Connection connection = ui.getApp().getConnection();
// noinspection ConstantConditions
Locale locale = connection.getSession().getLocale();
Window dialog = new MismatchedUserSessionExceptionDialog();
dialog.setStyleName("c-sessionchanged-dialog");
dialog.setCaption(messages.getMainMessage("dialogs.Information", locale));
dialog.setClosable(false);
dialog.setResizable(false);
dialog.setModal(true);
CubaLabel messageLab = new CubaLabel();
messageLab.setWidthUndefined();
messageLab.setValue(messages.getMainMessage("sessionChangedMsg", locale));
VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(false);
layout.setWidthUndefined();
layout.setStyleName("c-sessionchanged-dialog-layout");
layout.setSpacing(true);
dialog.setContent(layout);
CubaButton reloginBtn = new CubaButton();
reloginBtn.addStyleName(WebButton.PRIMARY_ACTION_STYLENAME);
reloginBtn.setCaption(messages.getMainMessage(DialogAction.Type.OK.getMsgKey(), locale));
reloginBtn.addClickListener(event -> ui.getApp().recreateUi(ui));
String iconName = beanLocator.get(Icons.clreplaced).get(DialogAction.Type.OK.getIconKey());
reloginBtn.setIcon(beanLocator.get(IconResolver.clreplaced).getIconResource(iconName));
ClientConfig clientConfig = beanLocator.get(Configuration.clreplaced).getConfig(ClientConfig.clreplaced);
setClickShortcut(reloginBtn, clientConfig.getCommitShortcut());
reloginBtn.focus();
layout.addComponent(messageLab);
layout.addComponent(reloginBtn);
layout.setComponentAlignment(reloginBtn, Alignment.BOTTOM_RIGHT);
ui.addWindow(dialog);
dialog.center();
if (ui.isTestMode()) {
dialog.setCubaId("optionDialog");
reloginBtn.setCubaId("reloginBtn");
}
if (ui.isPerformanceTestMode()) {
dialog.setId(ui.getTestIdManager().getTestId("optionDialog"));
reloginBtn.setId(ui.getTestIdManager().getTestId("reloginBtn"));
}
}
19
View Complete Implementation : MultiFileUpload.java
Copyright GNU Affero General Public License v3.0
Author : MyCollab
Copyright GNU Affero General Public License v3.0
Author : MyCollab
protected Layout getprogressBarsLayout() {
if (progressBars == null) {
final VerticalLayout verticalLayout = new VerticalLayout();
verticalLayout.setMargin(false);
verticalLayout.setSpacing(false);
progressBars = verticalLayout;
}
return progressBars;
}
19
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;
}
19
View Complete Implementation : UploadArtifactView.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout createDetailsAndUploadLayout() {
detailAndUploadLayout = new VerticalLayout();
detailAndUploadLayout.addComponent(artifactDetailsLayout);
detailAndUploadLayout.setComponentAlignment(artifactDetailsLayout, Alignment.TOP_CENTER);
detailAndUploadLayout.setExpandRatio(artifactDetailsLayout, 1.0F);
if (permChecker.hasCreateRepositoryPermission()) {
detailAndUploadLayout.addComponent(dropAreaLayout.getDropAreaWrapper());
}
detailAndUploadLayout.setSizeFull();
detailAndUploadLayout.addStyleName("group");
detailAndUploadLayout.setSpacing(true);
return detailAndUploadLayout;
}
19
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;
}
19
View Complete Implementation : AbstractHawkbitLoginUI.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
protected Component buildLoginForm() {
final VerticalLayout loginPanel = new VerticalLayout();
loginPanel.setSizeUndefined();
loginPanel.setSpacing(true);
loginPanel.addStyleName("login-panel");
Responsive.makeResponsive(loginPanel);
loginPanel.addComponent(buildFields());
if (isDemo) {
loginPanel.addComponent(buildDisclaimer());
}
loginPanel.addComponent(buildLinks());
checkBrowserSupport(loginPanel);
return loginPanel;
}
19
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;
}
19
View Complete Implementation : TargetBulkUpdateWindowLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private void buildLayout() {
mainLayout = new VerticalLayout();
mainLayout.setSpacing(Boolean.TRUE);
mainLayout.setSizeUndefined();
mainLayout.setWidth("200px");
final HorizontalLayout captionLayout = new HorizontalLayout();
captionLayout.setSizeFull();
captionLayout.addComponents(windowCaption, minimizeButton, closeButton);
captionLayout.setExpandRatio(windowCaption, 1.0F);
captionLayout.addStyleName("v-window-header");
final HorizontalLayout uploaderLayout = new HorizontalLayout();
uploaderLayout.addComponent(bulkUploader);
uploaderLayout.addComponent(linkToSystemConfigHelp);
uploaderLayout.setComponentAlignment(linkToSystemConfigHelp, Alignment.BOTTOM_RIGHT);
uploaderLayout.setExpandRatio(bulkUploader, 1.0F);
uploaderLayout.setSizeFull();
mainLayout.addComponents(captionLayout, dsNamecomboBox, descTextArea, tokenVerticalLayout, descTextArea, progressBar, targetsCountLabel, uploaderLayout);
}
19
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;
}
19
View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
Copyright Apache License 2.0
Author : tepi
private Component buildNormalTableTab() {
/* Create FilterTable */
FilterTable normalFilterTable = buildFilterTable();
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
mainLayout.addComponent(normalFilterTable);
mainLayout.setExpandRatio(normalFilterTable, 1);
mainLayout.addComponent(buildButtons(normalFilterTable));
Panel p = new Panel();
p.setSizeFull();
p.setContent(mainLayout);
return p;
}
19
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;
}
19
View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
Copyright Apache License 2.0
Author : tepi
private Component buildPagedTableTab() {
/* Create FilterTable */
PagedFilterTable<IndexedContainer> pagedFilterTable = buildPagedFilterTable();
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
mainLayout.addComponent(pagedFilterTable);
mainLayout.addComponent(pagedFilterTable.createControls(new PagedFilterControlConfig()));
mainLayout.addComponent(buildButtons(pagedFilterTable));
return mainLayout;
}
19
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;
}
19
View Complete Implementation : MainView.java
Copyright GNU General Public License v3.0
Author : AskNowQA
Copyright GNU General Public License v3.0
Author : AskNowQA
private Window createOtherSolutionsWindow() {
final Window otherSolutionsWindow = new Window();
otherSolutionsWindow.setWidth("700px");
otherSolutionsWindow.setHeight("700px");
otherSolutionsWindow.addListener(new Window.CloseListener() {
@Override
public void windowClose(CloseEvent e) {
MainView.this.getApplication().getMainWindow().removeWindow(otherSolutionsWindow);
}
});
VerticalLayout content = new VerticalLayout();
content.setSizeFull();
content.setSpacing(true);
otherSolutionsWindow.setContent(content);
Label label = new Label("Did you mean?");
label.setHeight(null);
label.addStyleName("did-you-mean-header");
content.addComponent(label);
final List<Entry<String, String>> otherSolutions = UserSession.getManager().getMoreSolutions();
final Table table = new Table();
table.setSizeFull();
table.setImmediate(true);
table.addContainerProperty("solution", Label.clreplaced, null);
table.setColumnHeaderMode(Table.COLUMN_HEADER_MODE_HIDDEN);
content.addComponent(table);
content.setExpandRatio(table, 1f);
Item item;
for (Entry<String, String> sol : otherSolutions) {
item = table.addItem(sol);
item.gereplacedemProperty("solution").setValue(sol);
}
table.addGeneratedColumn("solution", new ColumnGenerator() {
@Override
public Component generateCell(Table source, final Object itemId, Object columnId) {
final Entry<String, String> entry = (Entry<String, String>) itemId;
HorizontalLayout c = new HorizontalLayout();
c.setHeight("30px");
c.setWidth(null);
c.addStyleName("tweet");
VerticalLayout buttons = new VerticalLayout();
buttons.setHeight("100%");
buttons.addStyleName("buttons");
Button posExampleButton = new Button();
posExampleButton.setIcon(new ThemeResource("images/thumb_up.png"));
posExampleButton.addStyleName(BaseTheme.BUTTON_LINK);
posExampleButton.setDescription("Click if this is what you intended.");
posExampleButton.addListener(new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
MainView.this.getApplication().getMainWindow().removeWindow(otherSolutionsWindow);
Answer newAnswer = UserSession.getManager().createAnswer(entry.getKey());
resultHolderPanel.removeAllComponents();
showAnswer(newAnswer);
}
});
buttons.addComponent(posExampleButton);
c.addComponent(buttons);
Label solutionLabel = new Label(entry.getValue());
solutionLabel.addStyleName("other-solution-label");
c.addComponent(solutionLabel);
return c;
}
});
// more button
final Button moreButton = new Button("More");
moreButton.setHeight(null);
moreButton.addListener(new Button.ClickListener() {
@Override
public void buttonClick(ClickEvent event) {
List<Entry<String, String>> moreOtherSolutions = UserSession.getManager().getMoreSolutions(otherSolutions.size() + 1);
if (moreOtherSolutions.size() < 10) {
moreButton.setEnabled(false);
}
Item item;
for (Entry<String, String> sol : moreOtherSolutions) {
item = table.addItem(sol);
item.gereplacedemProperty("solution").setValue(sol);
}
otherSolutions.addAll(moreOtherSolutions);
}
});
content.addComponent(moreButton);
content.setComponentAlignment(moreButton, Alignment.MIDDLE_CENTER);
return otherSolutionsWindow;
}
19
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;
}
19
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 : 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;
}
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 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;
}
18
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;
}
18
View Complete Implementation : PIPImportWindow.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");
// upload_1
upload = new Upload();
upload.setImmediate(false);
upload.setWidth("-1px");
upload.setHeight("-1px");
mainLayout.addComponent(upload);
return mainLayout;
}
18
View Complete Implementation : WebTableFieldFactory.java
Copyright Apache License 2.0
Author : cuba-platform
Copyright Apache License 2.0
Author : cuba-platform
protected Component getComponentImplementation(com.haulmont.cuba.gui.components.Component columnComponent) {
com.vaadin.ui.Component composition = columnComponent.unwrapComposition(com.vaadin.ui.Component.clreplaced);
Component componentImpl = composition;
if (composition instanceof com.vaadin.v7.ui.Field && ((com.vaadin.v7.ui.Field) composition).isRequired()) {
// vaadin8 replace with CssLayout
VerticalLayout layout = new VerticalLayout();
layout.setMargin(false);
layout.setSpacing(false);
layout.addComponent(composition);
if (composition.getWidth() < 0) {
layout.setWidthUndefined();
}
componentImpl = layout;
}
return componentImpl;
}
18
View Complete Implementation : SPUIComponentProvider.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
/**
* Layout of tabs in detail tabsheet.
*
* @return VerticalLayout
*/
public static VerticalLayout getDetailTabLayout() {
final VerticalLayout layout = new VerticalLayout();
layout.setSpacing(true);
layout.setMargin(true);
layout.setImmediate(true);
return layout;
}
18
View Complete Implementation : DashboardMenu.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private VerticalLayout buildLinksAndVersion() {
final VerticalLayout links = new VerticalLayout();
links.setSpacing(true);
links.addStyleName("links");
final String linkStyle = "v-link";
if (!uiProperties.getLinks().getDoreplacedentation().getRoot().isEmpty()) {
final Link docuLink = SPUIComponentProvider.getLink(UIComponentIdProvider.LINK_DOreplacedENTATION, i18n.getMessage("link.doreplacedentation.name"), uiProperties.getLinks().getDoreplacedentation().getRoot(), FontAwesome.QUESTION_CIRCLE, "_blank", linkStyle);
docuLink.setSizeFull();
links.addComponent(docuLink);
links.setComponentAlignment(docuLink, Alignment.BOTTOM_CENTER);
}
if (!uiProperties.getLinks().getUserManagement().isEmpty()) {
final Link userManagementLink = SPUIComponentProvider.getLink(UIComponentIdProvider.LINK_USERMANAGEMENT, i18n.getMessage("link.usermanagement.name"), uiProperties.getLinks().getUserManagement(), FontAwesome.USERS, "_blank", linkStyle);
links.addComponent(userManagementLink);
userManagementLink.setSizeFull();
links.setComponentAlignment(userManagementLink, Alignment.BOTTOM_CENTER);
}
if (!uiProperties.getLinks().getSupport().isEmpty()) {
final Link supportLink = SPUIComponentProvider.getLink(UIComponentIdProvider.LINK_SUPPORT, i18n.getMessage("link.support.name"), uiProperties.getLinks().getSupport(), FontAwesome.ENVELOPE_O, "", linkStyle);
supportLink.setSizeFull();
links.addComponent(supportLink);
links.setComponentAlignment(supportLink, Alignment.BOTTOM_CENTER);
}
final Component buildVersionInfo = buildVersionInfo();
links.addComponent(buildVersionInfo);
links.setComponentAlignment(buildVersionInfo, Alignment.BOTTOM_CENTER);
links.setSizeFull();
links.setHeightUndefined();
return links;
}
18
View Complete Implementation : SimpleBoxFormBuilder.java
Copyright Apache License 2.0
Author : chelu
Copyright Apache License 2.0
Author : chelu
/**
* Gets current column pointed to cursor, create one if none.
* @return a new or existent column Box.
*/
private VerticalLayout getColumn() {
VerticalLayout column = null;
if (index < columns.size()) {
column = (VerticalLayout) columns.get(index);
} else {
column = Box.createVerticalBox();
column.setSpacing(spacing);
column.addStyleName("jd-box-column");
if (debug)
column.addStyleName("jd-box-column-debug");
columns.add(column);
container.addComponent(column);
columnsWidth.add(SIZE_UNDEFINED);
}
return column;
}
18
View Complete Implementation : FlatQueryBuilder.java
Copyright Apache License 2.0
Author : korpling
Copyright Apache License 2.0
Author : korpling
private void launch(QueryController cp) {
this.cp = cp;
rsc = new ReducingStringComparator();
this.query = "";
mainLayout = new VerticalLayout();
// tracking lists for vertical nodes, edgeboxes and metaboxes
vnodes = new ArrayList<>();
eboxes = new ArrayList<>();
mboxes = new ArrayList<>();
spbox = null;
// buttons and checks
btGo = new Button(BUTTON_GO_LABEL, (Button.ClickListener) this);
btGo.setStyleName(ChameleonTheme.BUTTON_SMALL);
btClear = new Button(BUTTON_CLEAR_LABEL, (Button.ClickListener) this);
btClear.setStyleName(ChameleonTheme.BUTTON_SMALL);
btInverse = new Button(BUTTON_INV_LABEL, (Button.ClickListener) this);
btInverse.setStyleName(ChameleonTheme.BUTTON_SMALL);
btInitLanguage = new Button("Initialize", (Button.ClickListener) this);
btInitLanguage.setDescription(INFO_INIT_LANG);
btInitSpan = new Button("Initialize", (Button.ClickListener) this);
btInitSpan.setDescription(INFO_INIT_SPAN);
btInitMeta = new Button("Initialize", (Button.ClickListener) this);
btInitMeta.setDescription(INFO_INIT_META);
filtering = new NativeSelect("Filtering mechanisms");
filtering.setDescription(INFO_FILTER);
ReducingStringComparator rdc = new ReducingStringComparator();
Set mappings = rdc.getMappings().keySet();
int i;
for (i = 0; i < mappings.size(); i++) {
String mapname = (String) mappings.toArray()[i];
filtering.addItem(i);
filtering.sereplacedemCaption(i, mapname);
}
filtering.addItem(i + 1);
filtering.sereplacedemCaption(i + 1, "generic");
filtering.select(i + 1);
filtering.setNullSelectionAllowed(false);
filtering.setImmediate(true);
// language layout
language = new HorizontalLayout();
languagenodes = new HorizontalLayout();
language.addComponent(languagenodes);
language.addComponent(btInitLanguage);
language.setMargin(true);
language.setCaption(LANG_CAPTION);
language.addStyleName("linguistics-panel");
// span layout
span = new HorizontalLayout();
span.setSpacing(true);
span.addComponent(btInitSpan);
span.setMargin(true);
span.setCaption(SPAN_CAPTION);
span.addStyleName("span-panel");
// meta layout
meta = new HorizontalLayout();
meta.setSpacing(true);
meta.addComponent(btInitMeta);
meta.setMargin(true);
meta.setCaption(META_CAPTION);
meta.addStyleName("meta-panel");
// toolbar layout
toolbar = new HorizontalLayout();
toolbar.setSpacing(true);
toolbar.addComponent(btGo);
toolbar.addComponent(btClear);
toolbar.addComponent(btInverse);
toolbar.setMargin(true);
toolbar.setCaption(TOOLBAR_CAPTION);
toolbar.addStyleName("toolbar-panel");
// advanced
advanced = new HorizontalLayout();
advanced.setSpacing(true);
advanced.addComponent(filtering);
advanced.setMargin(true);
advanced.setCaption(ADVANCED_CAPTION);
advanced.addStyleName("advanced-panel");
// put everything on the layout
mainLayout.setSpacing(true);
mainLayout.addComponent(language);
mainLayout.addComponent(span);
mainLayout.addComponent(meta);
mainLayout.addComponent(toolbar);
mainLayout.addComponent(advanced);
setContent(mainLayout);
getContent().setWidth("100%");
getContent().setHeight("-1px");
}
18
View Complete Implementation : JasperReportScheduleLayout.java
Copyright GNU General Public License v3.0
Author : rlsutton1
Copyright GNU General Public License v3.0
Author : rlsutton1
private void dateParamsHandleRowChange(EnreplacedyItem<ReportEmailScheduleEnreplacedy> item) {
paramForm.removeAllComponents();
paramForm.setSpacing(true);
paramForm.setSizeFull();
paramForm.setMargin(true);
updaters.clear();
if (item != null) {
ReportEmailScheduleEnreplacedy enreplacedy = item.getEnreplacedy();
List<DateParameterOffsetType> offsetTypes = new LinkedList<DateParameterOffsetType>();
for (DateParameterOffsetType offsetType : DateParameterOffsetType.values()) {
offsetTypes.add(offsetType);
}
for (final ScheduledDateParameter dateParam : enreplacedy.getDateParameters()) {
HorizontalLayout dateLayout = new HorizontalLayout();
dateLayout.setSizeFull();
dateLayout.setSpacing(true);
dateLayout.setHeight("55");
final ComboBox offsetType = new ComboBox(dateParam.getLabel(), offsetTypes);
offsetType.setImmediate(true);
offsetType.setNullSelectionAllowed(false);
offsetType.setWidth("140");
final DateField startDateField = new DateField("From", dateParam.getStartDate());
startDateField.setResolution(Resolution.DAY);
startDateField.setDateFormat("yyyy/MM/dd");
// pickers visability doesn't change, it's determined by the
// parameter type which can't be changed here
final TimePicker startTimePicker = new TimePicker("");
startTimePicker.setValues(dateParam.getStartDate());
startTimePicker.setVisible(dateParam.getType() == DateParameterType.DATE_TIME);
final DateField endDateField = new DateField("To", dateParam.getEndDate());
endDateField.setResolution(Resolution.DAY);
endDateField.setDateFormat("yyyy/MM/dd");
// pickers visability doesn't change, it's determined by the
// parameter type which can't be changed here
final TimePicker endTimePicker = new TimePicker("");
endTimePicker.setValues(dateParam.getStartDate());
endTimePicker.setVisible(dateParam.getType() == DateParameterType.DATE_TIME);
offsetType.addValueChangeListener(new ValueChangeListener() {
private static final long serialVersionUID = 7081417825842355432L;
@Override
public void valueChange(ValueChangeEvent event) {
DateParameterOffsetType offsetTypeValue = (DateParameterOffsetType) event.getProperty().getValue();
startDateField.setVisible(offsetTypeValue == DateParameterOffsetType.CONSTANT);
endDateField.setVisible(offsetTypeValue == DateParameterOffsetType.CONSTANT);
}
});
offsetType.setValue(dateParam.getOffsetType());
dateLayout.addComponent(offsetType);
dateLayout.addComponent(startDateField);
dateLayout.addComponent(startTimePicker);
dateLayout.addComponent(endDateField);
dateLayout.addComponent(endTimePicker);
paramForm.addComponent(dateLayout);
updaters.add(new EnreplacedyParamUpdater(dateParam.getLabel(), offsetType, startDateField, startTimePicker, endDateField, endTimePicker));
}
}
}
18
View Complete Implementation : NestedJavaBeansInAVaadinFieldGroupUI.java
Copyright The Unlicense
Author : rolandkrueger
Copyright The Unlicense
Author : rolandkrueger
private Component buildLayout() {
VerticalLayout layout = new VerticalLayout();
layout.setMargin(true);
layout.setSpacing(true);
buildBeanItemContainerForm();
buildIndexedContainerForm();
TabSheet tabsheet = new TabSheet();
tabsheet.addTab(beanItemContainerForm, "Department selector's container data source: BeanItemContainer");
tabsheet.addTab(indexedContainerForm, "Department selector's container data source: IndexedContainer");
layout.setWidth("100%");
layout.addComponent(new Label(DESCRIPTION));
layout.addComponent(tabsheet);
layout.addComponent(buildEmployeeTable());
return layout;
}
18
View Complete Implementation : FilterTableDemoUI.java
Copyright Apache License 2.0
Author : tepi
Copyright Apache License 2.0
Author : tepi
private Component buildTableTab() {
/* Create FilterTable */
final Table normalFilterTable = buildTable();
final VerticalLayout mainLayout = new VerticalLayout();
mainLayout.setSizeFull();
mainLayout.setSpacing(true);
mainLayout.setMargin(true);
mainLayout.addComponent(normalFilterTable);
mainLayout.setExpandRatio(normalFilterTable, 1);
Button addFilter = new Button("Add a filter");
addFilter.addClickListener(event -> {
Filterable f = ((Filterable) normalFilterTable.getContainerDataSource());
f.addContainerFilter(new Filter() {
@Override
public boolean preplacedesFilter(Object itemId, Item item) throws UnsupportedOperationException {
return item != null && ((String) item.gereplacedemProperty("name").getValue()).contains("5");
}
@Override
public boolean appliesToProperty(Object propertyId) {
return "name".equals(propertyId);
}
});
});
mainLayout.addComponent(addFilter);
Panel p = new Panel();
p.setSizeFull();
p.setContent(mainLayout);
return p;
}
18
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;
}
18
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;
}
18
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;
}
18
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;
}
18
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;
}
18
View Complete Implementation : ExpressionEditorWindow.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");
// comboBox
comboBox = new ComboBox();
comboBox.setImmediate(false);
comboBox.setWidth("-1px");
comboBox.setHeight("-1px");
mainLayout.addComponent(comboBox);
// treeExpression
treeExpression = new Tree();
treeExpression.setImmediate(false);
treeExpression.setWidth("100.0%");
treeExpression.setHeight("-1px");
mainLayout.addComponent(treeExpression);
mainLayout.setExpandRatio(treeExpression, 1.0f);
return mainLayout;
}
18
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;
}
17
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;
}
17
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;
}
17
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;
}
17
View Complete Implementation : SQLPIPConfigurationComponent.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");
// comboBoxConnectionType
comboBoxConnectionType = new ComboBox();
comboBoxConnectionType.setCaption("Type of SQL Connection");
comboBoxConnectionType.setImmediate(false);
comboBoxConnectionType.setWidth("-1px");
comboBoxConnectionType.setHeight("-1px");
mainLayout.addComponent(comboBoxConnectionType);
// textFieldDataSource
textFieldDataSource = new TextField();
textFieldDataSource.setCaption("Data Source");
textFieldDataSource.setImmediate(false);
textFieldDataSource.setWidth("-1px");
textFieldDataSource.setHeight("-1px");
mainLayout.addComponent(textFieldDataSource);
mainLayout.setExpandRatio(textFieldDataSource, 1.0f);
// comboBoxSQLDriver
comboBoxSQLDriver = new ComboBox();
comboBoxSQLDriver.setCaption("JDBC Driver");
comboBoxSQLDriver.setImmediate(false);
comboBoxSQLDriver.setWidth("-1px");
comboBoxSQLDriver.setHeight("-1px");
mainLayout.addComponent(comboBoxSQLDriver);
mainLayout.setExpandRatio(comboBoxSQLDriver, 1.0f);
// textFieldConnectionURL
textFieldConnectionURL = new TextField();
textFieldConnectionURL.setCaption("Connection URL");
textFieldConnectionURL.setImmediate(false);
textFieldConnectionURL.setWidth("-1px");
textFieldConnectionURL.setHeight("-1px");
mainLayout.addComponent(textFieldConnectionURL);
mainLayout.setExpandRatio(textFieldConnectionURL, 1.0f);
// textFieldUser
textFieldUser = new TextField();
textFieldUser.setCaption("User");
textFieldUser.setImmediate(false);
textFieldUser.setWidth("-1px");
textFieldUser.setHeight("-1px");
mainLayout.addComponent(textFieldUser);
mainLayout.setExpandRatio(textFieldUser, 1.0f);
// textFieldPreplacedword
textFieldPreplacedword = new PreplacedwordField();
textFieldPreplacedword.setCaption("Preplacedword");
textFieldPreplacedword.setImmediate(false);
textFieldPreplacedword.setWidth("-1px");
textFieldPreplacedword.setHeight("-1px");
mainLayout.addComponent(textFieldPreplacedword);
mainLayout.setExpandRatio(textFieldPreplacedword, 1.0f);
// buttonTest
buttonTest = new Button();
buttonTest.setCaption("Test Connection");
buttonTest.setImmediate(true);
buttonTest.setWidth("-1px");
buttonTest.setHeight("-1px");
mainLayout.addComponent(buttonTest);
mainLayout.setComponentAlignment(buttonTest, new Alignment(48));
return mainLayout;
}
17
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;
}
17
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;
}
17
View Complete Implementation : ExpressionSelectionWindow.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");
// optionGroupExpression
optionGroupExpression = new OptionGroup();
optionGroupExpression.setCaption("Select One Of The Following Types of Expressions");
optionGroupExpression.setImmediate(false);
optionGroupExpression.setWidth("-1px");
optionGroupExpression.setHeight("-1px");
mainLayout.addComponent(optionGroupExpression);
// buttonSave
buttonSave = new Button();
buttonSave.setCaption("Select");
buttonSave.setImmediate(false);
buttonSave.setWidth("-1px");
buttonSave.setHeight("-1px");
mainLayout.addComponent(buttonSave);
mainLayout.setComponentAlignment(buttonSave, new Alignment(24));
return mainLayout;
}