JabRefIcons usable in FXML (e.g. <JabRefIconView glyph="REFRESH"/>).
Hosts the backing node produced by JabRefIcons#getGraphicNode() instead of being a FontIcon
itself, so it renders both Ikonli-font-backed glyphs (as a FontIcon) and SVG-backed glyphs
(see SvgIcon, rendered as a JabRefSvgIcon).
Theme coloring is handled by the hosted child itself (a FontIcon or JabRefSvgIcon, both of
which carry the icon style classes), so this view stays unclassed to avoid double-theming. The styleable
-fx-icon-color here is an explicit override knob — e.g. an inline style="-fx-icon-color: ..."
in FXML — and, when set, is forwarded to an SVG child as a color (overriding theme CSS).
| Modifier and Type | Field and Description |
|---|---|
| private static final CssMetaData | |
| private final StyleableObjectProperty | color
CSS-styleable color, fed by |
| private static final List | |
| private final ObjectProperty | glyph
This property is only needed to get proper IDE support in FXML files
(e.g. validation that parameter passed to "icon" is indeed of type |
| private final ObjectProperty |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public static List | getClassCssMetaData()
Hides javafx. Gets the |
| public List | getCssMetaData()
Overrides javafx. Implements javafx. This method should delegate to |
| public IconTheme. | |
| public Number | |
| public ObjectProperty | |
| public ObjectProperty | |
| private void | |
| public void | |
| public void | |
| private void |
| COLOR | back to summary |
|---|---|
| private static final CssMetaData<JabRefIconView, Paint> COLOR | |
| color | back to summary |
|---|---|
| private final StyleableObjectProperty<Paint> color CSS-styleable color, fed by | |
| CSS_META_DATA | back to summary |
|---|---|
| private static final List<CssMetaData<? extends Styleable, ?>> CSS_META_DATA | |
| glyph | back to summary |
|---|---|
| private final ObjectProperty<IconTheme. This property is only needed to get proper IDE support in FXML files
(e.g. validation that parameter passed to "icon" is indeed of type | |
| glyphSize | back to summary |
|---|---|
| private final ObjectProperty<Number> glyphSize | |
| JabRefIconView | back to summary |
|---|---|
| public JabRefIconView(IconTheme. | |
| JabRefIconView | back to summary |
|---|---|
| public JabRefIconView(IconTheme. | |
| JabRefIconView | back to summary |
|---|---|
| public JabRefIconView() | |
| applyColor | back to summary |
|---|---|
| private void applyColor() Forwards an explicit | |
| getClassCssMetaData | back to summary |
|---|---|
| public static List Hides javafx. Doc from javafx. Gets the | |
| getCssMetaData | back to summary |
|---|---|
| public List Overrides javafx. Implements javafx. Doc from javafx. This method should delegate to
| |
| getGlyph | back to summary |
|---|---|
| public IconTheme. | |
| getGlyphSize | back to summary |
|---|---|
| public Number getGlyphSize() | |
| glyphProperty | back to summary |
|---|---|
| public ObjectProperty | |
| glyphSizeProperty | back to summary |
|---|---|
| public ObjectProperty | |
| initialize | back to summary |
|---|---|
| private void initialize() | |
| setGlyph | back to summary |
|---|---|
| public void setGlyph(IconTheme. | |
| setGlyphSize | back to summary |
|---|---|
| public void setGlyphSize(Number value) | |
| updateGraphic | back to summary |
|---|---|
| private void updateGraphic() Rebuilds the hosted node from the current glyph, sized to the current glyph size. The icon applies the size to its own backing node type (font or SVG), so this view stays agnostic to which one it is. | |