Class EditorSuggestOptions
java.lang.Object
org.primefaces.shaded.json.JSONObject
com.github.blutorange.primefaces.config.monacoeditor.EditorSuggestOptions
- All Implemented Interfaces:
Serializable
public class EditorSuggestOptions extends org.primefaces.shaded.json.JSONObject implements Serializable
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EditorSuggestOptions() -
Method Summary
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
-
Constructor Details
-
EditorSuggestOptions
public EditorSuggestOptions()
-
-
Method Details
-
isFilterGraceful
- Returns:
- Enable graceful matching. Defaults to
true.
-
setFilterGraceful
- Parameters:
filterGraceful- Enable graceful matching. Defaults totrue.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isHideStatusBar
- Returns:
- Controls the visibility of the status bar at the bottom of the suggest widget.
-
setHideStatusBar
- Parameters:
hideStatusBar- Controls the visibility of the status bar at the bottom of the suggest widget.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isInsertHighlight
- Returns:
- Show a highlight when suggestion replaces or keep text after the cursor. Defaults to
false.
-
setInsertHighlight
- Parameters:
insertHighlight- Show a highlight when suggestion replaces or keep text after the cursor. Defaults tofalse.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getInsertMode
- Returns:
- Overwrite word ends on accept. Default to
false.
-
setInsertMode
- Parameters:
insertMode- Overwrite word ends on accept. Default tofalse.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setInsertMode
-
isLocalityBonus
- Returns:
- Favours words that appear close to the cursor.
-
setLocalityBonus
- Parameters:
localityBonus- Favours words that appear close to the cursor.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isMaxVisibleSuggestions
- Returns:
- Max suggestions to show in suggestions. Defaults to
12.
-
setMaxVisibleSuggestions
- Parameters:
maxVisibleSuggestions- Max suggestions to show in suggestions. Defaults to12.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShareSuggestSelections
- Returns:
- Enable using global storage for remembering suggestions.
-
setShareSuggestSelections
- Parameters:
shareSuggestSelections- Enable using global storage for remembering suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowClasses
- Returns:
- Show class-suggestions.
-
setShowClasses
- Parameters:
showClasses- Show class-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowColors
- Returns:
- Show color-suggestions.
-
setShowColors
- Parameters:
showColors- Show color-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowConstants
- Returns:
- Show constant-suggestions.
-
setShowConstants
- Parameters:
showConstants- Show constant-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowConstructors
- Returns:
- Show constructor-suggestions.
-
setShowConstructors
- Parameters:
showConstructors- Show constructor-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowEnumMembers
- Returns:
- Show enumMember-suggestions.
-
setShowEnumMembers
- Parameters:
showEnumMembers- Show enumMember-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowEnums
- Returns:
- Show enum-suggestions.
-
setShowEnums
- Parameters:
showEnums- Show enum-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowEvents
- Returns:
- Show event-suggestions.
-
setShowEvents
- Parameters:
showEvents- Show event-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowFields
- Returns:
- Show field-suggestions.
-
setShowFields
- Parameters:
showFields- Show field-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowFiles
- Returns:
- Show file-suggestions.
-
setShowFiles
- Parameters:
showFiles- Show file-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowFolders
- Returns:
- Show folder-suggestions.
-
setShowFolders
- Parameters:
showFolders- Show folder-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowFunctions
- Returns:
- Show function-suggestions.
-
setShowFunctions
- Parameters:
showFunctions- Show function-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowIcons
- Returns:
- Enable or disable icons in suggestions. Defaults to
true.
-
setShowIcons
- Parameters:
showIcons- Enable or disable icons in suggestions. Defaults totrue.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowInterfaces
- Returns:
- Show interface-suggestions.
-
setShowInterfaces
- Parameters:
showInterfaces- Show interface-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowKeywords
- Returns:
- Show keyword-suggestions.
-
setShowKeywords
- Parameters:
showKeywords- Show keyword-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowMethods
- Returns:
- Show method-suggestions.
-
setShowMethods
- Parameters:
showMethods- Show method-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowModules
- Returns:
- Show module-suggestions.
-
setShowModules
- Parameters:
showModules- Show module-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowOperators
- Returns:
- Show operator-suggestions.
-
setShowOperators
- Parameters:
showOperators- Show operator-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowProperties
- Returns:
- Show property-suggestions.
-
setShowProperties
- Parameters:
showProperties- Show property-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowReferences
- Returns:
- Show reference-suggestions.
-
setShowReferences
- Parameters:
showReferences- Show reference-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowSnippets
- Returns:
- Show snippet-suggestions.
-
setShowSnippets
- Parameters:
showSnippets- Show snippet-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowStructs
- Returns:
- Show struct-suggestions.
-
setShowStructs
- Parameters:
showStructs- Show struct-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowTypeParameters
- Returns:
- Show typeParameter-suggestions.
-
setShowTypeParameters
- Parameters:
showTypeParameters- Show typeParameter-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowUnits
- Returns:
- Show unit-suggestions.
-
setShowUnits
- Parameters:
showUnits- Show unit-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowValues
- Returns:
- Show value-suggestions.
-
setShowValues
- Parameters:
showValues- Show value-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowVariables
- Returns:
- Show variable-suggestions.
-
setShowVariables
- Parameters:
showVariables- Show variable-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isShowWords
- Returns:
- Show text-suggestions.
-
setShowWords
- Parameters:
showWords- Show text-suggestions.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isSnippetsPreventQuickSuggestions
- Returns:
- Prevent quick suggestions when a snippet is active. Defaults to true.
-
setSnippetsPreventQuickSuggestions
public EditorSuggestOptions setSnippetsPreventQuickSuggestions(Boolean snippetsPreventQuickSuggestions)- Parameters:
snippetsPreventQuickSuggestions- Prevent quick suggestions when a snippet is active. Defaults to true.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-