< prev index next >

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

Print this page




1057         }
1058     }
1059 
1060     private void checkZoom() {
1061         if (peer != null) {
1062             int state = peer.getState();
1063             if (state != Frame.MAXIMIZED_BOTH && isMaximized()) {
1064                 deliverZoom(true);
1065             } else if (state == Frame.MAXIMIZED_BOTH && !isMaximized()) {
1066                 deliverZoom(false);
1067             }
1068         }
1069     }
1070 
1071     private void deliverNCMouseDown() {
1072         if (peer != null) {
1073             peer.notifyNCMouseDown();
1074         }
1075     }
1076 







1077     /*
1078      * Our focus model is synthetic and only non-simple window
1079      * may become natively focusable window.
1080      */
1081     private boolean isNativelyFocusableWindow() {
1082         if (peer == null) {
1083             return false;
1084         }
1085 
1086         return !peer.isSimpleWindow() && target.getFocusableWindowState();
1087     }
1088 
1089     private boolean isBlocked() {
1090         LWWindowPeer blocker = (peer != null) ? peer.getBlocker() : null;
1091         return (blocker != null);
1092     }
1093 
1094     /*
1095      * An utility method for the support of the auto request focus.
1096      * Updates the focusable state of the window under certain




1057         }
1058     }
1059 
1060     private void checkZoom() {
1061         if (peer != null) {
1062             int state = peer.getState();
1063             if (state != Frame.MAXIMIZED_BOTH && isMaximized()) {
1064                 deliverZoom(true);
1065             } else if (state == Frame.MAXIMIZED_BOTH && !isMaximized()) {
1066                 deliverZoom(false);
1067             }
1068         }
1069     }
1070 
1071     private void deliverNCMouseDown() {
1072         if (peer != null) {
1073             peer.notifyNCMouseDown();
1074         }
1075     }
1076 
1077     /* Do toggle full screen upon double click
1078      * on non-client area(i.e., title bar)
1079      */
1080     private void deliverNCDblClick() {
1081         execute(this::_toggleFullScreenMode);
1082     }
1083 
1084     /*
1085      * Our focus model is synthetic and only non-simple window
1086      * may become natively focusable window.
1087      */
1088     private boolean isNativelyFocusableWindow() {
1089         if (peer == null) {
1090             return false;
1091         }
1092 
1093         return !peer.isSimpleWindow() && target.getFocusableWindowState();
1094     }
1095 
1096     private boolean isBlocked() {
1097         LWWindowPeer blocker = (peer != null) ? peer.getBlocker() : null;
1098         return (blocker != null);
1099     }
1100 
1101     /*
1102      * An utility method for the support of the auto request focus.
1103      * Updates the focusable state of the window under certain


< prev index next >