Package eu.miltema.uiannot
Annotation Type Icon
-
@Retention(RUNTIME) @Target(FIELD) public @interface IconAdds an icon to current element/widget. The interpretation of icon value() depends on implementing library. For example, the icon can be a JPEG image, a CSS class or one of these: See also: 1) http://fontawesome.io/icons 2) http://www.webhostinghub.com/glyphs/#howToUse 3) https://material.io/icons 4) Use http://fontello.com, to make custom font+CSS from SVG-files; Get SVG-files from https://www.flaticon.com
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description java.lang.StringcssClassjava.lang.StringfromFieldIcon is dynamic and its value is read from another field (not from annotation value=...).Icon.Positionposjava.lang.StringvalueHTML rendering depends on implementing library.
-
-
-
Element Detail
-
value
java.lang.String value
HTML rendering depends on implementing library. For example, it can be one of these: 1) for font-awesome, "fa fa-filter"; complete list is available at http://fontawesome.io/icons 2) for webhostinghub, "icon-filter"; complete list is available at http://www.webhostinghub.com/glyphs Properties value and fromField are mutually exclusive.- Returns:
- icon identifier
- Default:
- ""
-
-
-
pos
Icon.Position pos
- Returns:
- leading=icon appears before element, trailing=icon appears after element
- Default:
- eu.miltema.uiannot.Icon.Position.DEFAULT
-
-