charva.awt.event

Class ScrollEvent


public class ScrollEvent
extends AWTEvent

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).

Field Summary

static int
DOWN
static int
DOWN_LEFT
static int
DOWN_RIGHT
static int
LEFT
static int
RIGHT
static int
UP
static int
UP_LEFT
static int
UP_RIGHT

Fields inherited from class charva.awt.event.AWTEvent

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

Constructor Summary

ScrollEvent(Component source_, int direction_, Point limit_)
Construct a ScrollEvent with the specified direction and limit parameters.

Method Summary

int
getDirection()
Point
getLimit()
Scrollable
getScrollable()

Methods inherited from class charva.awt.event.AWTEvent

getID

Field Details

DOWN

public static final int DOWN
Field Value:
103

DOWN_LEFT

public static final int DOWN_LEFT
Field Value:
106

DOWN_RIGHT

public static final int DOWN_RIGHT
Field Value:
107

LEFT

public static final int LEFT
Field Value:
100

RIGHT

public static final int RIGHT
Field Value:
101

UP

public static final int UP
Field Value:
102

UP_LEFT

public static final int UP_LEFT
Field Value:
104

UP_RIGHT

public static final int UP_RIGHT
Field Value:
105

Constructor Details

ScrollEvent

public ScrollEvent(Component source_,
                   int direction_,
                   Point limit_)
Construct a ScrollEvent with the specified direction and limit parameters.
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.

Method Details

getDirection

public int getDirection()

getLimit

public Point getLimit()

getScrollable

public Scrollable getScrollable()