Merged gcj-eclipse branch to trunk.
From-SVN: r120621
This commit is contained in:
@@ -59,7 +59,7 @@ public class DragGestureEvent extends EventObject
|
||||
private Component component;
|
||||
private final Point origin;
|
||||
private final int action;
|
||||
private List events;
|
||||
private List<InputEvent> events;
|
||||
private DragGestureRecognizer dgr;
|
||||
|
||||
/**
|
||||
@@ -71,15 +71,15 @@ public class DragGestureEvent extends EventObject
|
||||
* @throws IllegalArgumentException - if input parameters are null
|
||||
*/
|
||||
public DragGestureEvent(DragGestureRecognizer dgr, int action, Point origin,
|
||||
List events)
|
||||
{
|
||||
List<? extends InputEvent> events)
|
||||
{
|
||||
super(dgr);
|
||||
if (origin == null || events == null || dgr == null)
|
||||
throw new IllegalArgumentException();
|
||||
|
||||
|
||||
this.origin = origin;
|
||||
this.action = action;
|
||||
this.events = events;
|
||||
this.events = (List<InputEvent>) events;
|
||||
this.dgr = dgr;
|
||||
this.component = dgr.getComponent();
|
||||
this.dragSource = dgr.getDragSource();
|
||||
@@ -130,7 +130,7 @@ public class DragGestureEvent extends EventObject
|
||||
*
|
||||
* @return an iterator representation of the List of events.
|
||||
*/
|
||||
public Iterator iterator()
|
||||
public Iterator<InputEvent> iterator()
|
||||
{
|
||||
return events.iterator();
|
||||
}
|
||||
@@ -155,7 +155,7 @@ public class DragGestureEvent extends EventObject
|
||||
{
|
||||
return events.toArray(array);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Gets the user's preferred action.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user