@Override protected SplitDockTree<Dockable> createTree(){ return new DockableSplitDockTree(); }
@Override protected SplitDockTree<Dockable> createTree(){ return new DockableSplitDockTree(); }
/** * Converts the current grid into a tree. * @return the tree which represents this grid * @see SplitDockStation#dropTree(SplitDockTree) */ public DockableSplitDockTree toTree(){ DockableSplitDockTree tree = new DockableSplitDockTree(); fillTree( tree ); return tree; } }
/** * Converts the current grid into a tree. * @return the tree which represents this grid * @see SplitDockStation#dropTree(SplitDockTree) */ public DockableSplitDockTree toTree(){ DockableSplitDockTree tree = new DockableSplitDockTree(); fillTree( tree ); return tree; } }
/** * Gets the contents of this station as a {@link SplitDockTree}. * @return the tree */ public DockableSplitDockTree createTree(){ DockableSplitDockTree tree = new DockableSplitDockTree(); createTree(new SplitDockTreeFactory(tree)); return tree; }
/** * Gets the contents of this station as a {@link SplitDockTree}. * @return the tree */ public DockableSplitDockTree createTree(){ DockableSplitDockTree tree = new DockableSplitDockTree(); createTree(new SplitDockTreeFactory(tree)); return tree; }
public void setLayout( SplitDockStation station, SplitDockStationLayout layout, Map<Integer, Dockable> children, PlaceholderStrategy placeholders ) { DockableSplitDockTree tree = new DockableSplitDockTree(); DockableSplitDockTree.Key root = null; if( layout.getRoot() != null ){ root = handleEntry( layout.getRoot(), tree, children ); } if( root != null ){ tree.root( root ); } station.dropTree( tree, false ); PlaceholderStrategy oldStrategy = station.getPlaceholderStrategy().getStrategy(); if( placeholders != oldStrategy && placeholders != null ){ try{ station.setPlaceholderStrategy( placeholders ); } finally{ station.setPlaceholderStrategy( oldStrategy ); } } Dockable fullscreen = children.get( layout.getFullscreen() ); station.setFullScreen( fullscreen ); }