本文整理了Java中com.vaadin.v7.ui.Label.setVisible()
方法的一些代码示例,展示了Label.setVisible()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setVisible()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Label
类名称:Label
方法名:setVisible
暂无
代码示例来源:origin: OpenNMS/opennms
@Override
public void buttonClick(Button.ClickEvent event) {
List<Criteria> defaultCriteriaList = graphContainer.getTopologyServiceClient().getDefaults().getCriteria();
if (defaultCriteriaList != null && !defaultCriteriaList.isEmpty()) {
defaultCriteriaList.forEach(graphContainer::addCriteria);
graphContainer.redoLayout();
noDefaultsAvailable.setVisible(false);
} else {
noDefaultsAvailable.setVisible(true);
}
}
});
代码示例来源:origin: OpenNMS/opennms
@Override
public void setVisible(boolean visible) {
super.setVisible(visible);
if (!visible) {
noDefaultsAvailable.setVisible(false);
} else {
center();
}
}
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-vaadin-common-widgets
private void updateItemDescription() {
String description = null;
final Object itemId = getValue();
final Item item = getContainerDataSource().getItem(itemId);
boolean isDescriptionBlank = true;
if (item != null) {
Property property = item.getItemProperty(descriptionPropertyName);
if (property != null && property.getValue() != null) {
description = property.getValue().toString();
}
isDescriptionBlank = StringUtils.isBlank(description);
descriptionLabel.setValue(isDescriptionBlank ? "" : description);
}
if (isDescriptionBlank) {
mainLayout.removeStyleName("has-description");
} else {
mainLayout.addStyleName("has-description");
}
descriptionLabel.setVisible(!isDescriptionBlank);
}
}
代码示例来源:origin: OpenNMS/opennms
defaultLayout.setSpacing(true);
noDefaultsAvailable = new Label("No vertices found.<br/>Please add vertices manually.", ContentMode.HTML);
noDefaultsAvailable.setVisible(false);
内容来源于网络,如有侵权,请联系作者删除!