/** * Removes the child <code>dockable</code> from this station. * @param dockable the element to remove * @return <code>true</code> if <code>dockable</code> was removed, * <code>false</code> otherwise */ public boolean remove( PerspectiveDockable dockable ){ int index = indexOf( dockable ); if( index >= 0 ){ remove( index ); return true; } return false; }
/** * Removes the child <code>dockable</code> from this station. * @param dockable the element to remove * @return <code>true</code> if <code>dockable</code> was removed, * <code>false</code> otherwise */ public boolean remove( PerspectiveDockable dockable ){ int index = indexOf( dockable ); if( index >= 0 ){ remove( index ); return true; } return false; }
/** * Adds a placeholder for <code>dockable</code> and all its children to this * station. * @param dockable the element whose placeholder should be inserted * @param x the x-coordinate on the screen * @param y the y-coordinate on the screen * @param width the width of the window * @param height the height of the window */ public void addPlaceholder( PerspectiveDockable dockable, int x, int y, int width, int height ){ ScreenPerspectiveWindow child = new ScreenPerspectiveWindow( dockable ); child.setX( x ); child.setY( y ); child.setWidth( width ); child.setHeight( height ); child.setFullscreen( false ); dockables.dockables().add( child ); remove( dockable ); }
/** * Adds a placeholder for <code>dockable</code> and all its children to this * station. * @param dockable the element whose placeholder should be inserted * @param x the x-coordinate on the screen * @param y the y-coordinate on the screen * @param width the width of the window * @param height the height of the window */ public void addPlaceholder( PerspectiveDockable dockable, int x, int y, int width, int height ){ ScreenPerspectiveWindow child = new ScreenPerspectiveWindow( dockable ); child.setX( x ); child.setY( y ); child.setWidth( width ); child.setHeight( height ); child.setFullscreen( false ); dockables.dockables().add( child ); remove( dockable ); }