Java examples for JavaFX:CSS
create JavaFX Css Meta Data List
//package com.java2s; import javafx.css.*; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; public class Main { public static List<CssMetaData<? extends Styleable, ?>> createCssMetaDataList( List<CssMetaData<? extends Styleable, ?>> baseList, CssMetaData<? extends Styleable, ?>... metaData) { List<CssMetaData<? extends Styleable, ?>> styleables = new ArrayList<>( baseList);/*www. j a va2 s. co m*/ styleables.addAll(Arrays.asList(metaData)); return Collections.unmodifiableList(styleables); } public static List<CssMetaData<? extends Styleable, ?>> createCssMetaDataList( CssMetaData<? extends Styleable, ?>... metaData) { return createCssMetaDataList(new ArrayList<>(), metaData); } }