Package net.risingworld.api.ui
Klasse UIScrollView
java.lang.Object
net.risingworld.api.ui.UIElement
net.risingworld.api.ui.UIScrollView
- Alle implementierten Schnittstellen:
Serializable
Represents a dynamic scroll view. Child elements added to the scroll view will only be visible
within the scroll area. You can add any kind of content to the scroll view element.
Example: Create scroll view and add some elements to it
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Modifizierer und TypKlasseBeschreibungstatic enum
static enum
-
Feldübersicht
Von Klasse geerbte Felder net.risingworld.api.ui.UIElement
hoverStyle, style
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungfloat
float
Gets the visibility setting for the horizontal scroll element.float
Gets the scroll view mode.float
Gets the visibility setting for the vertical scroll element.void
setElasticity
(float elasticity) void
setHorizontalPageSize
(float pageSize) void
Sets the visibility for the horizontal scroll element.void
setMouseWheelScrollSize
(float scrollSize) void
setVerticalPageSize
(float pageSize) void
Sets the visibility for the vertical scroll element.Von Klasse geerbte Methoden net.risingworld.api.ui.UIElement
addChild, addStyleSheet, addToClassList, getChildCount, getChilds, getID, getParent, getPluginID, isClickable, onClick, removeAllChilds, removeChild, removeFromClassList, removeFromParent, removeStyleSheet, resetPivot, resetPosition, setBackgroundColor, setBackgroundColor, setBorder, setBorderColor, setBorderColor, setBorderEdgeRadius, setClickable, setOpacity, setPickable, setPivot, setPosition, setSize, setVisible, updateStyle
-
Konstruktordetails
-
UIScrollView
Creates a new scroll view.- Parameter:
mode
- scroll view mode. Cannot be changed retroactively.
-
-
Methodendetails
-
getScrollViewMode
Gets the scroll view mode.- Gibt zurück:
- the scroll view mode.
-
setHorizontalScrollerVisibility
Sets the visibility for the horizontal scroll element.- Parameter:
visibility
- the visibility setting for the horizontal scroller.
-
getHorizontalScrollerVisibility
Gets the visibility setting for the horizontal scroll element.- Gibt zurück:
- the horizontal scroller visibility setting.
-
setVerticalScrollerVisibility
Sets the visibility for the vertical scroll element.- Parameter:
visibility
- the visibility setting for the vertical scroller.
-
getVerticalScrollerVisibility
Gets the visibility setting for the vertical scroll element.- Gibt zurück:
- the vertical scroller visibility setting.
-
setHorizontalPageSize
public void setHorizontalPageSize(float pageSize) -
getHorizontalPageSize
public float getHorizontalPageSize() -
setVerticalPageSize
public void setVerticalPageSize(float pageSize) -
getVerticalPageSize
public float getVerticalPageSize() -
setMouseWheelScrollSize
public void setMouseWheelScrollSize(float scrollSize) -
getMouseWheelScrollSize
public float getMouseWheelScrollSize() -
setElasticity
public void setElasticity(float elasticity) -
getElasticity
public float getElasticity()
-