本文整理了Java中com.vaadin.ui.Button.setIconAlternateText()
方法的一些代码示例,展示了Button.setIconAlternateText()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Button.setIconAlternateText()
方法的具体详情如下:
包路径:com.vaadin.ui.Button
类名称:Button
方法名:setIconAlternateText
暂无
代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin
@Override
public ButtonBuilder iconAlternateText(String iconAltText) {
getInstance().setIconAlternateText(iconAltText);
return this;
}
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin
@Override
public ButtonBuilder iconAlternateText(String iconAltText) {
getInstance().setIconAlternateText(iconAltText);
return this;
}
代码示例来源:origin: com.holon-platform.vaadin/holon-vaadin
@Override
public com.holonplatform.vaadin.components.builders.ButtonConfigurator.BaseButtonConfigurator iconAlternateText(
String iconAltText) {
getInstance().setIconAlternateText(iconAltText);
return this;
}
代码示例来源:origin: com.holon-platform.vaadin7/holon-vaadin
@Override
public com.holonplatform.vaadin7.components.builders.ButtonConfigurator.BaseButtonConfigurator iconAlternateText(
String iconAltText) {
getInstance().setIconAlternateText(iconAltText);
return this;
}
代码示例来源:origin: com.vaadin/vaadin-server
@Override
public void readDesign(Element design, DesignContext designContext) {
super.readDesign(design, designContext);
Attributes attr = design.attributes();
String content;
// plain-text (default is html)
Boolean plain = DesignAttributeHandler
.readAttribute(DESIGN_ATTR_PLAIN_TEXT, attr, Boolean.class);
if (plain == null || !plain) {
setCaptionAsHtml(true);
content = design.html();
} else {
// content is not intended to be interpreted as HTML,
// so html entities need to be decoded
content = DesignFormatter.decodeFromTextNode(design.html());
}
setCaption(content);
if (attr.hasKey("icon-alt")) {
setIconAlternateText(DesignAttributeHandler
.readAttribute("icon-alt", attr, String.class));
}
// click-shortcut
removeClickShortcut();
ShortcutAction action = DesignAttributeHandler
.readAttribute("click-shortcut", attr, ShortcutAction.class);
if (action != null) {
setClickShortcut(action.getKeyCode(), action.getModifiers());
}
}
内容来源于网络,如有侵权,请联系作者删除!