src/solaris/classes/sun/awt/X11/XEmbeddedFramePeer.java

Print this page




 146         // if we use super.handleConfigureNotifyEvent() we would get wrong
 147         // size and position because embedded frame really is NOT a decorated one
 148         checkIfOnNewScreen(toGlobal(new Rectangle(xe.get_x(),
 149                 xe.get_y(),
 150                 xe.get_width(),
 151                 xe.get_height())));
 152 
 153         Rectangle oldBounds = getBounds();
 154 
 155         synchronized (getStateLock()) {
 156             x = xe.get_x();
 157             y = xe.get_y();
 158             width = xe.get_width();
 159             height = xe.get_height();
 160 
 161             dimensions.setClientSize(width, height);
 162             dimensions.setLocation(x, y);
 163         }
 164 
 165         if (!getLocation().equals(oldBounds.getLocation())) {
 166             handleMoved(dimensions);
 167         }
 168         reconfigureContentWindow(dimensions);
 169     }
 170 
 171     protected void traverseOutForward() {
 172         if (embedder != null && embedder.isActive()) {
 173             if (embedder.isApplicationActive()) {
 174                 xembedLog.fine("Traversing out Forward");
 175                 embedder.traverseOutForward();
 176             }
 177         }
 178     }
 179 
 180     protected void traverseOutBackward() {
 181         if (embedder != null && embedder.isActive()) {
 182             if (embedder.isApplicationActive()) {
 183                 xembedLog.fine("Traversing out Backward");
 184                 embedder.traverseOutBackward();
 185             }
 186         }




 146         // if we use super.handleConfigureNotifyEvent() we would get wrong
 147         // size and position because embedded frame really is NOT a decorated one
 148         checkIfOnNewScreen(toGlobal(new Rectangle(xe.get_x(),
 149                 xe.get_y(),
 150                 xe.get_width(),
 151                 xe.get_height())));
 152 
 153         Rectangle oldBounds = getBounds();
 154 
 155         synchronized (getStateLock()) {
 156             x = xe.get_x();
 157             y = xe.get_y();
 158             width = xe.get_width();
 159             height = xe.get_height();
 160 
 161             dimensions.setClientSize(width, height);
 162             dimensions.setLocation(x, y);
 163         }
 164 
 165         if (!getLocation().equals(oldBounds.getLocation())) {
 166             handleMoved(dimensions.getLocation());
 167         }
 168         reconfigureContentWindow(dimensions);
 169     }
 170 
 171     protected void traverseOutForward() {
 172         if (embedder != null && embedder.isActive()) {
 173             if (embedder.isApplicationActive()) {
 174                 xembedLog.fine("Traversing out Forward");
 175                 embedder.traverseOutForward();
 176             }
 177         }
 178     }
 179 
 180     protected void traverseOutBackward() {
 181         if (embedder != null && embedder.isActive()) {
 182             if (embedder.isApplicationActive()) {
 183                 xembedLog.fine("Traversing out Backward");
 184                 embedder.traverseOutBackward();
 185             }
 186         }