Examples of Dockable

@author Lilian Chamontin, vlsolutions. @version 1.0
  • org.flexdock.docking.Dockable
    This interface is designed to specify the API's required by {@code DockingManager} and {@code DockingPort} for dealing with dockablecomponents in a drag-n-drop fashion. A {@code Dockable} is the childcomponent that is docked into a {@code DockingPort}. @author Christopher Butler
  • org.noos.xing.mydoggy.Dockable
    This interface represents the super interface for of all dockable object, i.e. ToolWindow, ToolWindowTab and Content. @author Angelo De Caro (angelo.decaro@gmail.com) @see ToolWindow @see ToolWindowTab @see Content @since 1.4.0

  • Examples of org.noos.xing.mydoggy.Dockable

                    if (isWrapper(component))
                        removeFromWrapper(component, dockable);
                    multiSplitPane.remove(component);

                    // retrieve the component related to sole entry in entries
                    Dockable leftDockable = entries.keySet().iterator().next();
                    DockableLeaf leftLeaf = getLeaf(leftDockable);

                    Component masterLeftLeafCmp = multiSplitPane.getMultiSplitLayout().getChildMap().get(leftLeaf.getName());
                    Component leftLeafCmp = getComponentFromWrapper(masterLeftLeafCmp);
                    leftLeaf.setName("1");
    View Full Code Here

    Examples of org.noos.xing.mydoggy.Dockable

                    if (leaf.getDockables().size() == 1)
                        break;

                    Component component = currentChildMap.get(leaf.getName());

                    Dockable dockable = toolWindowManager.getDockable(dockId);
                    setConstraints(dockable,
                                   getComponentFromWrapper(component, dockable),
                                   null,
                                   -1,
                                   AggregationPosition.DEFAULT
                    );
                }
            } else {
                Stack<MultiSplitLayout.Split> stack = new Stack<MultiSplitLayout.Split>();
                stack.push((MultiSplitLayout.Split) multiSplitPaneModelRoot);
                while (!stack.isEmpty()) {
                    MultiSplitLayout.Split split = stack.pop();

                    for (MultiSplitLayout.Node child : split.getChildren()) {
                        if (child instanceof DockableLeaf) {
                            DockableLeaf leaf = (DockableLeaf) child;

                            String[] dockIds = leaf.getDockables().toArray(new String[leaf.getDockables().size()]);
                            for (String dockId : dockIds) {

                                if (leaf.getDockables().size() == 1)
                                    break;

                                Component component = currentChildMap.get(leaf.getName());

                                Dockable dockable = toolWindowManager.getDockable(dockId);
                                setConstraints(dockable,
                                               getComponentFromWrapper(component, dockable),
                                               null,
                                               -1,
                                               AggregationPosition.DEFAULT
                                );
                            }
                        } else if (child instanceof MultiSplitLayout.Split) {
                            stack.push((MultiSplitLayout.Split) child);
                        }
                    }
                }
            }

            if (root instanceof MultiSplitLayout.Split) {
                // Step Two: apply model 1...Aggregate
                Stack<MultiSplitLayout.Split> stack = new Stack<MultiSplitLayout.Split>();
                stack.push((MultiSplitLayout.Split) root);
                while (!stack.isEmpty()) {
                    MultiSplitLayout.Split split = stack.pop();

                    for (MultiSplitLayout.Node child : split.getChildren()) {
                        if (child instanceof DockableLeaf) {
                            DockableLeaf leaf = (DockableLeaf) child;

                            List<String> dockIds = leaf.getDockables();
                            Dockable masterDockable = toolWindowManager.getDockable(leaf.getDockable());
                            for (int i = 1; i < dockIds.size(); i++) {
                                String dockId = dockIds.get(i);

                                Dockable dockable = toolWindowManager.getDockable(dockId);
                                setConstraints(dockable,
                                               getComponentFromWrapper(currentChildMap.get(getLeaf(dockable).getName()), dockable),
                                               masterDockable,
                                               -1,
                                               AggregationPosition.DEFAULT
                                );
                            }
                        } else if (child instanceof MultiSplitLayout.Split) {
                            stack.push((MultiSplitLayout.Split) child);
                        }
                    }
                }
               
                // Step Two: apply model 2...Isomorphing
                Map<String, Component> newChildMap = new HashMap<String, Component>();
                stack = new Stack<MultiSplitLayout.Split>();
                stack.push((MultiSplitLayout.Split) root);
                while (!stack.isEmpty()) {
                    MultiSplitLayout.Split split = stack.pop();

                    for (MultiSplitLayout.Node child : split.getChildren()) {
                        if (child instanceof DockableLeaf) {
                            DockableLeaf leaf = (DockableLeaf) child;

                            DockableLeaf currentLeaf = getLeaf(multiSplitPaneModelRoot, leaf.getDockable());

                            newChildMap.put(
                                    leaf.getName(),
                                    currentChildMap.get(currentLeaf.getName())
                            );
                        } else if (child instanceof MultiSplitLayout.Split) {
                            stack.push((MultiSplitLayout.Split) child);
                        }
                    }
                }

                multiSplitPane.getMultiSplitLayout().setChildMap(newChildMap);

            } else {
                DockableLeaf leaf = (DockableLeaf) root;

                List<String> dockIds = leaf.getDockables();
                Dockable masterDockable = toolWindowManager.getDockable(leaf.getDockable());
                for (int i = 1; i < dockIds.size(); i++) {
                    String dockId = dockIds.get(i);

                    Dockable dockable = toolWindowManager.getDockable(dockId);
                    setConstraints(dockable,
                                   getComponentFromWrapper(currentChildMap.get(getLeaf(dockable).getName()), dockable),
                                   masterDockable,
                                   -1,
                                   AggregationPosition.DEFAULT
    View Full Code Here
    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.