Class EditorSuggestOptions
java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorSuggestOptions
- All Implemented Interfaces:
Serializable
public class EditorSuggestOptions
extends org.primefaces.shaded.json.JSONObject
implements Serializable
Configuration options for editor suggest widget
- See Also:
-
Field Summary
Fields inherited from class org.primefaces.shaded.json.JSONObject
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetFilterGraceful
(Boolean filterGraceful) setInsertMode
(String insertMode) setInsertMode
(EInsertMode insertMode) setLocalityBonus
(Boolean localityBonus) setMatchOnWordStartOnly
(Boolean matchOnWordStartOnly) setPreview
(Boolean preview) setPreviewMode
(String previewMode) setPreviewMode
(ESuggestPreviewMode previewMode) setSelectionMode
(String selectionMode) setSelectionMode
(ESuggestSelectionMode selectionMode) setShareSuggestSelections
(Boolean shareSuggestSelections) setShowClasses
(Boolean showClasses) setShowColors
(Boolean showColors) setShowConstants
(Boolean showConstants) setShowConstructors
(Boolean showConstructors) setShowDeprecated
(Boolean showDeprecated) setShowEnumMembers
(Boolean showEnumMembers) setShowEnums
(Boolean showEnums) setShowEvents
(Boolean showEvents) setShowFields
(Boolean showFields) setShowFiles
(Boolean showFiles) setShowFolders
(Boolean showFolders) setShowFunctions
(Boolean showFunctions) setShowIcons
(Boolean showIcons) setShowInlineDetails
(Boolean showInlineDetails) setShowInterfaces
(Boolean showInterfaces) setShowIssues
(Boolean showIssues) setShowKeywords
(Boolean showKeywords) setShowMethods
(Boolean showMethods) setShowModules
(Boolean showModules) setShowOperators
(Boolean showOperators) setShowProperties
(Boolean showProperties) setShowReferences
(Boolean showReferences) setShowSnippets
(Boolean showSnippets) setShowStatusBar
(Boolean showStatusBar) setShowStructs
(Boolean showStructs) setShowTypeParameters
(Boolean showTypeParameters) setShowUnits
(Boolean showUnits) setShowUsers
(Boolean showUsers) setShowValues
(Boolean showValues) setShowVariables
(Boolean showVariables) setShowWords
(Boolean showWords) setSnippetsPreventQuickSuggestions
(Boolean snippetsPreventQuickSuggestions) 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
-
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.
-
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
- Parameters:
insertMode
- Overwrite word ends on accept. Default tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
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.
-
isMatchOnWordStartOnly
- Returns:
- Controls whether suggestions allow matches in the middle of the word instead of only at the beginning.
-
setMatchOnWordStartOnly
- Parameters:
matchOnWordStartOnly
- Controls whether suggestions allow matches in the middle of the word instead of only at the beginning.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isPreview
- Returns:
- Enable or disable the rendering of the suggestion preview.
-
setPreview
- Parameters:
preview
- Enable or disable the rendering of the suggestion preview.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getPreviewMode
- Returns:
- Configures the mode of the preview.
-
setPreviewMode
- Parameters:
previewMode
- Configures the mode of the preview.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setPreviewMode
- Parameters:
previewMode
- Configures the mode of the preview.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getSelectionMode
- Returns:
- Select suggestions when triggered via quick suggest or trigger characters.
-
setSelectionMode
- Parameters:
selectionMode
- Select suggestions when triggered via quick suggest or trigger characters.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setSelectionMode
- Parameters:
selectionMode
- Select suggestions when triggered via quick suggest or trigger characters.- 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.
-
isShowDeprecated
- Returns:
- Show deprecated-suggestions.
-
setShowDeprecated
- Parameters:
showDeprecated
- Show deprecated-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.
-
isShowInlineDetails
- Returns:
- Show details inline with the label. Defaults to
true
.
-
setShowInlineDetails
- Parameters:
showInlineDetails
- Show details inline with the label. 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.
-
isShowIssues
- Returns:
- Show issue-suggestions.
-
setShowIssues
- Parameters:
showIssues
- Show issue-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.
-
isShowStatusBar
- Returns:
- Enable or disable the suggest status bar.
-
setShowStatusBar
- Parameters:
showStatusBar
- Enable or disable the suggest status bar.- 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.
-
isShowUsers
- Returns:
- Show user-suggestions.
-
setShowUsers
- Parameters:
showUsers
- Show user-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 totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-