charva.awt.event
Class ScrollEvent
A ScrollEvent is posted on the event queue by a scrollable object
such as a Table, when its state changes in such a way that it may
need to be scrolled (if it is contained within a ScrollPane).
ACTION_PERFORMED, ADJUSTMENT_EVENT, FOCUS_GAINED, FOCUS_LOST, GARBAGE_COLLECTION, INVOCATION_EVENT, ITEM_STATE_CHANGED, KEY_PRESSED, KEY_TYPED, LIST_SELECTION, MOUSE_EVENT, PAINT_EVENT, RESERVED_ID_MAX, SCROLL_EVENT, SYNC_EVENT, WINDOW_CLOSING, WINDOW_OPENED |
ScrollEvent(Component source_, int direction_, Point limit_)- Construct a ScrollEvent with the specified direction and limit
parameters.
|
DOWN
public static final int DOWN
DOWN_LEFT
public static final int DOWN_LEFT
DOWN_RIGHT
public static final int DOWN_RIGHT
LEFT
public static final int LEFT
RIGHT
public static final int RIGHT
UP
public static final int UP
UP_LEFT
public static final int UP_LEFT
UP_RIGHT
public static final int UP_RIGHT
ScrollEvent
public ScrollEvent(Component source_,
int direction_,
Point limit_) Construct a ScrollEvent with the specified direction and limit
parameters.
direction_ - The direction that the ScrollPane must (potentially)
scroll the scrollable component (eg LEFT, RIGHT, UP or DOWN).limit_ - A Point representing the row and column that must
appear at the edge of the Viewport if the component is scrolled.
For examplem, if direction_ is LEFT, the limit_ is the rightmost
column that must appear in the viewport.
getDirection
public int getDirection()
getLimit
public Point getLimit()