下面列出了怎么用com.vaadin.server.FontIcon的API类实例代码及写法,或者点击链接到github查看源代码。
public BooleanRepresentation(Boolean value, FontIcon icon, String caption) {
this.value = value;
this.icon = icon;
this.caption = caption;
}
public FontIcon getIcon() {
return icon;
}
Gender(FontIcon icon) {
this.icon = icon;
}
public FontIcon getIcon() {
return icon;
}
public FontIcon getClosedIcon() {
return closedIcon;
}
public DisclosurePanel setClosedIcon(FontIcon closedIcon) {
this.closedIcon = closedIcon;
return setOpen(isOpen());
}
public FontIcon getOpenIcon() {
return openIcon;
}
public DisclosurePanel setOpenIcon(FontIcon openIcon) {
this.openIcon = openIcon;
return setOpen(isOpen());
}
public MetaFieldBuilder withCaptionAndIcon(FontIcon icon, String caption) {
captionHtml = icon.getHtml() + " " + StringUtils.trim(caption, 20, true);
return this;
}