Class EditorInlineSuggestOptions
- java.lang.Object
-
- org.primefaces.shaded.json.JSONObject
-
- org.primefaces.extensions.model.monacoeditor.EditorInlineSuggestOptions
-
- All Implemented Interfaces:
java.io.Serializable
public class EditorInlineSuggestOptions extends org.primefaces.shaded.json.JSONObject implements java.io.SerializableControl the behavior and rendering of the inline completions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EditorInlineSuggestOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMode()java.lang.StringgetShowToolbar()java.lang.BooleanisEnabled()java.lang.BooleanisKeepOnBlur()java.lang.BooleanisSuppressSuggestions()EditorInlineSuggestOptionssetEnabled(java.lang.Boolean enabled)EditorInlineSuggestOptionssetKeepOnBlur(java.lang.Boolean keepOnBlur)EditorInlineSuggestOptionssetMode(java.lang.String mode)EditorInlineSuggestOptionssetMode(EInlineSuggestMode mode)EditorInlineSuggestOptionssetShowToolbar(java.lang.String showToolbar)EditorInlineSuggestOptionssetShowToolbar(EShowToolbarMode showToolbar)EditorInlineSuggestOptionssetSuppressSuggestions(java.lang.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
-
-
-
-
Method Detail
-
isEnabled
public java.lang.Boolean isEnabled()
- Returns:
- Enable or disable the rendering of automatic inline completions.
-
setEnabled
public EditorInlineSuggestOptions setEnabled(java.lang.Boolean enabled)
- 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
public java.lang.Boolean isKeepOnBlur()
- Returns:
- Does not clear active inline suggestions when the editor loses focus.
-
setKeepOnBlur
public EditorInlineSuggestOptions setKeepOnBlur(java.lang.Boolean keepOnBlur)
- 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
public java.lang.String 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
subwordto only show ghost text if the replace text is a sub word of the suggestion text. UsesubwordSmartto only show ghost text if the replace text is a sub word of the suggestion text, but the sub word must start after the cursor position. Defaults toprefix.
-
setMode
public EditorInlineSuggestOptions setMode(EInlineSuggestMode mode)
- Parameters:
mode- Configures the mode. Use prefix to only show ghost text if the text to replace is a prefix of the suggestion text. Usesubwordto only show ghost text if the replace text is a sub word of the suggestion text. UsesubwordSmartto only show ghost text if the replace text is a sub word of the suggestion text, but the sub word must start after the cursor position. Defaults toprefix.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setMode
public EditorInlineSuggestOptions setMode(java.lang.String mode)
- Parameters:
mode- Configures the mode. Use prefix to only show ghost text if the text to replace is a prefix of the suggestion text. Usesubwordto only show ghost text if the replace text is a sub word of the suggestion text. UsesubwordSmartto only show ghost text if the replace text is a sub word of the suggestion text, but the sub word must start after the cursor position. Defaults toprefix.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getShowToolbar
public java.lang.String getShowToolbar()
- Returns:
- Configures whether to show the inline suggest toolbar.
-
setShowToolbar
public EditorInlineSuggestOptions setShowToolbar(EShowToolbarMode showToolbar)
- Parameters:
showToolbar- Configures whether to show the inline suggest toolbar.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setShowToolbar
public EditorInlineSuggestOptions setShowToolbar(java.lang.String showToolbar)
- Parameters:
showToolbar- Configures whether to show the inline suggest toolbar.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSuppressSuggestions
public java.lang.Boolean isSuppressSuggestions()
-
setSuppressSuggestions
public EditorInlineSuggestOptions setSuppressSuggestions(java.lang.Boolean suppressSuggestions)
-
-