Class EditorStickyScrollOptions

java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorStickyScrollOptions
All Implemented Interfaces:
Serializable

public class EditorStickyScrollOptions extends org.primefaces.shaded.json.JSONObject implements Serializable
Control the behavior of sticky scroll options
See Also:
  • Constructor Details

    • EditorStickyScrollOptions

      public EditorStickyScrollOptions()
  • Method Details

    • getDefaultModel

      public String getDefaultModel()
      Returns:
      Model to choose for sticky scroll by default.
    • setDefaultModel

      public EditorStickyScrollOptions setDefaultModel(EStickDefaultModelMode defaultModel)
      Parameters:
      defaultModel - Model to choose for sticky scroll by default.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • setDefaultModel

      public EditorStickyScrollOptions setDefaultModel(String defaultModel)
      Parameters:
      defaultModel - Model to choose for sticky scroll by default.
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • isEnabled

      public Boolean isEnabled()
      Returns:
      Enable the sticky scroll
    • setEnabled

      public EditorStickyScrollOptions setEnabled(Boolean enabled)
      Parameters:
      enabled - Enable the sticky scroll
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.
    • getMaxLineCount

      public Number getMaxLineCount()
      Returns:
      Maximum number of sticky lines to show
    • setMaxLineCount

      public EditorStickyScrollOptions setMaxLineCount(Number maxLineCount)
      Parameters:
      maxLineCount - Maximum number of sticky lines to show
      Returns:
      This same instance, useful for chaining multiple setter methods in one call.