本文整理了Java中com.vaadin.ui.Label.setVisible()
方法的一些代码示例,展示了Label.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setVisible()
方法的具体详情如下:
包路径:com.vaadin.ui.Label
类名称:Label
方法名:setVisible
暂无
代码示例来源:origin: com.vaadin/vaadin-server
label.setValue(status.getMessage().orElse(""));
label.setVisible(status.isError());
});
代码示例来源:origin: org.activiti/activiti-explorer
public void setDescription(String description) {
if(description != null) {
descriptionLabel.setValue(description);
descriptionLabel.setVisible(true);
} else {
descriptionLabel.setVisible(false);
}
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
/**
* Display an indication that the legend is being calculated. When the
* loading process is done one of the populate methods should be called.
*/
public void displayLoading() {
populateGroupsLegendByTargetCounts(Collections.emptyList());
loadingLabel.setVisible(true);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
public void setNotificationUnreadValue(final AtomicInteger notificationUnread) {
notificationsLabel.setValue(String.valueOf(notificationUnread.get()));
notificationsLabel.setVisible(notificationUnread.get() > 0);
}
代码示例来源:origin: eclipse/hawkbit
@Override
public void setNotificationUnreadValue(final AtomicInteger notificationUnread) {
notificationsLabel.setValue(String.valueOf(notificationUnread.get()));
notificationsLabel.setVisible(notificationUnread.get() > 0);
}
代码示例来源:origin: org.opencms/opencms-core
/**
* Displays the given login error.<p>
*
* @param messageHTML the error message
*/
void displayError(String messageHTML) {
m_error.setValue(messageHTML);
m_error.setVisible(true);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
@Override
public void undo() {
combobox.select(currentDefaultDisSetType);
selectedDefaultDisSetType = currentDefaultDisSetType;
changeIcon.setVisible(false);
}
代码示例来源:origin: eclipse/hawkbit
private Label createLabel() {
final Label label = new Label(name);
label.setVisible(visible);
final StringBuilder style = new StringBuilder(ValoTheme.LABEL_SMALL);
style.append(' ');
style.append(ValoTheme.LABEL_BOLD);
label.addStyleName(style.toString());
if (id != null) {
label.setId(id);
}
return label;
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private Label createLabel() {
final Label label = new Label(name);
label.setVisible(visible);
final StringBuilder style = new StringBuilder(ValoTheme.LABEL_SMALL);
style.append(' ');
style.append(ValoTheme.LABEL_BOLD);
label.addStyleName(style.toString());
if (id != null) {
label.setId(id);
}
return label;
}
代码示例来源:origin: org.opennms.features.topology/org.opennms.features.topology.app
@Override
public void setVisible(boolean visible) {
super.setVisible(visible);
if (!visible) {
noDefaultsAvailable.setVisible(false);
} else {
center();
}
}
}
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin
@Override
public void validationStatusChange(ValidationStatusEvent<?> statusChangeEvent) {
final String error = statusChangeEvent.getErrorMessage();
label.setValue((error != null) ? error : "");
if (hideWhenValid) {
// Only show the label when validation has failed
label.setVisible(statusChangeEvent.isInvalid());
}
}
代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin
@Override
public void validationStatusChange(ValidationStatusEvent<?> statusChangeEvent) {
final String error = statusChangeEvent.getErrorMessage();
label.setValue((error != null) ? error : "");
if (hideWhenValid) {
// Only show the label when validation has failed
label.setVisible(statusChangeEvent.isInvalid());
}
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initTitle() {
formTitle = new Label();
formTitle.addStyleName(ExplorerLayout.STYLE_H4);
formTitle.setVisible(false);
addComponent(formTitle);
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void initSuccessIndicator() {
successIndicator = new Label();
successIndicator.setIcon(Images.SUCCESS);
successIndicator.setVisible(false);
addComponent(successIndicator);
}
代码示例来源:origin: org.activiti/activiti-explorer
protected void addDescription() {
descriptionLabel = new Label();
descriptionLabel.addStyleName(Reindeer.LABEL_SMALL);
descriptionLabel.addStyleName(ExplorerLayout.STYLE_DEPLOYMENT_UPLOAD_DESCRIPTION);
descriptionLabel.setVisible(false);
addComponent(descriptionLabel);
}
代码示例来源:origin: org.activiti/activiti-explorer
public void uploadFinished(FinishedEvent event) {
// Update UI
if(getAttachmentName() == null || "".equals(getAttachmentName())) {
setAttachmentName(getFriendlyName(fileName));
}
fileUploaded = true;
successIndicator.setVisible(true);
successIndicator.setCaption(i18nManager.getMessage(Messages.RELATED_CONTENT_TYPE_FILE_UPLOADED, fileName));
form.setComponentError(null);
}
});
代码示例来源: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.opencms/opencms-core
/**
* Constructor.<p>
*
* @param locale the user locale
*/
public CmsPasswordForm(Locale locale) {
CmsVaadinUtils.readAndLocalizeDesign(this, OpenCms.getWorkplaceManager().getMessages(locale), null);
m_securityHint.setVisible(false);
m_password1Style = new CmsStyleVariable(m_password1Wrapper);
m_password2Style = new CmsStyleVariable(m_password2Wrapper);
m_oldPasswordStyle = new CmsStyleVariable(m_oldPasswordWrapper);
}
代码示例来源:origin: org.eclipse.hawkbit/hawkbit-ui
private void resetComponents() {
queryTextField.clear();
queryTextField.focus();
headerCaption.setVisible(true);
breadcrumbName.setValue(headerCaption.getValue());
nameLabel.setValue("");
saveButton.setEnabled(false);
titleFilterIconsLayout.removeStyleName(SPUIStyleDefinitions.TARGET_FILTER_CAPTION_LAYOUT);
}
代码示例来源:origin: org.ikasan/ikasan-dashboard-jar
public void valueChange(ValueChangeEvent event) {
if(event.getProperty() != null && event.getProperty().getValue() != null)
{
typeComboBox.refresh(((ConfigurationServiceClient)event.getProperty().getValue()).getName());
sourceContextComboBox.refresh(((ConfigurationServiceClient)event.getProperty().getValue()).getName(), null);
targetContextComboBox.refresh(((ConfigurationServiceClient)event.getProperty().getValue()).getName(), null, null);
typeLabel.setVisible(true);
typeComboBox.setVisible(true);
}
}
});
内容来源于网络,如有侵权,请联系作者删除!