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 RenderingBoLayergetLayer()StringgetName()doublegetScrollPosition()voidonEvent(Event event, Predicate<CoordI2> positionIntersectsPredicate)voidonMouseScroll(int button, CoordI2 absolutePos, Predicate<CoordI2> positionIntersectsPredicate)voidrender(List<RenderingBo> renderingBo, Area2 renderingArea, int numElements)voidsetLayer(RenderingBoLayer layer)voidsetScrollPosition(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)
-
-