public class Icon extends java.lang.Object implements UIGenerator
UIGenerator that adds an icon image.
The image is specified as a url so the alt-text is used in a non-web context.| Constructor and Description |
|---|
Icon(AppContext conn,
java.lang.String text,
java.lang.String image) |
| Modifier and Type | Method and Description |
|---|---|
ContentBuilder |
addContent(ContentBuilder builder) |
java.lang.String |
toString() |
public Icon(AppContext conn, java.lang.String text, java.lang.String image)
conn - AppContexttext - String alt-textimage - url of icon imagepublic ContentBuilder addContent(ContentBuilder builder)
addContent in interface UIGeneratorpublic java.lang.String toString()
toString in class java.lang.Object