Interface GUIScrollable2
-
- All Superinterfaces:
GUIScrollable
- All Known Implementing Classes:
GUILabelLog,GUILog,GUIMessageLog
public interface GUIScrollable2 extends GUIScrollable
AGUIScrollablethat can be attached toGUIScrollBars.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddScrollableListener(@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 Detail
-
addScrollableListener
void addScrollableListener(@NotNull @NotNull ScrollableListener listener)Adds a scrollable listener to be informed about changes.- Parameters:
listener- the listener to add
-
removeScrollableListener
void removeScrollableListener(@NotNull @NotNull ScrollableListener listener)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
-
-