Package org.flexdock.dockbar.activation

Source Code of org.flexdock.dockbar.activation.ActiveDockableHandler

/*
* Created on Aug 14, 2005
*
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
*/
package org.flexdock.dockbar.activation;

import org.flexdock.dockbar.event.DockbarEvent;
import org.flexdock.dockbar.event.DockbarListener;
import org.flexdock.docking.Dockable;
import org.flexdock.docking.activation.ActiveDockableTracker;
import org.flexdock.util.DockingUtility;

/**
* @author Christopher Butler
*
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
*/
public class ActiveDockableHandler extends DockbarListener.Stub {

    public void dockableLocked(DockbarEvent evt) {
        Dockable d = (Dockable)evt.getSource();
        if(d!=null)
            ActiveDockableTracker.requestDockableActivation(d.getComponent());
    }

    public void minimizeStarted(DockbarEvent evt) {
        Dockable d = (Dockable)evt.getSource();
        // block minimization on floating views
        if(d!=null && DockingUtility.isFloating(d))
            evt.consume();
    }
}
TOP

Related Classes of org.flexdock.dockbar.activation.ActiveDockableHandler

TOP
Copyright © 2018 www.massapi.com. 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.