Modifier and Type | Field and Description |
---|---|
static String |
PATH_SEP
The class path separator.
|
Modifier and Type | Method and Description |
---|---|
static ColorItem |
create(ColorParams colorParams)
Build a color item.
|
static FontItem |
create(FontParams fontParams)
Build a font item.
|
static FXMLItem |
create(FXMLParams fxmlParams)
Build a Singleton FXML item.
|
static FXMLItem |
create(FXMLParams fxmlParams,
boolean isSingleton)
Build a FXML item with according singleton parameter.
|
static ImageItem |
create(ImageParams imageParams)
Build an image item.
|
static MessageItem |
create(Message messageParams)
Build a Message item.
|
static <O> ParameterItem<O> |
create(ObjectParameter<O> parameterParams)
Build a parameter item.
|
static <O> ParameterItem<O> |
create(String name,
O defaultValue)
Build a parameter item.
|
static StyleSheetItem |
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
public static <O> ParameterItem<O> create(ObjectParameter<O> parameterParams)
O
- the type of parameterized objectparameterParams
- the primitive values for the colorpublic static <O> ParameterItem<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 FontItem create(FontParams fontParams)
CoreParameters#FONT_FOLDER
) which will be prepend to the font path.fontParams
- the primitive values for the fontpublic static ImageItem create(ImageParams imageParams)
CoreParameters#IMAGE_FOLDER
) which will be prepend to the image path.imageParams
- the primitive values for the imagepublic static StyleSheetItem create(StyleSheetParams styleSheetParams)
CoreParameters#STYLE_FOLDER
) which will be prepend to the style sheet path.styleSheetParams
- the primitive values for the style sheetpublic static FXMLItem create(FXMLParams fxmlParams)
fxmlParams
- the primitive values for the fxml resourcepublic static FXMLItem create(FXMLParams fxmlParams, boolean isSingleton)
fxmlParams
- the primitive values for the FXML resourceisSingleton
- the flag that indicates if the FXMLCOmponent will be the same (true) or another instance (false) after each call to FXMLItem.get()public static MessageItem create(Message messageParams)
messageParams
- the key of the i18n messagepublic static boolean isNotAutoRefreshParam(ResourceParams params)
params
- the ResourceParams to checkCopyright © 2011–2016 JRebirth OSS. All rights reserved.