equal
deleted
inserted
replaced
41 |
41 |
42 import static sun.lwawt.LWWindowPeer.PeerType; |
42 import static sun.lwawt.LWWindowPeer.PeerType; |
43 |
43 |
44 public abstract class LWToolkit extends SunToolkit implements Runnable { |
44 public abstract class LWToolkit extends SunToolkit implements Runnable { |
45 |
45 |
46 private final static int STATE_NONE = 0; |
46 private static final int STATE_NONE = 0; |
47 private final static int STATE_INIT = 1; |
47 private static final int STATE_INIT = 1; |
48 private final static int STATE_MESSAGELOOP = 2; |
48 private static final int STATE_MESSAGELOOP = 2; |
49 private final static int STATE_SHUTDOWN = 3; |
49 private static final int STATE_SHUTDOWN = 3; |
50 private final static int STATE_CLEANUP = 4; |
50 private static final int STATE_CLEANUP = 4; |
51 private final static int STATE_DONE = 5; |
51 private static final int STATE_DONE = 5; |
52 |
52 |
53 private int runState = STATE_NONE; |
53 private int runState = STATE_NONE; |
54 |
54 |
55 private Clipboard clipboard; |
55 private Clipboard clipboard; |
56 private MouseInfoPeer mouseInfoPeer; |
56 private MouseInfoPeer mouseInfoPeer; |
452 // ---- UTILITY METHODS ---- // |
452 // ---- UTILITY METHODS ---- // |
453 |
453 |
454 /* |
454 /* |
455 * Expose non-public targetToPeer() method. |
455 * Expose non-public targetToPeer() method. |
456 */ |
456 */ |
457 public final static Object targetToPeer(Object target) { |
457 public static final Object targetToPeer(Object target) { |
458 return SunToolkit.targetToPeer(target); |
458 return SunToolkit.targetToPeer(target); |
459 } |
459 } |
460 |
460 |
461 /* |
461 /* |
462 * Expose non-public targetDisposedPeer() method. |
462 * Expose non-public targetDisposedPeer() method. |
463 */ |
463 */ |
464 public final static void targetDisposedPeer(Object target, Object peer) { |
464 public static final void targetDisposedPeer(Object target, Object peer) { |
465 SunToolkit.targetDisposedPeer(target, peer); |
465 SunToolkit.targetDisposedPeer(target, peer); |
466 } |
466 } |
467 |
467 |
468 /* |
468 /* |
469 * Returns the current cursor manager. |
469 * Returns the current cursor manager. |