Class EditorInlineSuggestOptions

  • All Implemented Interfaces:
    java.io.Serializable

    public class EditorInlineSuggestOptions
    extends org.primefaces.shaded.json.JSONObject
    implements java.io.Serializable
    Control the behavior and rendering of the inline completions.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.primefaces.shaded.json.JSONObject

        NULL
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMode()  
      java.lang.Boolean isEnabled()  
      EditorInlineSuggestOptions setEnabled​(java.lang.Boolean enabled)  
      EditorInlineSuggestOptions setMode​(java.lang.String mode)  
      EditorInlineSuggestOptions setMode​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EditorInlineSuggestOptions

        public EditorInlineSuggestOptions()
    • 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 subword to only show ghost text if the replace text is a sub word of the suggestion text. Use subwordSmart to 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 to prefix.
      • 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. Use subword to only show ghost text if the replace text is a sub word of the suggestion text. Use subwordSmart to 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 to prefix.
        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. Use subword to only show ghost text if the replace text is a sub word of the suggestion text. Use subwordSmart to 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 to prefix.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.