org.gnu.gnomevte.event

Class TextScrolledEvent

public class TextScrolledEvent extends GtkEvent

An event representing a text scrolled action by a Terminal widget. An internal event used for communication between the terminal and its accessibility peer. May not be emitted under certain circumstances.
Nested Class Summary
static classTextScrolledEvent.Type
Type of a TerminalEvent.
Constructor Summary
TextScrolledEvent(Object source, EventType type, int scrollDelta)
Constructor for TerminalTextScrolledEvent.
Method Summary
intgetScrollDelta()
Gets the scroll delta.
booleanisOfType(TextScrolledEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Constructor Detail

TextScrolledEvent

public TextScrolledEvent(Object source, EventType type, int scrollDelta)
Constructor for TerminalTextScrolledEvent.

Parameters: source the source of the event. type the event type. scrollDelta the scroll delta.

Method Detail

getScrollDelta

public int getScrollDelta()
Gets the scroll delta.

Returns: the scroll delta.

isOfType

public boolean isOfType(TextScrolledEvent.Type aType)
This method compares the type of the current event to the one provided as an argument.

Parameters: aType the type to compare to.

Returns: true if the events are of same type.