Java Code Examples for org.netbeans.api.visual.action.WidgetAction.State#REJECTED

The following examples show how to use org.netbeans.api.visual.action.WidgetAction.State#REJECTED . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MouseOverAction.java    From jdk8u60 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 2
Source File: MouseOverAction.java    From openjdk-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 3
Source File: MouseOverAction.java    From openjdk-jdk8u with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 4
Source File: MouseOverAction.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 5
Source File: MouseOverAction.java    From openjdk-8-source with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 6
Source File: MouseOverAction.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 7
Source File: MouseOverAction.java    From TencentKona-8 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 8
Source File: CustomizablePanAction.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mousePressed (Widget widget, WidgetMouseEvent event) {
    if (isLocked ())
        return State.createLocked (widget, this);
    if (enabled && (event.getModifiersEx() & modifiersExMask) == modifiersEx) {
        scene = widget.getScene ();
        scrollPane = findScrollPane (scene.getView ());
        if (scrollPane != null) {
            lastLocation = scene.convertSceneToView (widget.convertLocalToScene (event.getPoint ()));
            SwingUtilities.convertPointToScreen (lastLocation, scene.getView ());
            return State.createLocked (widget, this);
        }
    }
    return State.REJECTED;
}
 
Example 9
Source File: CustomizablePanAction.java    From openjdk-jdk9 with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseReleased (Widget widget, WidgetMouseEvent event) {
    boolean state = pan (widget, event.getPoint ());
    if (state)
        scrollPane = null;
    return state ? State.createLocked (widget, this) : State.REJECTED;
}
 
Example 10
Source File: MouseOverAction.java    From hottub with GNU General Public License v2.0 5 votes vote down vote up
@Override
public State mouseMoved(Widget widget, WidgetMouseEvent event) {
    long id = event.getEventID();
    if (id != eventID) {
        eventID = id;
        provider.widgetHovered(widget);
    }
    return State.REJECTED;
}
 
Example 11
Source File: MouseOverAction.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}
 
Example 12
Source File: MouseOverAction.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}
 
Example 13
Source File: MouseOverAction.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}
 
Example 14
Source File: MouseOverAction.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}
 
Example 15
Source File: CustomizablePanAction.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseDragged (Widget widget, WidgetMouseEvent event) {
    return pan (widget, event.getPoint ()) ? State.createLocked (widget, this) : State.REJECTED;
}
 
Example 16
Source File: MouseOverAction.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}
 
Example 17
Source File: MouseOverAction.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}
 
Example 18
Source File: MouseOverAction.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}
 
Example 19
Source File: MouseOverAction.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
@Override
public State mouseExited(Widget widget, WidgetMouseEvent event) {
    provider.widgetHovered(null);
    return State.REJECTED;
}