public class ScrollEvent extends Event
| Modifier and Type | Field and Description |
|---|---|
private java.lang.Integer |
newX
New X scroll position.
|
private java.lang.Integer |
newY
New Y scroll position.
|
| Constructor and Description |
|---|
ScrollEvent(Widget<?> source,
java.lang.Integer newX,
java.lang.Integer newY)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Integer |
newX()
Get the new scroll position on the X axis.
|
java.lang.Integer |
newY()
Get the new scroll position on the Y axis.
|
void |
print(PrintHelper printer)
Print all class-specific fields.
|
consume, id, isConsumed, merge, other, source, toStringprivate java.lang.Integer newX
private java.lang.Integer newY
public ScrollEvent(Widget<?> source, java.lang.Integer newX, java.lang.Integer newY)
source - Event source.newX - The new X position, if null the event will not represent
a scroll on the X axis.newY - The new Y position, if null the event will not represent
a scroll on the Y axis.public java.lang.Integer newX()
null value can be interpreted as no scroll on the X axis.public java.lang.Integer newY()
null value can be interpreted as no scroll on the Y axis.public void print(PrintHelper printer)