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.BooleanisEnabled()EditorInlineSuggestOptionssetEnabled(java.lang.Boolean enabled)EditorInlineSuggestOptionssetMode(java.lang.String mode)EditorInlineSuggestOptionssetMode(EInlineSuggestMode mode)-
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, optDouble, optDouble, optEnum, optEnum, optFloat, optFloat, optInt, optInt, optJSONArray, optJSONObject, 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
-
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.
-
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.
-
-