Class EditorStandaloneTheme

  • All Implemented Interfaces:
    java.io.Serializable

    public class EditorStandaloneTheme
    extends org.primefaces.shaded.json.JSONObject
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • EditorStandaloneTheme

        public EditorStandaloneTheme()
    • Method Detail

      • getBase

        public java.lang.String getBase()
        Returns:
        Base theme from which to extend when is set to true.
      • setBase

        public EditorStandaloneTheme setBase​(ETheme base)
        Parameters:
        base - Base theme from which to extend when is set to true.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getColors

        public org.primefaces.shaded.json.JSONObject getColors()
        Returns:
        Map between the color ID and the CSS color to use.
      • setColors

        public EditorStandaloneTheme setColors​(org.primefaces.shaded.json.JSONObject colors)
        Parameters:
        colors - Map between the color ID and the CSS color to use.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setColors

        public EditorStandaloneTheme setColors​(java.util.Map<java.lang.String,​java.lang.String> colors)
      • getEncodedTokensColors

        public org.primefaces.shaded.json.JSONArray getEncodedTokensColors()
      • setEncodedTokensColors

        public EditorStandaloneTheme setEncodedTokensColors​(org.primefaces.shaded.json.JSONArray encodedTokensColors)
      • addEncodedTokensColor

        public EditorStandaloneTheme addEncodedTokensColor​(java.lang.String... items)
      • setEncodedTokensColors

        public EditorStandaloneTheme setEncodedTokensColors​(java.util.List<java.lang.String> encodedTokensColors)
      • isInherit

        public java.lang.Boolean isInherit()
        Returns:
        Whether this theme should inherit from the given base theme.
      • setInherit

        public EditorStandaloneTheme setInherit​(java.lang.Boolean inherit)
        Parameters:
        inherit - Whether this theme should inherit from the given base theme.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getRules

        public org.primefaces.shaded.json.JSONArray getRules()
        Returns:
        Styling options for individual token types, such as how to style variables, certain keywords, and parentheses.
      • setRules

        public EditorStandaloneTheme setRules​(org.primefaces.shaded.json.JSONArray rules)
        Parameters:
        rules - Styling options for individual token types, such as how to style variables, certain keywords, and parentheses.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.