Class EditorScrollbarOptions
java.lang.Object
org.primefaces.shaded.json.JSONObject
org.primefaces.extensions.model.monacoeditor.EditorScrollbarOptions
- All Implemented Interfaces:
Serializable
public class EditorScrollbarOptions
extends org.primefaces.shaded.json.JSONObject
implements Serializable
Configuration options for editor scrollbars
- See Also:
-
Field Summary
Fields inherited from class org.primefaces.shaded.json.JSONObject
NULL
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetAlwaysConsumeMouseWheel
(Boolean alwaysConsumeMouseWheel) setArrowSize
(Number arrowSize) setHandleMouseWheel
(Boolean handleMouseWheel) setHorizontal
(String horizontal) setHorizontal
(EScrollbarHorizontal horizontal) setHorizontalHasArrows
(Boolean horizontalHasArrows) setHorizontalScrollbarSize
(Number horizontalScrollbarSize) setHorizontalSliderSize
(Number horizontalSliderSize) setIgnoreHorizontalScrollbarInContentHeight
(Boolean ignoreHorizontalScrollbarInContentHeight) setScrollByPage
(Boolean scrollByPage) setUseShadows
(Boolean useShadows) setVertical
(String vertical) setVertical
(EScrollbarVertical vertical) setVerticalHasArrows
(Boolean verticalHasArrows) setVerticalScrollbarSize
(Number verticalScrollbarSize) setVerticalSliderSize
(Number verticalSliderSize) 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
-
EditorScrollbarOptions
public EditorScrollbarOptions()
-
-
Method Details
-
isAlwaysConsumeMouseWheel
- Returns:
- Always consume mouse wheel events (always call
preventDefault()
andstopPropagation()
on the browser events). Defaults totrue
.
-
setAlwaysConsumeMouseWheel
- Parameters:
alwaysConsumeMouseWheel
- Always consume mouse wheel events (always callpreventDefault()
andstopPropagation()
on the browser events). Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getArrowSize
- Returns:
- The size of arrows (if displayed). Defaults to
11
.
-
setArrowSize
- Parameters:
arrowSize
- The size of arrows (if displayed). Defaults to11
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isHandleMouseWheel
- Returns:
- Listen to mouse wheel events and react to them by scrolling. Defaults to
true
.
-
setHandleMouseWheel
- Parameters:
handleMouseWheel
- Listen to mouse wheel events and react to them by scrolling. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getHorizontal
- Returns:
- Render horizontal scrollbar. Defaults to
auto
.
-
setHorizontal
- Parameters:
horizontal
- Render horizontal scrollbar. Defaults toauto
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setHorizontal
- Parameters:
horizontal
- Render horizontal scrollbar. Defaults toauto
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isHorizontalHasArrows
- Returns:
- Render arrows at the left and right of the horizontal scrollbar. Defaults to
false
.
-
setHorizontalHasArrows
- Parameters:
horizontalHasArrows
- Render arrows at the left and right of the horizontal scrollbar. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getHorizontalScrollbarSize
- Returns:
- Height in pixels for the horizontal scrollbar. Defaults to
10
(px).
-
setHorizontalScrollbarSize
- Parameters:
horizontalScrollbarSize
- Height in pixels for the horizontal scrollbar. Defaults to10
(px).- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getHorizontalSliderSize
- Returns:
- Height in pixels for the horizontal slider. Defaults to
horizontalScrollbarSize
.
-
setHorizontalSliderSize
- Parameters:
horizontalSliderSize
- Height in pixels for the horizontal slider. Defaults tohorizontalScrollbarSize
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isIgnoreHorizontalScrollbarInContentHeight
- Returns:
- When set, the horizontal scrollbar will not increase content height. Defaults to
false
.
-
setIgnoreHorizontalScrollbarInContentHeight
public EditorScrollbarOptions setIgnoreHorizontalScrollbarInContentHeight(Boolean ignoreHorizontalScrollbarInContentHeight) - Parameters:
ignoreHorizontalScrollbarInContentHeight
- When set, the horizontal scrollbar will not increase content height. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isScrollByPage
- Returns:
- Scroll gutter clicks move by page vs jump to position. Defaults to
false
.
-
setScrollByPage
- Parameters:
scrollByPage
- Scroll gutter clicks move by page vs jump to position. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isUseShadows
- Returns:
- Cast horizontal and vertical shadows when the content is scrolled. Defaults to
true
.
-
setUseShadows
- Parameters:
useShadows
- Cast horizontal and vertical shadows when the content is scrolled. Defaults totrue
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getVertical
- Returns:
- Render vertical scrollbar. Defaults to
auto
.
-
setVertical
- Parameters:
vertical
- Render vertical scrollbar. Defaults toauto
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setVertical
- Parameters:
vertical
- Render vertical scrollbar. Defaults toauto
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isVerticalHasArrows
- Returns:
- Render arrows at the top and bottom of the vertical scrollbar. Defaults to
false
.
-
setVerticalHasArrows
- Parameters:
verticalHasArrows
- Render arrows at the top and bottom of the vertical scrollbar. Defaults tofalse
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getVerticalScrollbarSize
- Returns:
- Width in pixels for the vertical scrollbar. Defaults to
10
(px).
-
setVerticalScrollbarSize
- Parameters:
verticalScrollbarSize
- Width in pixels for the vertical scrollbar. Defaults to10
(px).- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
getVerticalSliderSize
- Returns:
- Width in pixels for the vertical slider. Defaults to
verticalScrollbarSize
.
-
setVerticalSliderSize
- Parameters:
verticalSliderSize
- Width in pixels for the vertical slider. Defaults toverticalScrollbarSize
.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-