Enum ResourceName
- java.lang.Object
-
- java.lang.Enum<ResourceName>
-
- org.pepstock.charba.client.resources.ResourceName
-
- All Implemented Interfaces:
Serializable
,Comparable<ResourceName>
,Key
public enum ResourceName extends Enum<ResourceName> implements Key
Enumerates the constants names to use as element id for scripts, mandatory to CHARBA to work properly.- Author:
- Andrea "Stock" Stocchero
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANNOTATION_PLUGIN
Script element id for CHART.JS ANNOTATION plugin.CHARBA_HELPER
Script element id for CHARBA helper.CHART
Script element id for CHART.JS source code.DATALABELS_PLUGIN
Script element id for CHART.JS DATALABELS plugin.DATE_TIME_ADAPTER
Script element id for CHART.JS date time adapter.DATE_TIME_LIBRARY
Script element id for CHART.JS date time library.GEO_CONTROLLER
Script element id for CHART.JS GEO controller.HAMMER_LIBRARY
Script element id for HAMMER JS library.LABELS_PLUGIN
Script element id for CHART.JS LABELS plugin.MATRIX_CONTROLLER
Script element id for CHART.JS MATRIX controller.SANKEY_CONTROLLER
Script element id for CHART.JS SANKEY controller.TOAST_CSS_UTIL
CSS file to use in the Charba toast utility.TOAST_JS_UTIL
JS file to use in the Charba toast utility.TREEMAP_CONTROLLER
Script element id for CHART.JS TREEMAP controller.ZOOM_PLUGIN
Script element id for CHART.JS ZOOM plugin.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
value()
Returns the name value of propertystatic ResourceName
valueOf(String name)
Returns the enum constant of this type with the specified name.static ResourceName[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHART
public static final ResourceName CHART
Script element id for CHART.JS source code.
-
DATE_TIME_ADAPTER
public static final ResourceName DATE_TIME_ADAPTER
Script element id for CHART.JS date time adapter.
-
DATE_TIME_LIBRARY
public static final ResourceName DATE_TIME_LIBRARY
Script element id for CHART.JS date time library.
-
CHARBA_HELPER
public static final ResourceName CHARBA_HELPER
Script element id for CHARBA helper.
-
DATALABELS_PLUGIN
public static final ResourceName DATALABELS_PLUGIN
Script element id for CHART.JS DATALABELS plugin.
-
ZOOM_PLUGIN
public static final ResourceName ZOOM_PLUGIN
Script element id for CHART.JS ZOOM plugin.
-
HAMMER_LIBRARY
public static final ResourceName HAMMER_LIBRARY
Script element id for HAMMER JS library.
-
LABELS_PLUGIN
public static final ResourceName LABELS_PLUGIN
Script element id for CHART.JS LABELS plugin.
-
ANNOTATION_PLUGIN
public static final ResourceName ANNOTATION_PLUGIN
Script element id for CHART.JS ANNOTATION plugin.
-
TREEMAP_CONTROLLER
public static final ResourceName TREEMAP_CONTROLLER
Script element id for CHART.JS TREEMAP controller.
-
SANKEY_CONTROLLER
public static final ResourceName SANKEY_CONTROLLER
Script element id for CHART.JS SANKEY controller.
-
MATRIX_CONTROLLER
public static final ResourceName MATRIX_CONTROLLER
Script element id for CHART.JS MATRIX controller.
-
GEO_CONTROLLER
public static final ResourceName GEO_CONTROLLER
Script element id for CHART.JS GEO controller.
-
TOAST_CSS_UTIL
public static final ResourceName TOAST_CSS_UTIL
CSS file to use in the Charba toast utility.
-
TOAST_JS_UTIL
public static final ResourceName TOAST_JS_UTIL
JS file to use in the Charba toast utility.
-
-
Method Detail
-
values
public static ResourceName[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ResourceName c : ResourceName.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ResourceName valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-