Class EditorUnicodeHighlightOptions

java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorUnicodeHighlightOptions
All Implemented Interfaces:
Serializable

public class EditorUnicodeHighlightOptions extends org.primefaces.shaded.json.JSONObject implements Serializable
Controls the behavior of the unicode highlight feature (by default, ambiguous and invisible characters are highlighted).
See Also:
  • Constructor Details

    • EditorUnicodeHighlightOptions

      public EditorUnicodeHighlightOptions()
  • Method Details

    • getAllowedCharacters

      public org.primefaces.shaded.json.JSONObject getAllowedCharacters()
      Returns:
      A map of allowed characters (true: allowed).
    • setAllowedCharacters

      public EditorUnicodeHighlightOptions setAllowedCharacters(org.primefaces.shaded.json.JSONObject allowedCharacters)
      Parameters:
      allowedCharacters - A map of allowed characters (true: allowed).
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • addAllowedCharacter

      public EditorUnicodeHighlightOptions addAllowedCharacter(String key, Boolean value)
      A map of allowed characters (true: allowed).
      Parameters:
      key - The key of the map entry to add.
      value - The value to associate with the key.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setAllowedCharacters

      public EditorUnicodeHighlightOptions setAllowedCharacters(Map<String,Boolean> allowedCharacters)
      Parameters:
      allowedCharacters - A map of allowed characters (true: allowed).
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getAllowedLocales

      public org.primefaces.shaded.json.JSONObject getAllowedLocales()
      Returns:
      Unicode characters that are common in allowed locales are not being highlighted. (true: allowed).
    • setAllowedLocales

      public EditorUnicodeHighlightOptions setAllowedLocales(org.primefaces.shaded.json.JSONObject allowedLocales)
      Parameters:
      allowedLocales - Unicode characters that are common in allowed locales are not being highlighted. ( true: allowed).
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • addAllowedLocale

      public EditorUnicodeHighlightOptions addAllowedLocale(String key, Boolean value)
      Unicode characters that are common in allowed locales are not being highlighted. (true: allowed).
      Parameters:
      key - The key of the map entry to add.
      value - The value to associate with the key.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setAllowedLocales

      public EditorUnicodeHighlightOptions setAllowedLocales(Map<String,Boolean> allowedLocales)
      Parameters:
      allowedLocales - Unicode characters that are common in allowed locales are not being highlighted. ( true: allowed).
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isAmbiguousCharacters

      public Boolean isAmbiguousCharacters()
      Returns:
      Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.
    • setAmbiguousCharacters

      public EditorUnicodeHighlightOptions setAmbiguousCharacters(Boolean ambiguousCharacters)
      Parameters:
      ambiguousCharacters - Controls whether characters are highlighted that can be confused with basic ASCII characters, except those that are common in the current user locale.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isIncludeComments

      public Boolean isIncludeComments()
    • getIncludeComments

      public String getIncludeComments()
    • setIncludeComments

      public EditorUnicodeHighlightOptions setIncludeComments(Boolean includeComments)
    • setIncludeComments

      public EditorUnicodeHighlightOptions setIncludeComments(String includeComments)
    • isIncludeStrings

      public Boolean isIncludeStrings()
    • getIncludeStrings

      public String getIncludeStrings()
    • setIncludeStrings

      public EditorUnicodeHighlightOptions setIncludeStrings(Boolean includeStrings)
    • setIncludeStrings

      public EditorUnicodeHighlightOptions setIncludeStrings(String includeStrings)
    • isInvisibleCharacters

      public Boolean isInvisibleCharacters()
      Returns:
      Controls whether characters that just reserve space or have no width at all are highlighted.
    • setInvisibleCharacters

      public EditorUnicodeHighlightOptions setInvisibleCharacters(Boolean invisibleCharacters)
      Parameters:
      invisibleCharacters - Controls whether characters that just reserve space or have no width at all are highlighted.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isNonBasicASCII

      public Boolean isNonBasicASCII()
    • getNonBasicASCII

      public String getNonBasicASCII()
    • setNonBasicASCII

      public EditorUnicodeHighlightOptions setNonBasicASCII(Boolean nonBasicASCII)
    • setNonBasicASCII

      public EditorUnicodeHighlightOptions setNonBasicASCII(String nonBasicASCII)