public AccordionHeaderDataRenderer() { getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT); } }
/** * Sets the opacity of the watermark. * * @param opacity * This decorator's opacity */ public void setOpacity(float opacity) { this.opacity = opacity; imageView.getStyles().put("opacity", opacity); }
public LinkButtonDataRenderer() { getStyles().put("horizontalSpacing", 4); getColumns().add(new TablePane.Column()); getColumns().add(new TablePane.Column(1, true)); TablePane.Row row = new TablePane.Row(); row.add(imageView); row.add(label); getRows().add(row); label.getStyles().put("wrapText", true); }
protected void renderStyles(Spinner spinner) { Font font = (Font)spinner.getStyles().get("font"); getStyles().put("font", font); Color color; if (spinner.isEnabled()) { color = (Color)spinner.getStyles().get("color"); } else { color = (Color)spinner.getStyles().get("disabledColor"); } getStyles().put("color", color); }
/** * Sets the edit effect duration. * * @param effectDuration * The effect duration in milliseconds. */ public void setEditEffectDuration(int effectDuration) { cardPane.getStyles().put("selectionChangeDuration", effectDuration); }
/** * Sets the effect that is applied when the editor opens or closes. * * @param editEffect * The edit effect, or <tt>null</tt> for no effect. */ public void setEditEffect(CardPaneSkin.SelectionChangeEffect editEffect) { cardPane.getStyles().put("selectionChangeEffect", editEffect); }
/** * Sets the effect that is applied when the editor opens or closes. * * @param editEffect * The edit effect, or <tt>null</tt> for no effect. */ public void setEditEffect(CardPaneSkin.SelectionChangeEffect editEffect) { cardPane.getStyles().put("selectionChangeEffect", editEffect); }
public TreeViewNodeRenderer() { super(); getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT); getStyles().put("verticalAlignment", VerticalAlignment.CENTER); add(imageView); add(label); imageView.setPreferredSize(DEFAULT_ICON_WIDTH, DEFAULT_ICON_HEIGHT); imageView.setVisible(DEFAULT_SHOW_ICON); }
public ListViewItemRenderer() { getStyles().put("horizontalAlignment", HorizontalAlignment.LEFT); getStyles().put("verticalAlignment", VerticalAlignment.CENTER); getStyles().put("padding", new Insets(2, 3, 2, 3)); add(imageView); add(label); imageView.setPreferredSize(DEFAULT_ICON_WIDTH, DEFAULT_ICON_HEIGHT); imageView.setVisible(DEFAULT_SHOW_ICON); }
public LinkButtonDataRenderer() { getStyles().put("horizontalSpacing", 4); getColumns().add(new TablePane.Column()); getColumns().add(new TablePane.Column(1, true)); TablePane.Row row = new TablePane.Row(); row.add(imageView); row.add(label); getRows().add(row); label.getStyles().put("wrapText", true); }
/** * Sets the edit effect duration. * * @param effectDuration * The effect duration in milliseconds. */ public void setEditEffectDuration(int effectDuration) { cardPane.getStyles().put("selectionChangeDuration", effectDuration); }