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 SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final Stringstatic final ResourceTypestatic final UUIDstatic final JsonSchemastatic final PatternRestrictive naming pattern for a CSS identifier - starts with letter or underscore, and contains only letters, numbers, underscores, and hyphensfinal List<StyleVariantConfig>
- 
Constructor SummaryConstructorsConstructorDescription
- 
Method SummaryModifier and TypeMethodDescriptionbooleanstatic StyleClassConfigfromProjectResource(ProjectResource resource, com.inductiveautomation.ignition.common.gson.Gson gson) static StringgetEscapedName(ProjectResource resource) Get the name and path to a style, escaped for use in a compiled .css filestatic StringgetRawName(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_PATTERNRestrictive 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- 
fromProjectResourcepublic static StyleClassConfig fromProjectResource(ProjectResource resource, com.inductiveautomation.ignition.common.gson.Gson gson) 
- 
getEscapedNameGet the name and path to a style, escaped for use in a compiled .css file
- 
getRawNameGet the name and path to a style, directly (suitable for use on actual component style classes)
- 
toCss
- 
equals
 
-