Class EditorInlayHintOptions

  • All Implemented Interfaces:
    java.io.Serializable

    public class EditorInlayHintOptions
    extends org.primefaces.shaded.json.JSONObject
    implements java.io.Serializable
    Control the behavior and rendering of the inline hints.
    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 getEnabled()  
      java.lang.String getFontFamily()  
      java.lang.Number getFontSize()  
      java.lang.Boolean isPadding()  
      EditorInlayHintOptions setEnabled​(java.lang.String enabled)  
      EditorInlayHintOptions setEnabled​(EInlineSuggestMode enabled)  
      EditorInlayHintOptions setFontFamily​(java.lang.String fontFamily)  
      EditorInlayHintOptions setFontSize​(java.lang.Number fontSize)  
      EditorInlayHintOptions setPadding​(java.lang.Boolean padding)  
      • 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
      • Methods inherited from class java.lang.Object

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

      • EditorInlayHintOptions

        public EditorInlayHintOptions()
    • Method Detail

      • getEnabled

        public java.lang.String getEnabled()
        Returns:
        Enable the inline hints. Defaults to on.
      • setEnabled

        public EditorInlayHintOptions setEnabled​(EInlineSuggestMode enabled)
        Parameters:
        enabled - Enable the inline hints. Defaults to on.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • setEnabled

        public EditorInlayHintOptions setEnabled​(java.lang.String enabled)
        Parameters:
        enabled - Enable the inline hints. Defaults to on.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFontFamily

        public java.lang.String getFontFamily()
        Returns:
        Font family of inline hints. Defaults to editor font family.
      • setFontFamily

        public EditorInlayHintOptions setFontFamily​(java.lang.String fontFamily)
        Parameters:
        fontFamily - Font family of inline hints. Defaults to editor font family.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • getFontSize

        public java.lang.Number getFontSize()
        Returns:
        Font size of inline hints. Default to 90% of the editor font size.
      • setFontSize

        public EditorInlayHintOptions setFontSize​(java.lang.Number fontSize)
        Parameters:
        fontSize - Font size of inline hints. Default to 90% of the editor font size.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.
      • isPadding

        public java.lang.Boolean isPadding()
        Returns:
        Enables the padding around the inlay hint. Defaults to false.
      • setPadding

        public EditorInlayHintOptions setPadding​(java.lang.Boolean padding)
        Parameters:
        padding - Enables the padding around the inlay hint. Defaults to false.
        Returns:
        This same instance, useful for chaining multiple setter methods in one call.