![JAR search and dependency download from the Maven repository](/logo.png)
com.objogate.wl.swing.driver.JMenuItemDriver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of windowlicker-swing Show documentation
Show all versions of windowlicker-swing Show documentation
This is the Windowlicker Swing library.
The newest version!
package com.objogate.wl.swing.driver;
import static com.objogate.wl.gesture.Gestures.BUTTON1;
import static com.objogate.wl.gesture.Gestures.clickMouseButton;
import static com.objogate.wl.gesture.RightAngleMouseMoveGesture.horizontalThenVerticalMouseMove;
import java.awt.Component;
import javax.swing.JMenuItem;
import org.hamcrest.Matcher;
public class JMenuItemDriver extends AbstractButtonDriver {
@SuppressWarnings("unchecked")
public JMenuItemDriver(ComponentDriver extends Component> parentOrOwner, Matcher super JMenuItem> matcher) {
super(parentOrOwner, JMenuItem.class, matcher);
}
@Override
public void leftClickOnComponent() {
isShowingOnScreen();
performGesture(horizontalThenVerticalMouseMove(centerOfComponent()), clickMouseButton(BUTTON1));
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy