|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.sshtools.terminal.ScrollEvent
public class ScrollEvent
Event fired when an implementation of a VDUScrollBar state
changes in some way. For example a Swing implementation using a
JScrollBar would fire this event when the user scrolls using the slider UI.
The event will have a type associated with it :-
| Field Summary | |
|---|---|
static int |
VALUE_CHANGED
The value of the scroll bar has changed. |
| Fields inherited from class java.util.EventObject |
|---|
source |
| Constructor Summary | |
|---|---|
ScrollEvent(java.lang.Object source,
int type)
Create a new ScrollEvent. |
|
ScrollEvent(java.lang.Object source,
int type,
int value)
Create a new ScrollEvent. |
|
| Method Summary | |
|---|---|
int |
getType()
Get the type of event. |
int |
getValue()
Return a value for this event if one is appropriate). |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int VALUE_CHANGED
| Constructor Detail |
|---|
public ScrollEvent(java.lang.Object source,
int type)
ScrollEvent. Type type will be one of
source - source of eventtype - event type
public ScrollEvent(java.lang.Object source,
int type,
int value)
Create a new ScrollEvent. Type type will be one of
Some event types may value of value associated with them which can also be specified using this constructor
source - source of eventtype - event typevalue - value for appropriate event types| Method Detail |
|---|
public int getType()
public int getValue()
Integer
object specifying the amount the scroll bar has changed if the type is VALUE_CHANGED.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||