Package java.awt.event

Examples of java.awt.event.ComponentEvent


    public void handleMoved(WindowDimensions dims) {
        Point loc = dims.getLocation();
        ComponentAccessor.setX((Component)target, loc.x);
        ComponentAccessor.setY((Component)target, loc.y);
        postEvent(new ComponentEvent(target, ComponentEvent.COMPONENT_MOVED));
    }
View Full Code Here


/* 1068 */                 this.qtcHelper.doClientSetBounds();
/*      */               }
/* 1070 */               if (this.moved) {
/* 1071 */                 this.moved = false;
/* 1072 */                 if (this.clientListener != null)
/* 1073 */                   this.clientListener.componentMoved(new ComponentEvent(this, 100));
/*      */               }
/* 1075 */               if (this.deferResize) {
/* 1076 */                 this.deferResize = false;
/* 1077 */                 if (this.clientListener != null) {
/* 1078 */                   this.clientListener.componentResized(new ComponentEvent(this, 101));
/*      */                 }
/* 1080 */                 if (this.doRedrawForQTPlayer) {
/* 1081 */                   this.qtcHelper.mClient.redraw(null);
/* 1082 */                   this.doRedrawForQTPlayer = false;
/*      */                 }
View Full Code Here

/*     */       {
/* 132 */         localQTDrawable.setGWorld(localQDGraphics1);
/* 133 */         if (paramBoolean) {
/* 134 */           QTUtils.checkFreeMemory();
/* 135 */           if (this.canvas.clientListener != null)
/* 136 */             this.canvas.clientListener.componentShown(new ComponentEvent(this.canvas, 102));
/*     */         }
/* 138 */         else if (this.canvas.clientListener != null) {
/* 139 */           this.canvas.clientListener.componentHidden(new ComponentEvent(this.canvas, 103));
/*     */         }
/*     */       }
/*     */     }
/*     */   }
View Full Code Here

/*     */     }
/*     */
/* 484 */     if (paramBoolean) {
/* 485 */       QTUtils.checkFreeMemory();
/* 486 */       if (this.canvas.clientListener != null)
/* 487 */         this.canvas.clientListener.componentShown(new ComponentEvent(this.canvas, 102));
/*     */     }
/* 489 */     else if (this.canvas.clientListener != null) {
/* 490 */       this.canvas.clientListener.componentHidden(new ComponentEvent(this.canvas, 103));
/*     */     }
/*     */   }
View Full Code Here

            if (!fileDialog.isDisplayable()) {
                // make displayable together with owner
                fileDialog.addNotify();
            }
            ci.setVisibleFlag(fileDialog, true);
            postEvent(new ComponentEvent(fileDialog,
                                         ComponentEvent.COMPONENT_SHOWN));
            initOFN();
            boolean ok = false;
            Thread thread = Thread.currentThread();
            thread2fd.put(thread, fileDialog);

            switch (mode) {
            case FileDialog.LOAD:
                ok = (win32.GetOpenFileNameW(ofn) != 0);
                break;
            case FileDialog.SAVE:
                ok = (win32.GetSaveFileNameW(ofn) != 0);
                break;
            default:
                return;

            }
            setValues(ok);
            thread2fd.remove(thread);
            fd2win.remove(fileDialog);
            ci.setVisibleFlag(fileDialog, false);
            postEvent(new ComponentEvent(fileDialog,
                    ComponentEvent.COMPONENT_HIDDEN));
        }
    }
View Full Code Here

            }
            prepare4HierarchyChange();
            visible = false;
            moveFocusOnHide();
            behaviour.setVisible(false);
            postEvent(new ComponentEvent(this, ComponentEvent.COMPONENT_HIDDEN));
            finishHierarchyChange(this, parent, 0);
            notifyInputMethod(null);
            invalidateRealParent();
        } finally {
            toolkit.unlockAWT();
View Full Code Here

        int oldH = this.h;
        setBoundsFields(x, y, w, h, bMask);
        // Moved
        if ((oldX != this.x) || (oldY != this.y)) {
            invalidateRealParent();
            postEvent(new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED));
            spreadHierarchyBoundsEvents(this, HierarchyEvent.ANCESTOR_MOVED);
        }
        // Resized
        if ((oldW != this.w) || (oldH != this.h)) {
            invalidate();
            postEvent(new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED));
            spreadHierarchyBoundsEvents(this, HierarchyEvent.ANCESTOR_RESIZED);
        }
        if (updateBehavior) {
            behaviour.setBounds(this.x, this.y, this.w, this.h, bMask);
        }
View Full Code Here

            prepare4HierarchyChange();
            mapToDisplay(true);
            validate();
            visible = true;
            behaviour.setVisible(true);
            postEvent(new ComponentEvent(this, ComponentEvent.COMPONENT_SHOWN));
            finishHierarchyChange(this, parent, 0);
            notifyInputMethod(new Rectangle(x, y, w, h));
            invalidateRealParent();
        } finally {
            toolkit.unlockAWT();
View Full Code Here

            }
            prepare4HierarchyChange();
            visible = false;
            moveFocusOnHide();
            behaviour.setVisible(false);
            postEvent(new ComponentEvent(this, ComponentEvent.COMPONENT_HIDDEN));
            finishHierarchyChange(this, parent, 0);
            notifyInputMethod(null);
            invalidateRealParent();
        } finally {
            toolkit.unlockAWT();
View Full Code Here

        int oldH = this.h;
        setBoundsFields(x, y, w, h, bMask);
        // Moved
        if ((oldX != this.x) || (oldY != this.y)) {
            invalidateRealParent();
            postEvent(new ComponentEvent(this, ComponentEvent.COMPONENT_MOVED));
            spreadHierarchyBoundsEvents(this, HierarchyEvent.ANCESTOR_MOVED);
        }
        // Resized
        if ((oldW != this.w) || (oldH != this.h)) {
            invalidate();
            postEvent(new ComponentEvent(this, ComponentEvent.COMPONENT_RESIZED));
            spreadHierarchyBoundsEvents(this, HierarchyEvent.ANCESTOR_RESIZED);
        }
        if (updateBehavior) {
            behaviour.setBounds(this.x, this.y, this.w, this.h, bMask);
        }
View Full Code Here

TOP

Related Classes of java.awt.event.ComponentEvent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.