Class EditorScrollbarOptions
java.lang.Object
org.primefaces.json.JSONObject
com.github.blutorange.primefaces.config.monacoeditor.EditorScrollbarOptions
- All Implemented Interfaces:
Serializable
public class EditorScrollbarOptions extends org.primefaces.json.JSONObject implements Serializable
- See Also:
- Serialized Form
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EditorScrollbarOptions()
-
Method Summary
Methods inherited from class org.primefaces.json.JSONObject
accumulate, append, doubleToString, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getInt, getJSONArray, getJSONObject, getLong, getNames, getNames, getString, has, increment, isNull, keys, keySet, length, names, numberToString, opt, optBigDecimal, optBigInteger, optBoolean, optBoolean, optDouble, optDouble, optEnum, optEnum, optInt, optInt, optJSONArray, optJSONObject, optLong, optLong, optString, optString, put, put, put, put, put, put, put, putOnce, putOpt, quote, quote, remove, similar, stringToValue, testValidity, toJSONArray, toString, toString, valueToString, wrap, 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
-
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.
-
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
-
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.
-