Class StyleClassConfig
java.lang.Object
com.inductiveautomation.perspective.common.config.styles.StyleClassConfig
Represents a style class's stored configuration. This class is meant to be used by GSON for json serialization
and deserialization.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final ResourceType
static final UUID
static final JsonSchema
static final Pattern
Restrictive naming pattern for a CSS identifier - starts with letter or underscore, and contains only letters, numbers, underscores, and hyphensfinal List<StyleVariantConfig>
-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionboolean
static StyleClassConfig
fromProjectResource
(ProjectResource resource, com.inductiveautomation.ignition.common.gson.Gson gson) static String
getEscapedName
(ProjectResource resource) Get the name and path to a style, escaped for use in a compiled .css filestatic String
getRawName
(ProjectResource resource) Get the name and path to a style, directly (suitable for use on actual component style classes)
-
Field Details
-
SCHEMA
-
RESOURCE_TYPE
-
FILENAME
- See Also:
-
ROOT_FOLDER
-
VALID_NAME_PATTERN
Restrictive naming pattern for a CSS identifier - starts with letter or underscore, and contains only letters, numbers, underscores, and hyphens -
base
-
variants
-
-
Constructor Details
-
StyleClassConfig
-
StyleClassConfig
-
-
Method Details
-
fromProjectResource
public static StyleClassConfig fromProjectResource(ProjectResource resource, com.inductiveautomation.ignition.common.gson.Gson gson) -
getEscapedName
Get the name and path to a style, escaped for use in a compiled .css file -
getRawName
Get the name and path to a style, directly (suitable for use on actual component style classes) -
toCss
-
equals
-