diff options
author | smallsql <smallsql> | 2011-07-09 19:11:24 +0400 |
---|---|---|
committer | smallsql <smallsql> | 2011-07-09 19:11:24 +0400 |
commit | f7f965819b1d3a8f322fd72b09cc1499e9729c3c (patch) | |
tree | f982d7826b057f09d2624ec197367590ed19f883 /openjdk/sun | |
parent | 509549adf9c7e5777f4f1be9adf0a9f9d3ced629 (diff) |
Add methods set/isSystemGenerated in SunToolkit for Java 7
Diffstat (limited to 'openjdk/sun')
-rw-r--r-- | openjdk/sun/awt/SunToolkit.java | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/openjdk/sun/awt/SunToolkit.java b/openjdk/sun/awt/SunToolkit.java index d4169aa1..9d2f4ef0 100644 --- a/openjdk/sun/awt/SunToolkit.java +++ b/openjdk/sun/awt/SunToolkit.java @@ -2112,6 +2112,25 @@ public abstract class SunToolkit extends Toolkit } return isInstanceOf(cls.getSuperclass(), type); } + + /////////////////////////////////////////////////////////////////////////// + // + // The following methods help set and identify whether a particular + // AWTEvent object was produced by the system or by user code. As of this + // writing the only consumer is the Java Plug-In, although this information + // could be useful to more clients and probably should be formalized in + // the public API. + // + /////////////////////////////////////////////////////////////////////////// + + public static void setSystemGenerated(AWTEvent e) { + AWTAccessor.getAWTEventAccessor().setSystemGenerated(e); + } + + public static boolean isSystemGenerated(AWTEvent e) { + return AWTAccessor.getAWTEventAccessor().isSystemGenerated(e); + } + } // class SunToolkit |