javafx.css.Styleable Java Examples
The following examples show how to use
javafx.css.Styleable.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JavaFXElement.java From marathonv5 with Apache License 2.0 | 6 votes |
@Override public String getCssValue(String propertyName) { List<CssMetaData<? extends Styleable, ?>> cssMetaData = node.getCssMetaData(); if (propertyName.equals("all")) { return cssMetaData.toString(); } for (CssMetaData<? extends Styleable, ?> cssMetaData2 : cssMetaData) { if (cssMetaData2.getProperty().equals(propertyName)) { Object initialValue = cssMetaData2.getInitialValue(null); if (initialValue != null) { return initialValue.toString(); } return null; } } return null; }
Example #2
Source File: StackedFontIcon.java From ikonli with Apache License 2.0 | 6 votes |
public ObjectProperty<Number[]> iconSizesProperty() { if (iconSizes == null) { iconSizes = new StyleableObjectProperty<Number[]>() { @Override public Object getBean() { return StackedFontIcon.this; } @Override public String getName() { return "iconSizes"; } @Override public CssMetaData<? extends Styleable, Number[]> getCssMetaData() { return StyleableProperties.ICON_SIZES; } }; iconSizes.addListener(iconSizesChangeListener); } return iconSizes; }
Example #3
Source File: StackedFontIcon.java From ikonli with Apache License 2.0 | 6 votes |
public ObjectProperty<Ikon[]> iconCodesProperty() { if (iconCodes == null) { iconCodes = new StyleableObjectProperty<Ikon[]>() { @Override public Object getBean() { return StackedFontIcon.this; } @Override public String getName() { return "iconCodes"; } @Override public CssMetaData<? extends Styleable, Ikon[]> getCssMetaData() { return StyleableProperties.ICON_CODES; } }; iconCodes.addListener(iconCodesChangeListener); } return iconCodes; }
Example #4
Source File: CssToColorHelper.java From chart-fx with Apache License 2.0 | 5 votes |
public ObjectProperty<Color> namedColorProperty() { if (namedColor == null) { namedColor = new StyleableObjectProperty<Color>(CssToColorHelper.DEFAULT_NAMED_COLOR) { @Override public Object getBean() { return CssToColorHelper.this; } @Override public CssMetaData<? extends Styleable, Color> getCssMetaData() { return StyleableProperties.NAMED_COLOR; } @Override public String getName() { return "namedColor"; } @Override protected void invalidated() { super.invalidated(); } }; } return namedColor; }
Example #5
Source File: JFXStyleableColor.java From tuxguitar with GNU Lesser General Public License v2.1 | 5 votes |
public ObjectProperty<Color> colorProperty() { if( this.color == null) { this.color = new StyleableObjectProperty<Color>(DEFAULT_COLOR) { @Override protected void invalidated() { super.invalidated(); } @Override public CssMetaData<? extends Styleable, Color> getCssMetaData() { return StyleableProperties.COLOR; } @Override public Object getBean() { return JFXStyleableColor.this; } @Override public String getName() { return "color"; } }; } return this.color; }
Example #6
Source File: FxDump.java From FxDock with Apache License 2.0 | 5 votes |
protected void sort(CList<CssMetaData<? extends Styleable,?>> list) { if(sorter == null) { sorter = new CComparator<CssMetaData<? extends Styleable,?>>() { public int compare(CssMetaData<? extends Styleable,?> a, CssMetaData<? extends Styleable,?> b) { return compareAsStrings(a.getProperty(), b.getProperty()); } }; } sorter.sort(list); }
Example #7
Source File: SVGGlyph.java From JFoenix with Apache License 2.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return getClassCssMetaData(); }
Example #8
Source File: Wordle.java From TweetwallFX with MIT License | 4 votes |
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #9
Source File: SVGGlyph.java From JFoenix with Apache License 2.0 | 4 votes |
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { return SVGGlyph.StyleableProperties.CHILD_STYLEABLES; }
Example #10
Source File: StaticProgressIndicatorSkin.java From bisq with GNU Affero General Public License v3.0 | 4 votes |
/** * {@inheritDoc} */ @Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return getClassCssMetaData(); }
Example #11
Source File: StructuredListCell.java From dolphin-platform with Apache License 2.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #12
Source File: StructuredListCellSkin.java From dolphin-platform with Apache License 2.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #13
Source File: MediaListCell.java From dolphin-platform with Apache License 2.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getControlCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #14
Source File: StaticProgressIndicatorSkin.java From bisq with GNU Affero General Public License v3.0 | 4 votes |
/** * @return The CssMetaData associated with this class, which may include the * CssMetaData of its super classes. */ @SuppressWarnings("SameReturnValue") public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #15
Source File: GraphEditorGrid.java From graph-editor with Eclipse Public License 1.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #16
Source File: CssToColorHelper.java From chart-fx with Apache License 2.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #17
Source File: VirtualFlow.java From Flowless with BSD 2-Clause "Simplified" License | 4 votes |
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { return STYLEABLES; }
Example #18
Source File: StackedFontIcon.java From ikonli with Apache License 2.0 | 4 votes |
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return StackedFontIcon.getClassCssMetaData(); }
Example #19
Source File: JFXColorPickerSkin.java From JFoenix with Apache License 2.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return getClassCssMetaData(); }
Example #20
Source File: JFXColorPickerSkin.java From JFoenix with Apache License 2.0 | 4 votes |
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #21
Source File: JFXComboBoxListViewSkin.java From JFoenix with Apache License 2.0 | 4 votes |
/** * {@inheritDoc} */ @Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return getClassCssMetaData(); }
Example #22
Source File: JFXStyleableColor.java From tuxguitar with GNU Lesser General Public License v2.1 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #23
Source File: FxDump.java From FxDock with Apache License 2.0 | 4 votes |
protected void dump(Node n) { SB sb = new SB(4096); sb.nl(); while(n != null) { sb.a(CKit.getSimpleName(n)); String id = n.getId(); if(CKit.isNotBlank(id)) { sb.a(" #"); sb.a(id); } for(String s: n.getStyleClass()) { sb.a(" .").a(s); } for(PseudoClass c: n.getPseudoClassStates()) { sb.a(" :").a(c); } sb.nl(); if(n instanceof Text) { sb.sp(4); sb.a("text: "); sb.a(TextTools.escapeControlsForPrintout(((Text)n).getText())); sb.nl(); } CList<CssMetaData<? extends Styleable,?>> md = new CList<>(n.getCssMetaData()); sort(md); for(CssMetaData d: md) { String k = d.getProperty(); Object v = d.getStyleableProperty(n).getValue(); if(shouldShow(v)) { Object val = describe(v); sb.sp(4).a(k); sb.sp().a(val); if(d.isInherits()) { sb.a(" *"); } sb.nl(); } } n = n.getParent(); } D.print(sb); }
Example #24
Source File: CPane.java From FxDock with Apache License 2.0 | 4 votes |
public List<CssMetaData<? extends Styleable,?>> getCssMetaData() { return SPF.getCssMetaData(); }
Example #25
Source File: CPane.java From FxDock with Apache License 2.0 | 4 votes |
public static List<CssMetaData<? extends Styleable,?>> getClassCssMetaData() { return SPF.getCssMetaData(); }
Example #26
Source File: ViewGauge.java From helloiot with GNU General Public License v3.0 | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return FACTORY.getCssMetaData(); }
Example #27
Source File: ViewGauge.java From helloiot with GNU General Public License v3.0 | 4 votes |
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { return FACTORY.getCssMetaData(); }
Example #28
Source File: FontIcon.java From ikonli with Apache License 2.0 | 4 votes |
public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return FontIcon.getClassCssMetaData(); }
Example #29
Source File: FontIcon.java From ikonli with Apache License 2.0 | 4 votes |
public static List<CssMetaData<? extends Styleable, ?>> getClassCssMetaData() { return StyleableProperties.STYLEABLES; }
Example #30
Source File: VirtualFlow.java From Flowless with BSD 2-Clause "Simplified" License | 4 votes |
@Override public List<CssMetaData<? extends Styleable, ?>> getCssMetaData() { return getClassCssMetaData(); }