src/macosx/classes/sun/lwawt/macosx/CPlatformWindow.java

Print this page




 978     }
 979 
 980     private void deliverNCMouseDown() {
 981         if (peer != null) {
 982             peer.notifyNCMouseDown();
 983         }
 984     }
 985 
 986     /*
 987      * Our focus model is synthetic and only non-simple window
 988      * may become natively focusable window.
 989      */
 990     private boolean isNativelyFocusableWindow() {
 991         if (peer == null) {
 992             return false;
 993         }
 994 
 995         return !peer.isSimpleWindow() && target.getFocusableWindowState();
 996     }
 997 





 998     /*
 999      * An utility method for the support of the auto request focus.
1000      * Updates the focusable state of the window under certain
1001      * circumstances.
1002      */
1003     private void updateFocusabilityForAutoRequestFocus(boolean isFocusable) {
1004         if (target.isAutoRequestFocus() || !isNativelyFocusableWindow()) return;
1005         setStyleBits(SHOULD_BECOME_KEY | SHOULD_BECOME_MAIN, isFocusable); // set both bits at once
1006     }
1007 
1008     private boolean checkBlockingAndOrder() {
1009         LWWindowPeer blocker = (peer == null)? null : peer.getBlocker();
1010         if (blocker == null) {
1011             return false;
1012         }
1013 
1014         if (blocker instanceof CPrinterDialogPeer) {
1015             return true;
1016         }
1017 




 978     }
 979 
 980     private void deliverNCMouseDown() {
 981         if (peer != null) {
 982             peer.notifyNCMouseDown();
 983         }
 984     }
 985 
 986     /*
 987      * Our focus model is synthetic and only non-simple window
 988      * may become natively focusable window.
 989      */
 990     private boolean isNativelyFocusableWindow() {
 991         if (peer == null) {
 992             return false;
 993         }
 994 
 995         return !peer.isSimpleWindow() && target.getFocusableWindowState();
 996     }
 997 
 998     private boolean isBlocked() {
 999         LWWindowPeer blocker = (peer != null) ? peer.getBlocker() : null;
1000         return (blocker != null);
1001     }
1002 
1003     /*
1004      * An utility method for the support of the auto request focus.
1005      * Updates the focusable state of the window under certain
1006      * circumstances.
1007      */
1008     private void updateFocusabilityForAutoRequestFocus(boolean isFocusable) {
1009         if (target.isAutoRequestFocus() || !isNativelyFocusableWindow()) return;
1010         setStyleBits(SHOULD_BECOME_KEY | SHOULD_BECOME_MAIN, isFocusable); // set both bits at once
1011     }
1012 
1013     private boolean checkBlockingAndOrder() {
1014         LWWindowPeer blocker = (peer == null)? null : peer.getBlocker();
1015         if (blocker == null) {
1016             return false;
1017         }
1018 
1019         if (blocker instanceof CPrinterDialogPeer) {
1020             return true;
1021         }
1022