Here are the examples of the java api com.vaadin.ui.Label.setImmediate() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
21 Examples
19
View Complete Implementation : ArtifactDetailsLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private void createComponents(final String labelSoftwareModule) {
replacedleOfArtifactDetails = new LabelBuilder().id(UIComponentIdProvider.ARTIFACT_DETAILS_HEADER_LABEL_ID).name(HawkbitCommonUtil.getArtifactoryDetailsLabelId(labelSoftwareModule, i18n)).buildCaptionLabel();
replacedleOfArtifactDetails.setContentMode(ContentMode.HTML);
replacedleOfArtifactDetails.setSizeFull();
replacedleOfArtifactDetails.setImmediate(true);
maxMinButton = createMaxMinButton();
artifactDetailsTable = createArtifactDetailsTable();
artifactDetailsTable.setContainerDataSource(createArtifactLazyQueryContainer());
addGeneratedColumn(artifactDetailsTable);
if (!readOnly) {
addGeneratedColumnButton(artifactDetailsTable);
}
setTableColumnDetails(artifactDetailsTable);
}
19
View Complete Implementation : AddUpdateRolloutWindowLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private static Label createCountLabel() {
final Label groupSize = new LabelBuilder().visible(false).name("").buildLabel();
groupSize.addStyleName(ValoTheme.LABEL_TINY + " " + "rollout-target-count-message");
groupSize.setImmediate(true);
groupSize.setSizeUndefined();
return groupSize;
}
18
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;
}
18
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;
}
18
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;
}
18
View Complete Implementation : AutoCompleteTextFieldComponent.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private static Label createStatusIcon() {
final Label statusIcon = new Label();
statusIcon.setImmediate(true);
statusIcon.setContentMode(ContentMode.HTML);
statusIcon.setSizeFull();
setInitialStatusIconStyle(statusIcon);
statusIcon.setId(UIComponentIdProvider.VALIDATION_STATUS_ICON_ID);
return statusIcon;
}
18
View Complete Implementation : GroupsLegendLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private Label createLoadingLabel() {
final Label label = new LabelBuilder().visible(false).name("").buildLabel();
label.addStyleName("rollout-target-count-loading");
label.setImmediate(true);
label.setSizeUndefined();
label.setValue(i18n.getMessage("label.rollout.calculating"));
return label;
}
18
View Complete Implementation : GroupsLegendLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private static Label createTotalTargetsLabel() {
final Label label = new LabelBuilder().visible(false).name("").buildLabel();
label.addStyleName("rollout-target-count-replacedle");
label.setImmediate(true);
label.setSizeUndefined();
return label;
}
17
View Complete Implementation : MainLayout.java
Copyright Apache License 2.0
Author : alenca
Copyright Apache License 2.0
Author : alenca
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_4() {
// common part: create layout
horizontalLayout_4 = new HorizontalLayout();
horizontalLayout_4.setImmediate(false);
horizontalLayout_4.setWidth("100.0%");
horizontalLayout_4.setHeight("-1px");
horizontalLayout_4.setMargin(false);
// versionLabel
versionLabel = new Label();
versionLabel.setImmediate(false);
versionLabel.setWidth("-1px");
versionLabel.setHeight("-1px");
versionLabel.setValue("zklogtool web application 0.1");
horizontalLayout_4.addComponent(versionLabel);
horizontalLayout_4.setComponentAlignment(versionLabel, new Alignment(34));
return horizontalLayout_4;
}
17
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;
}
17
View Complete Implementation : DefaultGridHeader.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
/**
* Builds the replacedle label.
*
* @return replacedle-label
*/
protected Label buildreplacedleLabel() {
// create default replacedle - even shown when no data is available
replacedle = new LabelBuilder().name(replacedleText).buildCaptionLabel();
replacedle.setImmediate(true);
replacedle.setContentMode(ContentMode.HTML);
return replacedle;
}
17
View Complete Implementation : TargetBulkUpdateWindowLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
private static Label getStatusCountLabel() {
final Label countLabel = new Label();
countLabel.setImmediate(true);
countLabel.addStyleName("bulk-upload-label");
countLabel.setVisible(false);
countLabel.setCaptionAsHtml(true);
countLabel.setId(UIComponentIdProvider.BULK_UPLOAD_COUNT);
return countLabel;
}
17
View Complete Implementation : PageInformationComponent.java
Copyright Apache License 2.0
Author : opensecuritycontroller
Copyright Apache License 2.0
Author : opensecuritycontroller
private void initializeLabel(Label label) {
label.setImmediate(true);
label.setWidth("100%");
label.setHeight("-1px");
}
16
View Complete Implementation : AbstractTableDetailsLayout.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
protected void createComponents() {
caption = createHeaderCaption();
caption.setImmediate(true);
caption.setContentMode(ContentMode.HTML);
caption.setId(getDetailsHeaderCaptionId());
editButton = SPUIComponentProvider.getButton("", "", i18n.getMessage(UIMessageIdProvider.TOOLTIP_UPDATE), null, false, FontAwesome.PENCIL_SQUARE_O, SPUIButtonStyleNoBorder.clreplaced);
editButton.setId(getEditButtonId());
editButton.addClickListener(this::onEdit);
editButton.setEnabled(false);
manageMetadataBtn = SPUIComponentProvider.getButton("", "", i18n.getMessage(UIMessageIdProvider.TOOLTIP_METADATA_ICON), null, false, FontAwesome.LIST_ALT, SPUIButtonStyleNoBorder.clreplaced);
manageMetadataBtn.setId(getMetadataButtonId());
manageMetadataBtn.setDescription(i18n.getMessage(UIMessageIdProvider.TOOLTIP_METADATA_ICON));
manageMetadataBtn.addClickListener(this::showMetadata);
manageMetadataBtn.setEnabled(false);
detailsTab = SPUIComponentProvider.getDetailsTabSheet();
detailsTab.setImmediate(true);
detailsTab.setWidth(98, Unit.PERCENTAGE);
detailsTab.setHeight(90, Unit.PERCENTAGE);
detailsTab.addStyleName(SPUIStyleDefinitions.DETAILS_LAYOUT_STYLE);
detailsTab.setId(getTabSheetId());
}
15
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;
}
15
View Complete Implementation : XacmlAdminConsole.java
Copyright Apache License 2.0
Author : apache
Copyright Apache License 2.0
Author : apache
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("100.0%");
horizontalLayout_1.setHeight("40px");
horizontalLayout_1.setMargin(false);
// embedded_1
embedded_1 = new Embedded();
embedded_1.setImmediate(false);
embedded_1.setWidth("30px");
embedded_1.setHeight("30px");
embedded_1.setSource(new ThemeResource("img/att.png"));
embedded_1.setType(1);
embedded_1.setMimeType("image/png");
horizontalLayout_1.addComponent(embedded_1);
horizontalLayout_1.setComponentAlignment(embedded_1, new Alignment(33));
// caption
caption = new Label();
caption.setImmediate(false);
caption.setWidth("-1px");
caption.setHeight("-1px");
caption.setValue("Apache OpenAZ Admin Console");
horizontalLayout_1.addComponent(caption);
horizontalLayout_1.setExpandRatio(caption, 1.0f);
horizontalLayout_1.setComponentAlignment(caption, new Alignment(33));
// labelWelcome
labelWelcome = new Label();
labelWelcome.setImmediate(false);
labelWelcome.setWidth("-1px");
labelWelcome.setHeight("40px");
labelWelcome.setValue("Label");
horizontalLayout_1.addComponent(labelWelcome);
horizontalLayout_1.setComponentAlignment(labelWelcome, new Alignment(34));
return horizontalLayout_1;
}
15
View Complete Implementation : XacmlAdminConsole.java
Copyright MIT License
Author : att
Copyright MIT License
Author : att
@AutoGenerated
private HorizontalLayout buildHorizontalLayout_1() {
// common part: create layout
horizontalLayout_1 = new HorizontalLayout();
horizontalLayout_1.setImmediate(false);
horizontalLayout_1.setWidth("100.0%");
horizontalLayout_1.setHeight("40px");
horizontalLayout_1.setMargin(false);
// embedded_1
embedded_1 = new Embedded();
embedded_1.setImmediate(false);
embedded_1.setWidth("30px");
embedded_1.setHeight("30px");
embedded_1.setSource(new ThemeResource("img/att.png"));
embedded_1.setType(1);
embedded_1.setMimeType("image/png");
horizontalLayout_1.addComponent(embedded_1);
horizontalLayout_1.setComponentAlignment(embedded_1, new Alignment(33));
// caption
caption = new Label();
caption.setImmediate(false);
caption.setWidth("-1px");
caption.setHeight("-1px");
caption.setValue("AT&T Policy Engine Admin Console");
horizontalLayout_1.addComponent(caption);
horizontalLayout_1.setExpandRatio(caption, 1.0f);
horizontalLayout_1.setComponentAlignment(caption, new Alignment(33));
// labelWelcome
labelWelcome = new Label();
labelWelcome.setImmediate(false);
labelWelcome.setWidth("-1px");
labelWelcome.setHeight("40px");
labelWelcome.setValue("Label");
horizontalLayout_1.addComponent(labelWelcome);
horizontalLayout_1.setComponentAlignment(labelWelcome, new Alignment(34));
return horizontalLayout_1;
}
14
View Complete Implementation : RuleEditorWindow.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");
// labelRuleID
labelRuleID = new Label();
labelRuleID.setCaption("Rule ID");
labelRuleID.setImmediate(false);
labelRuleID.setWidth("100.0%");
labelRuleID.setHeight("-1px");
labelRuleID.setValue("Label");
mainLayout.addComponent(labelRuleID);
mainLayout.setExpandRatio(labelRuleID, 1.0f);
// optionGroupEffect
optionGroupEffect = new OptionGroup();
optionGroupEffect.setCaption("Choose the effect.");
optionGroupEffect.setImmediate(false);
optionGroupEffect.setWidth("-1px");
optionGroupEffect.setHeight("-1px");
optionGroupEffect.setInvalidAllowed(false);
optionGroupEffect.setRequired(true);
mainLayout.addComponent(optionGroupEffect);
// textAreaDescription
textAreaDescription = new TextArea();
textAreaDescription.setCaption("Enter a description for the Rule.");
textAreaDescription.setImmediate(false);
textAreaDescription.setWidth("100.0%");
textAreaDescription.setHeight("-1px");
textAreaDescription.setNullSettingAllowed(true);
textAreaDescription.setNullRepresentation("");
mainLayout.addComponent(textAreaDescription);
mainLayout.setExpandRatio(textAreaDescription, 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 : LabelBuilder.java
Copyright Eclipse Public License 1.0
Author : eclipse
Copyright Eclipse Public License 1.0
Author : eclipse
/**
* Build label.
*
* @return Label
*/
public Label buildLabel() {
final Label label = createLabel();
label.setImmediate(false);
label.setWidth("-1px");
label.setHeight("-1px");
if (StringUtils.hasText(caption)) {
label.setCaption(caption);
}
return label;
}
12
View Complete Implementation : XacmlErrorHandler.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");
// labelError
labelError = new Label();
labelError.setImmediate(false);
labelError.setWidth("100.0%");
labelError.setHeight("80px");
labelError.setValue("This holds error messages.");
mainLayout.addComponent(labelError);
// buttonGo
buttonGo = new Button();
buttonGo.setCaption("Ok");
buttonGo.setImmediate(true);
buttonGo.setWidth("-1px");
buttonGo.setHeight("-1px");
mainLayout.addComponent(buttonGo);
mainLayout.setComponentAlignment(buttonGo, new Alignment(48));
return mainLayout;
}
8
View Complete Implementation : PolicyEditorWindow.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");
// labelID
labelID = new Label();
labelID.setCaption("Policy Set ID");
labelID.setImmediate(false);
labelID.setWidth("100.0%");
labelID.setHeight("-1px");
labelID.setValue("Label");
mainLayout.addComponent(labelID);
// textFieldVersion
textFieldVersion = new TextField();
textFieldVersion.setCaption("Version");
textFieldVersion.setImmediate(false);
textFieldVersion.setDescription("The format is numbers only separated by decimal point.");
textFieldVersion.setWidth("-1px");
textFieldVersion.setHeight("-1px");
textFieldVersion.setInvalidAllowed(false);
textFieldVersion.setRequired(true);
textFieldVersion.setInputPrompt("Eg. 1 or 1.0 or 1.0.0 etc.");
mainLayout.addComponent(textFieldVersion);
// listSelectAlgorithm
listSelectAlgorithm = new ListSelect();
listSelectAlgorithm.setCaption("Policy Combining Algorithm");
listSelectAlgorithm.setImmediate(false);
listSelectAlgorithm.setWidth("100.0%");
listSelectAlgorithm.setHeight("-1px");
listSelectAlgorithm.setInvalidAllowed(false);
listSelectAlgorithm.setRequired(true);
mainLayout.addComponent(listSelectAlgorithm);
// textAreaDescription
textAreaDescription = new TextArea();
textAreaDescription.setCaption("Description");
textAreaDescription.setImmediate(false);
textAreaDescription.setWidth("100.0%");
textAreaDescription.setHeight("-1px");
mainLayout.addComponent(textAreaDescription);
mainLayout.setExpandRatio(textAreaDescription, 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;
}