本文整理汇总了Java中com.vaadin.shared.ui.ContentMode.TEXT属性的典型用法代码示例。如果您正苦于以下问题:Java ContentMode.TEXT属性的具体用法?Java ContentMode.TEXT怎么用?Java ContentMode.TEXT使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类com.vaadin.shared.ui.ContentMode
的用法示例。
在下文中一共展示了ContentMode.TEXT属性的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: SystemView
public SystemView() {
Label caption = new Label("Tamaya Runtime");
Label description = new Label(
"This view shows the system components currently active. This information may be useful when checking if an" +
"configuration extension is loaded and for inspection of the configuration and property sources" +
"invovlved.",
ContentMode.TEXT);
configTree.setHeight("100%");
configTree.setWidth("100%");
fillAccordion();
addComponents(caption, description, configTree);
caption.addStyleName(UIConstants.LABEL_HUGE);
}
示例2: setValue
@Override
public void setValue(String text) {
removeAllComponents();
Label label = !StringUtils.isEmpty(text) ? new Label(text, ContentMode.TEXT) : new Label(" ", ContentMode.HTML);
label.addStyleName("v-html-readonly");
addComponent(label);
}
示例3: LabelButton
/**
* Create new LabelButton with content text and click listener
* @param content Content shown in label
* @param clickListener Label's click listener
*/
public LabelButton(String content, LabelClickListener clickListener) {
this(content, ContentMode.TEXT, clickListener);
}
示例4: IdleCountdownLabel
/**
* Creates new IdleCountdownLabel with given text formatting
* @param formatting Formatting of text shown, check IdleAlarmFormatting for template variables
*/
public IdleCountdownLabel(String formatting) {
this(formatting, ContentMode.TEXT);
}