/** * Ensures that <code>this</code> is the parent of <code>dockable</code> * and adds <code>dockable</code> to the {@link CControl} which is associated * with this {@link CWorkingArea}. If there is no <code>CControl</code>, then * the <code>dockable</code> is added nowhere. * @param <F> the type of element to add * @param dockable the new element * @return <code>dockable</code> */ public <F extends MultipleCDockable> F add( F dockable ){ dockable.setWorkingArea( this ); CControlAccess access = control(); if( access != null ){ access.getOwner().addDockable( dockable ); } return dockable; }
/** * Ensures that <code>this</code> is the parent of <code>dockable</code> * and adds <code>dockable</code> to the {@link CControl} which is associated * with this {@link CWorkingArea}. If there is no <code>CControl</code>, then * the <code>dockable</code> is added nowhere. * @param <F> the type of element to add * @param dockable the new element * @return <code>dockable</code> */ public <F extends SingleCDockable> F add( F dockable ){ dockable.setWorkingArea( this ); CControlAccess access = control(); if( access != null ){ access.getOwner().addDockable( dockable ); } return dockable; }
/** * Ensures that <code>this</code> is the parent of <code>dockable</code> * and adds <code>dockable</code> to the {@link CControl} which is associated * with this {@link CWorkingArea}. If there is no <code>CControl</code>, then * the <code>dockable</code> is added nowhere. * @param <F> the type of element to add * @param dockable the new element * @return <code>dockable</code> */ public <F extends SingleCDockable> F add( F dockable ){ dockable.setWorkingArea( this ); CControlAccess access = control(); if( access != null ){ access.getOwner().addDockable( dockable ); } return dockable; }
/** * Ensures that <code>this</code> is the parent of <code>dockable</code> * and adds <code>dockable</code> to the {@link CControl} which is associated * with this {@link CWorkingArea}. If there is no <code>CControl</code>, then * the <code>dockable</code> is added nowhere. * @param <F> the type of element to add * @param dockable the new element * @return <code>dockable</code> */ public <F extends MultipleCDockable> F add( F dockable ){ dockable.setWorkingArea( this ); CControlAccess access = control(); if( access != null ){ access.getOwner().addDockable( dockable ); } return dockable; }