public final class Resources extends Object
| Modifier and Type | Field and Description |
|---|---|
private static AtomicInteger |
colorIdGenerator
The generator of unique id for colors.
|
private static Map<String,ColorItem> |
colorMap
The dynamic color map.
|
private static AtomicInteger |
fontIdGenerator
The generator of unique id for fonts.
|
private static AtomicInteger |
fxmlIdGenerator
The generator of unique id for fxml files.
|
private static AtomicInteger |
imageIdGenerator
The generator of unique id for images.
|
private static AtomicInteger |
messageIdGenerator
The generator of unique id for message items.
|
private static AtomicInteger |
parameterIdGenerator
The generator of unique id for parameters.
|
static String |
PATH_SEP
The class path separator.
|
private static AtomicInteger |
styleSheetIdGenerator
The generator of unique id for style sheets.
|
| Modifier | Constructor and Description |
|---|---|
private |
Resources()
Private Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ColorItem |
create(ColorParams colorParams)
Build a color item.
|
static ColorItem |
create(ColorParams colorParams,
String dynamicKey)
Build a color item.
|
static FontItemBase |
create(FontParams fontParams)
Build a font item.
|
static FXMLItemBase |
create(FXMLParams fxmlParams)
Build a fxml item.
|
static ImageItemBase |
create(ImageParams imageParams)
Build an image item.
|
static MessageItemBase |
create(Message messageParams)
Build a Message item.
|
static <O> ParameterItemBase<O> |
create(ObjectParameter<O> parameterParams)
Build a parameter item.
|
static <O> ParameterItemBase<O> |
create(String name,
O defaultValue)
Build a parameter item.
|
static StyleSheetItemBase |
create(StyleSheetParams styleSheetParams)
Build a style sheet item.
|
static boolean |
isNotAutoRefreshParam(ResourceParams params)
This utility method allow to avoid doing something if the parameter given is tahe AutoRefresh one.
|
public static final String PATH_SEP
private static AtomicInteger parameterIdGenerator
private static AtomicInteger colorIdGenerator
private static AtomicInteger fontIdGenerator
private static AtomicInteger imageIdGenerator
private static AtomicInteger styleSheetIdGenerator
private static AtomicInteger fxmlIdGenerator
private static AtomicInteger messageIdGenerator
public static <O> ParameterItemBase<O> create(ObjectParameter<O> parameterParams)
O - the type of parameterized objectparameterParams - the primitive values for the colorpublic static <O> ParameterItemBase<O> create(String name, O defaultValue)
O - the type of parameterized objectname - the parameter unique namedefaultValue - the default object valuepublic static ColorItem create(ColorParams colorParams)
colorParams - the primitive values for the colorpublic static ColorItem create(ColorParams colorParams, String dynamicKey)
colorParams - the primitive values for the colordynamicKey - the dynamic key used to register this colorpublic static FontItemBase create(FontParams fontParams)
fontParams - the primitive values for the fontpublic static ImageItemBase create(ImageParams imageParams)
imageParams - the primitive values for the imagepublic static StyleSheetItemBase create(StyleSheetParams styleSheetParams)
styleSheetParams - the primitive values for the style sheetpublic static FXMLItemBase create(FXMLParams fxmlParams)
fxmlParams - the primitive values for the fxml resourcepublic static MessageItemBase create(Message messageParams)
messageParams - the key of the i18n messagepublic static boolean isNotAutoRefreshParam(ResourceParams params)
params - the ResourceParams to checkCopyright © 2011–2014 JRebirth OSS. All rights reserved.