Interface GUIScrollable2
- All Superinterfaces:
GUIScrollable
- All Known Implementing Classes:
GUILabelLog,GUILog,GUIMessageLog
A
GUIScrollable that can be attached to
GUIScrollBars.-
Method Summary
Modifier and TypeMethodDescriptionvoidaddScrollableListener(@NotNull ScrollableListener listener) Adds a scrollable listener to be informed about changes.voidremoveScrollableListener(@NotNull ScrollableListener listener) Removes a scrollable listener.voidscrollTo(int pos) Scrolls to the given location.Methods inherited from interface com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable
canScroll, resetScroll, scroll
-
Method Details
-
addScrollableListener
Adds a scrollable listener to be informed about changes.- Parameters:
listener- the listener to add
-
removeScrollableListener
Removes a scrollable listener.- Parameters:
listener- the listener to remove
-
scrollTo
void scrollTo(int pos) Scrolls to the given location. The possible range is given by a previous notification through a listener registered withaddScrollableListener(ScrollableListener).- Parameters:
pos- the location to scroll to
-