| java.lang.Object com.ibm.richtext.textpanel.Scroller
All known Subclasses: com.ibm.richtext.textpanel.TextComponent,
Scroller | final class Scroller implements AdjustmentListener(Code) | | This class manages the interaction between a scrollable client
and vertical and horizontal scrollbars. It calls the client's
scrollTo method in response to manipulation of the scroll bars.
This class used to be a Panel containing the scrollbars and
the client panel. As part of the migration away from direct
AWT dependencies, this class is no longer part of the view
hierarchy. Instead it simply keeps a reference to its
client and scroll bars. It is the responsibility of higher-
level classes to set up the view hierarchy.
|
Inner Class :static interface Client | |
Constructor Summary | |
public | Scroller(Adjustable horizScrollBar, Adjustable vertScrollBar) Construct a new Scroller with the given Adjustables,
which really should be scrollbars of some ilk.
Also, the Adjustables are required to be AWT Components,
so the Scroller can enable and disable them.
However, a Scroller can work with either AWT Scrollbars
or JFC JScrollbars.
Parameters: horizScrollBar - the horizontal scrollbar. |
Scroller | public Scroller(Adjustable horizScrollBar, Adjustable vertScrollBar)(Code) | | Construct a new Scroller with the given Adjustables,
which really should be scrollbars of some ilk.
Also, the Adjustables are required to be AWT Components,
so the Scroller can enable and disable them.
However, a Scroller can work with either AWT Scrollbars
or JFC JScrollbars.
Parameters: horizScrollBar - the horizontal scrollbar. null ifthere is no horizontal scrollbar. Parameters: vertScrollBar - the vertical scrollbar. null ifthere is no vertical scrollbar. |
clientScrollSizeChanged | public void clientScrollSizeChanged()(Code) | | |
setClient | public void setClient(Client client)(Code) | | |
setHorizLineDistance | public void setHorizLineDistance(int newDistance)(Code) | | |
setHorizPageOverlap | public void setHorizPageOverlap(int newOverlap)(Code) | | |
setPosition | public void setPosition(int x, int y)(Code) | | |
setVertLineDistance | public void setVertLineDistance(int newDistance)(Code) | | |
setVertPageOverlap | public void setVertPageOverlap(int newOverlap)(Code) | | |
|
|