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:
-
Field Summary
Fields inherited from class org.primefaces.shaded.json.JSONObject
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowedCharacter
(String key, Boolean value) A map of allowed characters (true
: allowed).addAllowedLocale
(String key, Boolean value) Unicode characters that are common in allowed locales are not being highlightedorg.primefaces.shaded.json.JSONObject
org.primefaces.shaded.json.JSONObject
setAllowedCharacters
(Map<String, Boolean> allowedCharacters) setAllowedCharacters
(org.primefaces.shaded.json.JSONObject allowedCharacters) setAllowedLocales
(Map<String, Boolean> allowedLocales) setAllowedLocales
(org.primefaces.shaded.json.JSONObject allowedLocales) setAmbiguousCharacters
(Boolean ambiguousCharacters) setIncludeComments
(Boolean includeComments) setIncludeComments
(String includeComments) setIncludeStrings
(Boolean includeStrings) setIncludeStrings
(String includeStrings) setInvisibleCharacters
(Boolean invisibleCharacters) setNonBasicASCII
(Boolean nonBasicASCII) setNonBasicASCII
(String nonBasicASCII) Methods inherited from class org.primefaces.shaded.json.JSONObject
accumulate, append, clear, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getMapType, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optBooleanObject, optBooleanObject, optDouble, optDouble, optDoubleObject, optDoubleObject, optEnum, optEnum, optFloat, optFloat, optFloatObject, optFloatObject, optInt, optInt, optIntegerObject, optIntegerObject, optJSONArray, optJSONArray, optJSONObject, optJSONObject, optLong, optLong, optLongObject, optLongObject, optNumber, optNumber, optQuery, optQuery, optString, optString, put, put, put, put, put, put, put, put, putOnce, putOpt, query, query, quote, quote, remove, similar, stringToNumber, stringToValue, testValidity, toJSONArray, toMap, toString, toString, valueToString, wrap, write, write
-
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
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
- 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
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
- 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
- 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
- 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
-
getIncludeComments
-
setIncludeComments
-
setIncludeComments
-
isIncludeStrings
-
getIncludeStrings
-
setIncludeStrings
-
setIncludeStrings
-
isInvisibleCharacters
- Returns:
- Controls whether characters that just reserve space or have no width at all are highlighted.
-
setInvisibleCharacters
- 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
-
getNonBasicASCII
-
setNonBasicASCII
-
setNonBasicASCII
-