本文整理了Java中com.vaadin.ui.Label.setImmediate()
方法的一些代码示例,展示了Label.setImmediate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setImmediate()
方法的具体详情如下:
包路径:com.vaadin.ui.Label
类名称:Label
方法名:setImmediate
暂无
代码示例来源:origin: fi.vm.sade.organisaatio/organisaatio-ui-widgets
@Override
public void setImmediate(boolean immediate) {
super.setImmediate(immediate);
searchResult.setImmediate(true);
searchTreePopup.setImmediate(immediate);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
/**
* 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;
}
代码示例来源:origin: eclipse/hawkbit
/**
* 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;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
/**
* Builds the title label.
*
* @return title-label
*/
protected Label buildTitleLabel() {
// create default title - even shown when no data is available
title = new LabelBuilder().name(titleText).buildCaptionLabel();
title.setImmediate(true);
title.setContentMode(ContentMode.HTML);
return title;
}
代码示例来源:origin: eclipse/hawkbit
/**
* Builds the title label.
*
* @return title-label
*/
protected Label buildTitleLabel() {
// create default title - even shown when no data is available
title = new LabelBuilder().name(titleText).buildCaptionLabel();
title.setImmediate(true);
title.setContentMode(ContentMode.HTML);
return title;
}
代码示例来源:origin: eclipse/hawkbit
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;
}
代码示例来源:origin: eclipse/hawkbit
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;
}
代码示例来源:origin: uk.q3c.krail/krail
private void build() {
HorizontalLayout layout = new HorizontalLayout();
display = new Label(translate.from(LabelKey.Message_Bar));
display.setImmediate(true);
layout.addComponent(display);
this.setContent(layout);
display.setId(ID.getId(Optional.empty(), this, display));
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
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;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
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;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
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;
}
代码示例来源:origin: eclipse/hawkbit
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;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private static Label createTotalTargetsLabel() {
final Label label = new LabelBuilder().visible(false).name("").buildLabel();
label.addStyleName("rollout-target-count-title");
label.setImmediate(true);
label.setSizeUndefined();
return label;
}
代码示例来源:origin: eclipse/hawkbit
private static Label createTotalTargetsLabel() {
final Label label = new LabelBuilder().visible(false).name("").buildLabel();
label.addStyleName("rollout-target-count-title");
label.setImmediate(true);
label.setSizeUndefined();
return label;
}
代码示例来源:origin: eclipse/hawkbit
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;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
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;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void createComponents(final String labelSoftwareModule) {
titleOfArtifactDetails = new LabelBuilder().id(UIComponentIdProvider.ARTIFACT_DETAILS_HEADER_LABEL_ID)
.name(HawkbitCommonUtil.getArtifactoryDetailsLabelId(labelSoftwareModule, i18n)).buildCaptionLabel();
titleOfArtifactDetails.setContentMode(ContentMode.HTML);
titleOfArtifactDetails.setSizeFull();
titleOfArtifactDetails.setImmediate(true);
maxMinButton = createMaxMinButton();
artifactDetailsTable = createArtifactDetailsTable();
artifactDetailsTable.setContainerDataSource(createArtifactLazyQueryContainer());
addGeneratedColumn(artifactDetailsTable);
if (!readOnly) {
addGeneratedColumnButton(artifactDetailsTable);
}
setTableColumnDetails(artifactDetailsTable);
}
代码示例来源:origin: eclipse/hawkbit
private void createComponents(final String labelSoftwareModule) {
titleOfArtifactDetails = new LabelBuilder().id(UIComponentIdProvider.ARTIFACT_DETAILS_HEADER_LABEL_ID)
.name(HawkbitCommonUtil.getArtifactoryDetailsLabelId(labelSoftwareModule, i18n)).buildCaptionLabel();
titleOfArtifactDetails.setContentMode(ContentMode.HTML);
titleOfArtifactDetails.setSizeFull();
titleOfArtifactDetails.setImmediate(true);
maxMinButton = createMaxMinButton();
artifactDetailsTable = createArtifactDetailsTable();
artifactDetailsTable.setContainerDataSource(createArtifactLazyQueryContainer());
addGeneratedColumn(artifactDetailsTable);
if (!readOnly) {
addGeneratedColumnButton(artifactDetailsTable);
}
setTableColumnDetails(artifactDetailsTable);
}
代码示例来源:origin: eclipse/hawkbit
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.class);
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.class);
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());
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
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.class);
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.class);
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());
}
内容来源于网络,如有侵权,请联系作者删除!