Crossfire JXClient, Trunk
|
Public Member Functions | |
void | addScrollableListener (@NotNull ScrollableListener listener) |
void | removeScrollableListener (@NotNull ScrollableListener listener) |
void | scrollTo (int pos) |
Public Member Functions inherited from com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable | |
boolean | canScroll (int distance) |
void | resetScroll () |
void | scroll (int distance) |
A GUIScrollable that can be attached to GUIScrollBars.
Definition at line 33 of file GUIScrollable2.java.
void com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2.addScrollableListener | ( | @NotNull ScrollableListener | listener | ) |
Adds a scrollable listener to be informed about changes.
listener | the listener to add |
Implemented in com.realtime.crossfire.jxclient.gui.log.GUILog.
void com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2.removeScrollableListener | ( | @NotNull ScrollableListener | listener | ) |
Removes a scrollable listener.
listener | the listener to remove |
Implemented in com.realtime.crossfire.jxclient.gui.log.GUILog.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.dispose().
void com.realtime.crossfire.jxclient.gui.scrollable.GUIScrollable2.scrollTo | ( | int | pos | ) |
Scrolls to the given location. The possible range is given by a previous notification through a listener registered with addScrollableListener(ScrollableListener).
pos | the location to scroll to |
Implemented in com.realtime.crossfire.jxclient.gui.log.GUILog.
Referenced by com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.mouseDragged(), and com.realtime.crossfire.jxclient.gui.misc.GUIScrollBar.mousePressed().