Class EditorInlineSuggestOptions
java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorInlineSuggestOptions
- All Implemented Interfaces:
Serializable
public class EditorInlineSuggestOptions
extends org.primefaces.shaded.json.JSONObject
implements Serializable
Control the behavior and rendering of the inline completions.
- See Also:
-
Field Summary
Fields inherited from class org.primefaces.shaded.json.JSONObject
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetMode()
setEnabled
(Boolean enabled) setKeepOnBlur
(Boolean keepOnBlur) setMode
(EInlineSuggestMode mode) setShowToolbar
(String showToolbar) setShowToolbar
(EShowToolbarMode showToolbar) setSuppressSuggestions
(Boolean suppressSuggestions) 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
-
EditorInlineSuggestOptions
public EditorInlineSuggestOptions()
-
-
Method Details
-
isEnabled
- Returns:
- Enable or disable the rendering of automatic inline completions.
-
setEnabled
- Parameters:
enabled
- Enable or disable the rendering of automatic inline completions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isKeepOnBlur
- Returns:
- Does not clear active inline suggestions when the editor loses focus.
-
setKeepOnBlur
- Parameters:
keepOnBlur
- Does not clear active inline suggestions when the editor loses focus.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getMode
- Returns:
- Configures the mode. Use prefix to only show ghost text if the text to replace is a prefix of the
suggestion text. Use
invalid reference
subword
invalid reference
subwordSmart
prefix
.
-
setMode
- Parameters:
mode
- Configures the mode. Use prefix to only show ghost text if the text to replace is a prefix of the suggestion text. Useinvalid reference
subword
invalid reference
subwordSmart
prefix
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setMode
- Parameters:
mode
- Configures the mode. Use prefix to only show ghost text if the text to replace is a prefix of the suggestion text. Useinvalid reference
subword
invalid reference
subwordSmart
prefix
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getShowToolbar
- Returns:
- Configures whether to show the inline suggest toolbar.
-
setShowToolbar
- Parameters:
showToolbar
- Configures whether to show the inline suggest toolbar.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setShowToolbar
- Parameters:
showToolbar
- Configures whether to show the inline suggest toolbar.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSuppressSuggestions
-
setSuppressSuggestions
-