use of org.fest.swing.core.ComponentDragAndDrop in project ats-framework by Axway.
the class SwingComponent method drag.
/**
* Simulates a user dragging of this component
*
*/
@PublicAtsApi
public void drag() {
new SwingElementState(this).waitToBecomeExisting();
ComponentFixture<? extends Component> componentFixture = SwingElementLocator.findFixture(this);
ComponentDragAndDrop componentDragAndDrop = new ComponentDragAndDrop(componentFixture.robot);
componentDragAndDrop.drag(componentFixture.target, getComponentCenterLocation(componentFixture.target));
}
use of org.fest.swing.core.ComponentDragAndDrop in project ats-framework by Axway.
the class SwingComponent method drop.
/**
* Simulates a user dropping to this component
*
*/
@PublicAtsApi
public void drop() {
new SwingElementState(this).waitToBecomeExisting();
ComponentFixture<? extends Component> componentFixture = SwingElementLocator.findFixture(this);
ComponentDragAndDrop componentDragAndDrop = new ComponentDragAndDrop(componentFixture.robot);
componentDragAndDrop.drop(componentFixture.target, getComponentCenterLocation(componentFixture.target));
}
Aggregations