org.netbeans.api.visual.action.WidgetAction.State Java Examples
The following examples show how to use
org.netbeans.api.visual.action.WidgetAction.State.
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 openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@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-jdk9 with GNU General Public License v2.0 | 5 votes |
@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 TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@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: ExtendedSelectAction.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #5
Source File: MouseOverAction.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@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-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
@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: CustomizablePanAction.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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 #8
Source File: ExtendedSelectAction.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #9
Source File: ExtendedSelectAction.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #10
Source File: CustomizablePanAction.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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 #11
Source File: ExtendedSelectAction.java From hottub with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #12
Source File: MouseOverAction.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@Override public State mouseMoved(Widget widget, WidgetMouseEvent event) { long id = event.getEventID(); if (id != eventID) { eventID = id; provider.widgetHovered(widget); } return State.REJECTED; }
Example #13
Source File: ExtendedSelectAction.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #14
Source File: ExtendedSelectAction.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #15
Source File: MouseOverAction.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
@Override public State mouseMoved(Widget widget, WidgetMouseEvent event) { long id = event.getEventID(); if (id != eventID) { eventID = id; provider.widgetHovered(widget); } return State.REJECTED; }
Example #16
Source File: ExtendedSelectAction.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #17
Source File: ExtendedSelectAction.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
@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); } }
Example #18
Source File: MouseOverAction.java From hottub with GNU General Public License v2.0 | 5 votes |
@Override public State mouseMoved(Widget widget, WidgetMouseEvent event) { long id = event.getEventID(); if (id != eventID) { eventID = id; provider.widgetHovered(widget); } return State.REJECTED; }
Example #19
Source File: MouseOverAction.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public State mouseExited(Widget widget, WidgetMouseEvent event) { provider.widgetHovered(null); return State.REJECTED; }
Example #20
Source File: MouseOverAction.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public State mouseExited(Widget widget, WidgetMouseEvent event) { provider.widgetHovered(null); return State.REJECTED; }
Example #21
Source File: ExtendedSelectAction.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public State mouseReleased(Widget widget, WidgetMouseEvent event) { return innerAction.mouseReleased(widget, event); }
Example #22
Source File: ExtendedSelectAction.java From hottub with GNU General Public License v2.0 | 4 votes |
@Override public State keyTyped(Widget widget, WidgetKeyEvent event) { return innerAction.keyTyped(widget, event); }
Example #23
Source File: MouseOverAction.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public State mouseExited(Widget widget, WidgetMouseEvent event) { provider.widgetHovered(null); return State.REJECTED; }
Example #24
Source File: ExtendedSelectAction.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public State mouseReleased(Widget widget, WidgetMouseEvent event) { return innerAction.mouseReleased(widget, event); }
Example #25
Source File: ExtendedSelectAction.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
@Override public State keyTyped(Widget widget, WidgetKeyEvent event) { return innerAction.keyTyped(widget, event); }
Example #26
Source File: MouseOverAction.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public State mouseExited(Widget widget, WidgetMouseEvent event) { provider.widgetHovered(null); return State.REJECTED; }
Example #27
Source File: ExtendedSelectAction.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public State mouseReleased(Widget widget, WidgetMouseEvent event) { return innerAction.mouseReleased(widget, event); }
Example #28
Source File: ExtendedSelectAction.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
@Override public State keyTyped(Widget widget, WidgetKeyEvent event) { return innerAction.keyTyped(widget, event); }
Example #29
Source File: ExtendedSelectAction.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public State keyTyped(Widget widget, WidgetKeyEvent event) { return innerAction.keyTyped(widget, event); }
Example #30
Source File: ExtendedSelectAction.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
@Override public State mouseReleased(Widget widget, WidgetMouseEvent event) { return innerAction.mouseReleased(widget, event); }