/** * Creates and returns a tree which contains the {@link CommonDockable}s * of this {@link CGrid}. The branches of the tree are put in a way, that * the boundaries of the {@link CommonDockable}s are respected as good * as possible. * @return the contents of this grid as tree */ public DockableSplitDockTree toTree(){ return grid.toTree(); }
/** * Creates and returns a tree which contains the {@link CommonDockable}s * of this {@link CGrid}. The branches of the tree are put in a way, that * the boundaries of the {@link CommonDockable}s are respected as good * as possible. * @return the contents of this grid as tree */ public DockableSplitDockTree toTree(){ return grid.toTree(); }
/** * Copies the layout of <code>grid</code>. Any changes to <code>grid</code> * afterwards will not affect this station, nor will changes on this station * affect <code>grid</code>. * @param grid the layout to drop, not <code>null</code> * @see #dropTree(SplitDockTree) */ public void dropGrid( SplitDockGrid grid ){ dropTree( grid.toTree() ); }
/** * Copies the layout of <code>grid</code>. Any changes to <code>grid</code> * afterwards will not affect this station, nor will changes on this station * affect <code>grid</code>. * @param grid the layout to drop, not <code>null</code> * @see #dropTree(SplitDockTree) */ public void dropGrid( SplitDockGrid grid ){ dropTree( grid.toTree() ); }