Package org.flexdock.docking.defaults

Examples of org.flexdock.docking.defaults.DefaultDockingPort$MaximizationInstallInfo


        initLayout();
    }

    private DockingPort getRootDockingPort() {
        if(rootDockingPort==null) {
            DefaultDockingPort port = new DefaultDockingPort();
            port.setBorderManager(new StandardBorderManager(new ShadowBorder()));
            rootDockingPort = port;
        }
        return rootDockingPort;
    }
View Full Code Here


        super("Adapter Demo");
        setContentPane(createContentPane());
    }

    private Container createContentPane() {
        port = new DefaultDockingPort();
        MediaPanel pane1 = new MediaPanel("video.1", "Video 1", "fish.mov");
        MediaPanel pane2 = new MediaPanel("video.2", "Video 2", "lung02a.mov");
        MediaPanel pane3 = new MediaPanel("video.3", "Video 3", "fish.mov");
        MediaPanel pane4 = new MediaPanel("video.4", "Video 4", "lung02a.mov");
        MediaPanel pane5 = new MediaPanel("video.5", "Video 5", "fish.mov");
View Full Code Here

        return p;
    }

    private DefaultDockingPort buildDockingPort(String desc) {
        // create the DockingPort
        DefaultDockingPort port = createDockingPort();

        // create the Dockable panel
        DockablePanel panel = new DockablePanel(desc);

        // dock the panel and return the DockingPort
        port.dock(panel.getDockable(), CENTER_REGION);
        return port;
    }
View Full Code Here

        port.dock(panel.getDockable(), CENTER_REGION);
        return port;
    }

    private DefaultDockingPort createDockingPort() {
        DefaultDockingPort port = new DefaultDockingPort();
        port.setPreferredSize(new Dimension(100, 100));
        port.setBorderManager(new DemoBorderManager());
        return port;
    }
View Full Code Here

        // and having to know to call it at this level.  If the default docking port
        // is interested in whether a drag is currently in progress, it should
        // register some type of listener and handle its personal business internally
        // with its own code.
        if(srcPort instanceof DefaultDockingPort) {
            DefaultDockingPort port = (DefaultDockingPort)srcPort;
            port.setDragInProgress(operation!=null);
        }
    }
View Full Code Here

    public static DockingPort[] getChildPorts(DockingPort port) {
        if(!(port instanceof DefaultDockingPort))
            return new DockingPort[0];

        DefaultDockingPort parent = (DefaultDockingPort)port;
        Component docked = parent.getDockedComponent();
        if(!(docked instanceof JSplitPane))
            return new DockingPort[0];

        JSplitPane split = (JSplitPane)docked;
        DockingPort left = null;
View Full Code Here

    next = tab;
      } else if (direction <= 0 && index > 0) {
    tab.setSelectedIndex(index - 1);
    next = tab;
      } else {
    DefaultDockingPort port = (DefaultDockingPort) SwingUtilities.getAncestorOfClass(DefaultDockingPort.class, tab);
    next = getNext(port, direction);
      }
  } else {
      DockingSplitPane pane = (DockingSplitPane) SwingUtilities.getAncestorOfClass(DockingSplitPane.class, comp);
      if (pane == null) {
    return getFirstComponent(comp, direction);
      }
     
      Component left = pane.getLeftComponent();
      Component right = pane.getRightComponent();
     
      if (SwingUtilities.isDescendingFrom(comp, left)) {
    if (direction > 0) {
        next = getFirstComponent(right, direction);
    } else {
        DefaultDockingPort port = (DefaultDockingPort) SwingUtilities.getAncestorOfClass(DefaultDockingPort.class, pane);
        next = getNext(port, direction);
    }
      } else {
    if (direction > 0) {
        DefaultDockingPort port = (DefaultDockingPort) SwingUtilities.getAncestorOfClass(DefaultDockingPort.class, pane);
        next = getNext(port, direction);
    } else {
        next = getFirstComponent(left, direction);
    }
      }
View Full Code Here

TOP

Related Classes of org.flexdock.docking.defaults.DefaultDockingPort$MaximizationInstallInfo

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.