MCPcopy Index your code
hub / github.com/OpenSourcePhysics/osp / dispatchEvent

Method dispatchEvent

src/test/Test_Event.java:91–106  ·  view source on GitHub ↗
(AWTEvent e)

Source from the content-addressed store, hash-verified

89 public static void main(String[] args) {
90 KeyboardFocusManager.setCurrentKeyboardFocusManager(new DefaultKeyboardFocusManager() {
91 @Override
92 public boolean dispatchEvent(AWTEvent e) {
93 if (allowEventInfo && e.getID() != MouseEvent.MOUSE_MOVED) {
94 if (e.getID() == MouseEvent.MOUSE_PRESSED) { //
95 if(logging)System.out.println("FocusMan mousepressed event");
96 }
97 if(logging)System.out.println("FocusMan dispatching activeElement=" + (/** @j2sNative document.activeElement.id || */getFocusOwner()));
98 if(logging)System.out.println("FocusMan dispatching event Source " + e.getSource());
99 if (e.toString().indexOf("WINDOW_OPENED")>=0) {
100 if(logging)System.out.println("???");
101 }
102// if (e.toString().indexOf("GAINED") >= 0)
103 if(logging)System.out.println("FocusMan dispatching event " + e);
104 }
105 return super.dispatchEvent(e);
106 }
107 });
108 new Test_Event();
109 }

Callers

nothing calls this directly

Calls 4

getSourceMethod · 0.80
getIDMethod · 0.65
printlnMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected