39 |
package gnu.java.awt.peer.gtk; |
package gnu.java.awt.peer.gtk; |
40 |
|
|
41 |
import java.awt.EventQueue; |
import java.awt.EventQueue; |
42 |
|
import java.awt.Toolkit; |
43 |
import java.awt.event.ActionEvent; |
import java.awt.event.ActionEvent; |
44 |
|
|
45 |
public class GtkGenericPeer |
public class GtkGenericPeer |
58 |
// Dispose of our native state. |
// Dispose of our native state. |
59 |
public native void dispose (); |
public native void dispose (); |
60 |
|
|
61 |
|
static EventQueue q () |
62 |
|
{ |
63 |
|
return Toolkit.getDefaultToolkit ().getSystemEventQueue (); |
64 |
|
} |
65 |
|
|
66 |
protected GtkGenericPeer (Object awtWidget) |
protected GtkGenericPeer (Object awtWidget) |
67 |
{ |
{ |
68 |
this.awtWidget = awtWidget; |
this.awtWidget = awtWidget; |
76 |
|
|
77 |
protected void postActionEvent (String command, int mods) |
protected void postActionEvent (String command, int mods) |
78 |
{ |
{ |
79 |
q.postEvent (new ActionEvent (awtWidget, ActionEvent.ACTION_PERFORMED, |
q().postEvent (new ActionEvent (awtWidget, ActionEvent.ACTION_PERFORMED, |
80 |
command, mods)); |
command, mods)); |
81 |
} |
} |
82 |
|
|