Package org.netbeans.api.visual.action.WidgetAction

Examples of org.netbeans.api.visual.action.WidgetAction.WidgetMouseEvent


    @Override
    public State mousePressed(Widget widget, WidgetMouseEvent event) {
        // TODO: Solve this differently?
        if (event.getButton() != MouseEvent.BUTTON2) {
            return innerAction.mousePressed(widget, new WidgetMouseEvent(event.getEventID(), new MouseEvent(panel, (int) event.getEventID(), event.getWhen(), event.getModifiersEx(), event.getPoint().x, event.getPoint().y, event.getClickCount(), event.isPopupTrigger(), MouseEvent.BUTTON1)));
        } else {
            return super.mousePressed(widget, event);
        }
    }
View Full Code Here

TOP

Related Classes of org.netbeans.api.visual.action.WidgetAction.WidgetMouseEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.