Class EditorScrollbarOptions
- java.lang.Object
-
- org.primefaces.shaded.json.JSONObject
-
- org.primefaces.extensions.model.monacoeditor.EditorScrollbarOptions
-
- All Implemented Interfaces:
java.io.Serializable
public class EditorScrollbarOptions extends org.primefaces.shaded.json.JSONObject implements java.io.Serializable- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EditorScrollbarOptions()
-
Method Summary
-
Methods inherited from class org.primefaces.shaded.json.JSONObject
accumulate, append, doubleToString, entrySet, get, getBigDecimal, getBigInteger, getBoolean, getDouble, getEnum, getFloat, getInt, getJSONArray, getJSONObject, getLong, 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, 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
-
-
-
-
Method Detail
-
isAlwaysConsumeMouseWheel
public java.lang.Boolean isAlwaysConsumeMouseWheel()
- Returns:
- Always consume mouse wheel events (always call
preventDefault()andstopPropagation()on the browser events). Defaults totrue.
-
setAlwaysConsumeMouseWheel
public EditorScrollbarOptions setAlwaysConsumeMouseWheel(java.lang.Boolean alwaysConsumeMouseWheel)
- 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
public java.lang.Number getArrowSize()
- Returns:
- The size of arrows (if displayed). Defaults to
11.
-
setArrowSize
public EditorScrollbarOptions setArrowSize(java.lang.Number arrowSize)
- Parameters:
arrowSize- The size of arrows (if displayed). Defaults to11.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
isHandleMouseWheel
public java.lang.Boolean isHandleMouseWheel()
- Returns:
- Listen to mouse wheel events and react to them by scrolling. Defaults to
true.
-
setHandleMouseWheel
public EditorScrollbarOptions setHandleMouseWheel(java.lang.Boolean handleMouseWheel)
- 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
public java.lang.String getHorizontal()
- Returns:
- Render horizontal scrollbar. Defaults to
auto.
-
setHorizontal
public EditorScrollbarOptions setHorizontal(EScrollbarHorizontal horizontal)
- Parameters:
horizontal- Render horizontal scrollbar. Defaults toauto.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setHorizontal
public EditorScrollbarOptions setHorizontal(java.lang.String horizontal)
-
isHorizontalHasArrows
public java.lang.Boolean isHorizontalHasArrows()
- Returns:
- Render arrows at the left and right of the horizontal scrollbar. Defaults to
false.
-
setHorizontalHasArrows
public EditorScrollbarOptions setHorizontalHasArrows(java.lang.Boolean horizontalHasArrows)
- 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
public java.lang.Number getHorizontalScrollbarSize()
- Returns:
- Height in pixels for the horizontal scrollbar. Defaults to
10(px).
-
setHorizontalScrollbarSize
public EditorScrollbarOptions setHorizontalScrollbarSize(java.lang.Number horizontalScrollbarSize)
- 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
public java.lang.Number getHorizontalSliderSize()
- Returns:
- Height in pixels for the horizontal slider. Defaults to
horizontalScrollbarSize.
-
setHorizontalSliderSize
public EditorScrollbarOptions setHorizontalSliderSize(java.lang.Number horizontalSliderSize)
- 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
public java.lang.Boolean isUseShadows()
- Returns:
- Cast horizontal and vertical shadows when the content is scrolled. Defaults to
true.
-
setUseShadows
public EditorScrollbarOptions setUseShadows(java.lang.Boolean useShadows)
- 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
public java.lang.String getVertical()
- Returns:
- Render vertical scrollbar. Defaults to
auto.
-
setVertical
public EditorScrollbarOptions setVertical(EScrollbarVertical vertical)
- Parameters:
vertical- Render vertical scrollbar. Defaults toauto.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
setVertical
public EditorScrollbarOptions setVertical(java.lang.String vertical)
-
isVerticalHasArrows
public java.lang.Boolean isVerticalHasArrows()
- Returns:
- Render arrows at the top and bottom of the vertical scrollbar. Defaults to
false.
-
setVerticalHasArrows
public EditorScrollbarOptions setVerticalHasArrows(java.lang.Boolean verticalHasArrows)
- 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
public java.lang.Number getVerticalScrollbarSize()
- Returns:
- Width in pixels for the vertical scrollbar. Defaults to
10(px).
-
setVerticalScrollbarSize
public EditorScrollbarOptions setVerticalScrollbarSize(java.lang.Number verticalScrollbarSize)
- 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
public java.lang.Number getVerticalSliderSize()
- Returns:
- Width in pixels for the vertical slider. Defaults to
verticalScrollbarSize.
-
setVerticalSliderSize
public EditorScrollbarOptions setVerticalSliderSize(java.lang.Number verticalSliderSize)
- Parameters:
verticalSliderSize- Width in pixels for the vertical slider. Defaults toverticalScrollbarSize.- Returns:
- This same instance, useful for chaining multiple setter methods in one call.
-
-