本文整理了Java中com.vaadin.v7.ui.Label.setSizeUndefined()
方法的一些代码示例,展示了Label.setSizeUndefined()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Label.setSizeUndefined()
方法的具体详情如下:
包路径:com.vaadin.v7.ui.Label
类名称:Label
方法名:setSizeUndefined
暂无
代码示例来源:origin: info.magnolia.dam/magnolia-dam-app
@Override
public Component createThumbnailComponent(String description, File file, String mimeType) {
Label thumbnail = new Label();
thumbnail.setSizeUndefined();
thumbnail.addStyleName("preview-image");
thumbnail.addStyleName("file-preview");
thumbnail.addStyleName("icon-" + imageProvider.resolveIconClassName(mimeType));
return thumbnail;
}
代码示例来源:origin: info.magnolia/magnolia-module-rssaggregator
private Component createAutomaticUpdatePeriodControl(NativeSelect combo) {
final CssLayout wrapper = new CssLayout() {
@Override
protected String getCss(Component c) {
StringBuilder sb = new StringBuilder("display: inline-block; min-width: 50px;");
if (getComponentIndex(c) > 0) {
sb.append("margin-left: 5px");
}
return sb.toString();
}
};
wrapper.setWidth("100%");
Label captionLabel = new Label(translator.translate(REPEAT_EVERY));
captionLabel.setSizeUndefined();
wrapper.addComponent(captionLabel);
wrapper.addComponent(combo);
Label minutesLabel = new Label(translator.translate(MINUTES));
minutesLabel.setSizeUndefined();
wrapper.addComponent(minutesLabel);
return wrapper;
}
}
代码示例来源:origin: info.magnolia.ui/magnolia-ui-framework
public StubView(String iconId) {
layout.addStyleName("app-stub-view");
layout.setSizeFull();
final Label icon = new Label();
icon.addStyleName("icon");
icon.setSizeUndefined();
icon.addStyleName(iconId);
layout.addComponent(icon);
layout.setComponentAlignment(icon, Alignment.MIDDLE_CENTER);
}
代码示例来源:origin: OpenNMS/opennms
labelAgo.setSizeUndefined();
labelAgo.addStyleName("alerts-font");
labelAgo.setValue(ago);
labelId.setSizeUndefined();
labelId.addStyleName("alerts-font");
if (onmsNode != null) {
labelUei.setSizeUndefined();
labelUei.addStyleName("alerts-font");
labelUei.setValue(onmsAlarm.getUei());
代码示例来源:origin: OpenNMS/opennms
verticalLayout.addComponent(m_graphLayout);
m_nodeLabelComponent.setSizeUndefined();
m_graphLabelComponent.setSizeUndefined();
代码示例来源:origin: OpenNMS/opennms
labelTitle.setSizeUndefined();
labelTimeslot.setSizeUndefined();
代码示例来源:origin: OpenNMS/opennms
labelTitle.setSizeUndefined();
labelTimeslot.setSizeUndefined();
内容来源于网络,如有侵权,请联系作者删除!