Package org.noos.xing.mydoggy.plaf

Examples of org.noos.xing.mydoggy.plaf.PropertyChangeEventSource


        initToolWindowContainers();

        // init listeners

        // Init tool window properties listeners
        PropertyChangeEventSource toolWindowSource = getToolWindow();
        toolWindowSource.addPlafPropertyChangeListener("active", new ActivePropertyChangeListener());

        // Register focus listener ....
        focusListener = new FocusOwnerPropertyChangeListener(
                getManager().getResourceManager().createInstance(ParentOfQuestion.class,
                                                                 new DefaultMutableContext(ToolWindow.class, toolWindow,
View Full Code Here


    protected void initListeners() {
        // Init tool window properties listeners
        propertyChangeListener = new PropertyListener();

        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.addPlafPropertyChangeListener(propertyChangeListener, "anchor", "type", "active", "maximized");

        // Init sliding type descriptor properties listeners
        PropertyChangeEventSource slidingDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(SlidingTypeDescriptor.class);
        slidingDescriptorSource.addPlafPropertyChangeListener("type", propertyChangeListener);

        descriptor.getManager().addInternalPropertyChangeListener("temporarilyVisible", propertyChangeListener);
        descriptor.getManager().addInternalPropertyChangeListener("managerWindowAncestor", propertyChangeListener);

        // Mouse Gesture
View Full Code Here

        if (sheet != null) {
            sheet.removeMouseMotionListener(slidingMouseInputHandler);
            sheet.removeMouseListener(slidingMouseInputHandler);
        }

        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.removePlafPropertyChangeListener(propertyChangeListener, "anchor", "type", "active", "maximized");

        // Init sliding type descriptor properties listeners
        PropertyChangeEventSource slidingDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(SlidingTypeDescriptor.class);
        slidingDescriptorSource.removePlafPropertyChangeListener("type", propertyChangeListener);

        descriptor.getManager().removeInternalPropertyChangeListener("temporarilyVisible", propertyChangeListener);
        descriptor.getManager().removeInternalPropertyChangeListener("managerWindowAncestor", propertyChangeListener);

        // Window Gesture
View Full Code Here

    protected void initListeners() {
        // Init tool window properties listeners
        propertyChangeListener = new PropertyListener();

        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.addPlafPropertyChangeListener(propertyChangeListener, "type", "maximized");

        // Init floating type descriptor properties listeners
        PropertyChangeEventSource floatingTypeDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(FloatingTypeDescriptor.class);
        floatingTypeDescriptorSource.addPlafPropertyChangeListener(propertyChangeListener);

        // Animation listener
        floatingAnimation.addAnimationListener(animationListener = new AnimationListener() {
            public void onFinished() {
                if (assignFocusOnAnimFinished) {
View Full Code Here

        moveMouseInputHandler = new FloatingMoveMouseInputHandler(null);
        windowComponentAdapter = new WindowComponentAdapter();
    }

    protected void removeListeners() {
        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.removePlafPropertyChangeListener(propertyChangeListener, "type", "maximized");

        // Init floating type descriptor properties listeners
        PropertyChangeEventSource floatingTypeDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(FloatingTypeDescriptor.class);
        floatingTypeDescriptorSource.removePlafPropertyChangeListener(propertyChangeListener);

        // Animation listener
        floatingAnimation.removeAnimationListener(animationListener);

        // Init window listeners
View Full Code Here

    }


    protected void initListeners() {
        // Init tool window properties listeners
        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.addPlafPropertyChangeListener("type", typeListener = new TypePropertyChangeListener());
        toolWindowSource.addPlafPropertyChangeListener("maximizedBefore", maximizedListener = new MaximizedBeforePropertyChangeListener());

        toolWindow.addToolWindowListener(new DockedToolWindowListener());

        // Window Gesture
        descriptor.getManager().addComponentListener(new ComponentResizer());
View Full Code Here

        // Window Gesture
        descriptor.getManager().addComponentListener(new ComponentResizer());
    }

    protected void removeListeners() {
        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.removePlafPropertyChangeListener("type", typeListener);
        toolWindowSource.removePlafPropertyChangeListener("maximizedBefore", maximizedListener);
    }
View Full Code Here

    protected void initComponents() {
    }

    protected void initListeners() {
        // Init property listeners
        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.addPlafPropertyChangeListener(propertyChangeListener = new PropertyListener(), "type", "maximized");

        // Init floating live type desrciptor properties listeners
        PropertyChangeEventSource floatingLiveTypeDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(FloatingLiveTypeDescriptor.class);
        floatingLiveTypeDescriptorSource.addPlafPropertyChangeListener(propertyChangeListener, "location", "size", "enabled", "visible");

        moveMouseInputHandler = new FloatingMoveMouseInputHandler(null);
        livePanelComponentListener = new LivePanelComponentListener();
    }
View Full Code Here

        livePanelComponentListener = new LivePanelComponentListener();
    }

    protected void removeListeners() {
        // Init property listeners
        PropertyChangeEventSource toolWindowSource = descriptor.getToolWindow();
        toolWindowSource.removePlafPropertyChangeListener(propertyChangeListener, "type", "maximized");

        // Init floating live type desrciptor properties listeners
        PropertyChangeEventSource floatingLiveTypeDescriptorSource = (PropertyChangeEventSource) descriptor.getToolWindow().getTypeDescriptor(FloatingLiveTypeDescriptor.class);
        floatingLiveTypeDescriptorSource.removePlafPropertyChangeListener(propertyChangeListener, "location", "size", "enabled", "visible");

        toolWindowTabPanel.removeEventDispatcherlListener(moveMouseInputHandler);

        toolWindowTitleBar.removeMouseMotionListener(moveMouseInputHandler);
        toolWindowTitleBar.removeMouseListener(moveMouseInputHandler);
View Full Code Here

TOP

Related Classes of org.noos.xing.mydoggy.plaf.PropertyChangeEventSource

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.