/** * Gets the elements that are represented by the leaf <code>key</code>. * @param key the leaf * @return the elements, can be <code>null</code> */ public D[] getDockables( Key key ){ if( !isDockable( key )) throw new IllegalArgumentException( "Not a Dockable" ); return key.asLeaf().dockables; }
/** * Gets the element that is selected in this leaf. * @param key the leaf * @return the selected element, can be <code>null</code> */ public D getSelected( Key key ){ if( !isDockable( key )) throw new IllegalArgumentException( "Not a Dockable" ); return key.asLeaf().selected; }
/** * Gets the element that is selected in this leaf. * @param key the leaf * @return the selected element, can be <code>null</code> */ public D getSelected( Key key ){ if( !isDockable( key )) throw new IllegalArgumentException( "Not a Dockable" ); return key.asLeaf().selected; }
/** * Gets the elements that are represented by the leaf <code>key</code>. * @param key the leaf * @return the elements, can be <code>null</code> */ public D[] getDockables( Key key ){ if( !isDockable( key )) throw new IllegalArgumentException( "Not a Dockable" ); return key.asLeaf().dockables; }
if( tree.isDockable( key )){ PerspectiveDockable[] dockables = tree.getDockables( key ); PerspectiveDockable dockable = null;
if( tree.isDockable( key )){ PerspectiveDockable[] dockables = tree.getDockables( key ); PerspectiveDockable dockable = null;
SplitDockTree<Dockable> tree = key.getTree(); if( tree.isDockable( key )){ Dockable[] dockables = tree.getDockables( key ); if( dockables == null || dockables.length == 0 ){