/** * Removes a {@link CStation} from this control. It is unspecified what * happens with the children on <code>station</code> * @param station the station to remove */ public void removeStation( CStation<?> station ){ if( register.removeStation( station ) ){ frontend.removeRoot( station.getStation() ); station.setControlAccess( null ); } }
/** * Removes a {@link CStation} from this control. It is unspecified what * happens with the children on <code>station</code> * @param station the station to remove */ public void removeStation( CStation<?> station ){ if( register.removeStation( station ) ){ frontend.removeRoot( station.getStation() ); station.setControlAccess( null ); } }
/** * Adds an additional station to this control. Most {@link CStation}s should * be root-stations, even if they are nested. * @param station the new station * @param root <code>true</code> if the station should be a root station. A root station may * or may not have any parent station. The location of a {@link CDockable} is always relative * to the first root station that can be found when travelling the tree upwards. For most stations * this attribute should be <code>true</code> */ public void addStation( CStation<?> station, boolean root ){ String id = station.getUniqueId(); checkValidUniqueId( id ); register.addStation( station ); if( root ){ frontend.addRoot( id, station.getStation() ); } station.setControlAccess( access ); }
/** * Adds an additional station to this control. Most {@link CStation}s should * be root-stations, even if they are nested. * @param station the new station * @param root <code>true</code> if the station should be a root station. A root station may * or may not have any parent station. The location of a {@link CDockable} is always relative * to the first root station that can be found when travelling the tree upwards. For most stations * this attribute should be <code>true</code> */ public void addStation( CStation<?> station, boolean root ){ String id = station.getUniqueId(); checkValidUniqueId( id ); register.addStation( station ); if( root ){ frontend.addRoot( id, station.getStation() ); } station.setControlAccess( access ); }