Class ScrollBar
- java.lang.Object
-
- de.extio.spacecraft.shared.client.ui.ScrollBar
-
public class ScrollBar extends Object
Helper for scrollbars. I recommend to check for code examples in shipped groovy code to learn more about the usage of this helper and how to integrate in client modules.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RenderingBoLayer
getLayer()
String
getName()
double
getScrollPosition()
void
onEvent(Event event, Predicate<CoordI2> positionIntersectsPredicate)
void
onMouseScroll(int button, CoordI2 absolutePos, Predicate<CoordI2> positionIntersectsPredicate)
void
render(List<RenderingBo> renderingBo, Area2 renderingArea, int numElements)
void
setLayer(RenderingBoLayer layer)
void
setScrollPosition(double scrollPosition)
-
-
-
Constructor Detail
-
ScrollBar
public ScrollBar(String nameSuffix)
-
-
Method Detail
-
onMouseScroll
public void onMouseScroll(int button, CoordI2 absolutePos, Predicate<CoordI2> positionIntersectsPredicate)
-
render
public void render(List<RenderingBo> renderingBo, Area2 renderingArea, int numElements)
-
getScrollPosition
public double getScrollPosition()
-
setScrollPosition
public void setScrollPosition(double scrollPosition)
-
getName
public String getName()
-
getLayer
public RenderingBoLayer getLayer()
-
setLayer
public void setLayer(RenderingBoLayer layer)
-
-