public class EditorTokenThemeRule
extends org.primefaces.shaded.json.JSONObject
implements java.io.Serializable
| Constructor and Description |
|---|
EditorTokenThemeRule() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBackground() |
java.lang.String |
getFontStyle() |
java.lang.String |
getForeground() |
java.lang.String |
getToken() |
EditorTokenThemeRule |
setBackground(java.lang.String background) |
EditorTokenThemeRule |
setFontStyle(java.lang.String fontStyle) |
EditorTokenThemeRule |
setForeground(java.lang.String foreground) |
EditorTokenThemeRule |
setToken(java.lang.String token) |
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, writepublic java.lang.String getBackground()
public EditorTokenThemeRule setBackground(java.lang.String background)
background - CSS color for the background that is applied to these tokens.public java.lang.String getFontStyle()
public EditorTokenThemeRule setFontStyle(java.lang.String fontStyle)
fontStyle - Value for the CSS font-style property that is applied to these tokens.public java.lang.String getForeground()
public EditorTokenThemeRule setForeground(java.lang.String foreground)
foreground - CSS color for the text color that is applied to these tokens.public java.lang.String getToken()
comment would apply to comment tokens of all languages, comment.js would only apply
to JavaScript comment tokens. You can inspect the tokens in the Monaco editor. Right click on the editor and
choose Command Palette. Then search for Developer: Inspect Tokens.public EditorTokenThemeRule setToken(java.lang.String token)
token - Type of token to which to apply these rules. Can be suffixed with the language ID to which they
should apply. E.g. comment would apply to comment tokens of all languages, comment.js would only
apply to JavaScript comment tokens. You can inspect the tokens in the Monaco editor. Right click on the editor
and choose Command Palette. Then search for Developer: Inspect Tokens.Copyright © 2011–2021. All rights reserved.