Class EditorTokenThemeRule
- java.lang.Object
-
- org.primefaces.shaded.json.JSONObject
-
- org.primefaces.extensions.model.monacoeditor.EditorTokenThemeRule
-
- All Implemented Interfaces:
java.io.Serializable
public class EditorTokenThemeRule extends org.primefaces.shaded.json.JSONObject implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EditorTokenThemeRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBackground()java.lang.StringgetFontStyle()java.lang.StringgetForeground()java.lang.StringgetToken()EditorTokenThemeRulesetBackground(java.lang.String background)EditorTokenThemeRulesetFontStyle(java.lang.String fontStyle)EditorTokenThemeRulesetForeground(java.lang.String foreground)EditorTokenThemeRulesetToken(java.lang.String token)-
Methods inherited from class org.primefaces.shaded.json.JSONObject
accumulate, append, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getNumber, getString, has, increment, isDecimalNotation, isEmpty, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, 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
-
-
-
-
Method Detail
-
getBackground
public java.lang.String getBackground()
- Returns:
- CSS color for the background that is applied to these tokens.
-
setBackground
public EditorTokenThemeRule setBackground(java.lang.String background)
- Parameters:
background- CSS color for the background that is applied to these tokens.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getFontStyle
public java.lang.String getFontStyle()
- Returns:
- Value for the CSS font-style property that is applied to these tokens.
-
setFontStyle
public EditorTokenThemeRule setFontStyle(java.lang.String fontStyle)
- Parameters:
fontStyle- Value for the CSS font-style property that is applied to these tokens.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getForeground
public java.lang.String getForeground()
- Returns:
- CSS color for the text color that is applied to these tokens.
-
setForeground
public EditorTokenThemeRule setForeground(java.lang.String foreground)
- Parameters:
foreground- CSS color for the text color that is applied to these tokens.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getToken
public java.lang.String getToken()
- Returns:
- Type of token to which to apply these rules. Can be suffixed with the language ID to which they should
apply. E.g.
commentwould apply to comment tokens of all languages,comment.jswould only apply to JavaScript comment tokens. You can inspect the tokens in the Monaco editor. Right click on the editor and chooseCommand Palette. Then search forDeveloper: Inspect Tokens.
-
setToken
public EditorTokenThemeRule setToken(java.lang.String token)
- Parameters:
token- Type of token to which to apply these rules. Can be suffixed with the language ID to which they should apply. E.g.commentwould apply to comment tokens of all languages,comment.jswould only apply to JavaScript comment tokens. You can inspect the tokens in the Monaco editor. Right click on the editor and chooseCommand Palette. Then search forDeveloper: Inspect Tokens.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
-