com.realtime.crossfire.jxclient.gui.scrollable
Interface GUIScrollable2

All Superinterfaces:
GUIScrollable
All Known Implementing Classes:
GUILabelLog, GUILog, GUIMessageLog

public interface GUIScrollable2
extends GUIScrollable

A GUIScrollable that can be attached to GUIScrollBars.


Method Summary
 void addScrollableListener(ScrollableListener listener)
          Add a scrollable listener to be informed about changes.
 void removeScrollableListener(ScrollableListener listener)
          Remove a scrollable listener.
 void scrollTo(int pos)
          Scroll to the given location.
 
Methods inherited from interface com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable
canScroll, resetScroll, scroll
 

Method Detail

addScrollableListener

void addScrollableListener(@NotNull
                           ScrollableListener listener)
Add a scrollable listener to be informed about changes.

Parameters:
listener - The listener to add.

removeScrollableListener

void removeScrollableListener(@NotNull
                              ScrollableListener listener)
Remove a scrollable listener.

Parameters:
listener - The listener to remove.

scrollTo

void scrollTo(int pos)
Scroll to the given location. The possible range is given by a previous notification through a listener registered with addScrollableListener(ScrollableListener).

Parameters:
pos - The location to scroll to.