/** * Gets the station which is managed by this handle. * @return the station */ public SplitDockStation getStation(){ return station.getStation(); }
/** * Creates a new handle * @param station the station which is handled by this handle */ public CFlapDockStationHandle( CStation<CFlapDockStation> station ){ this( station.getUniqueId(), station.getStation(), station.getStationLocation() ); }
/** * Creates a new handle * @param station the station which is handled by this handle */ public CFlapDockStationHandle( CStation<CFlapDockStation> station ){ this( station.getUniqueId(), station.getStation(), station.getStationLocation() ); }
/** * Gets the station which is managed by this handle. * @return the station */ public SplitDockStation getStation(){ return station.getStation(); }
public CLocation getCLocation( Dockable dockable, Location location ){ CStation<?> base = getBaseStation(); DockableProperty property = location.getLocation(); if( property == null ){ return base.getStationLocation(); } return base.getStationLocation().expandProperty( base.getStation().getController(), property ); }
/** * Gets the {@link DockStation} which was registered with the name {@link CControl#EXTERNALIZED_STATION_ID}. * @return the station which will be the parent of all the new {@link ExternalizingCGridArea}s */ protected DockStation getScreenDockStation(){ CStation<?> screen = control.getStation( CControl.EXTERNALIZED_STATION_ID ); return screen.getStation(); }
public CLocation getCLocation( Dockable dockable, Location location ){ DockableProperty property = location.getLocation(); if( property == null ) return station.getStationLocation(); return station.getStationLocation().expandProperty( station.getStation().getController(), property ); }
/** * Removes <code>listener</code> from this handle. * @param listener the listener to remove */ protected void remove( ModeAreaListenerWrapper listener ){ listeners.remove( listener ); if( listeners.isEmpty() ){ station.getStation().removeSplitDockStationListener( fullScreenListener ); } }
public CLocation getCLocation( Dockable dockable, Location location ){ DockableProperty property = location.getLocation(); if( property == null ) return station.getStationLocation(); return station.getStationLocation().expandProperty( station.getStation().getController(), property ); }
/** * Gets the {@link DockStation} which was registered with the name {@link CControl#EXTERNALIZED_STATION_ID}. * @return the station which will be the parent of all the new {@link ExternalizingCGridArea}s */ protected DockStation getScreenDockStation(){ CStation<?> screen = control.getStation( CControl.EXTERNALIZED_STATION_ID ); return screen.getStation(); }
public CLocation getCLocation( Dockable dockable, Location location ){ CStation<?> base = getBaseStation(); DockableProperty property = location.getLocation(); if( property == null ){ return base.getStationLocation(); } return base.getStationLocation().expandProperty( base.getStation().getController(), property ); }
/** * Removes <code>listener</code> from this handle. * @param listener the listener to remove */ protected void remove( ModeAreaListenerWrapper listener ){ listeners.remove( listener ); if( listeners.isEmpty() ){ station.getStation().removeSplitDockStationListener( fullScreenListener ); } }
public CLocation getCLocation( Dockable dockable ){ CStation<?> base = getBaseStation(); DockStation baseStation = base.getStation(); DockableProperty property = DockUtilities.getPropertyChain( baseStation, dockable ); return base.getStationLocation().expandProperty( baseStation.getController(), property ); }
/** * Tells whether <code>station</code> was {@link #addStation(CStation, boolean) added} to this {@link CControl} * with the <code>root</code> flag set to <code>true</code>. * @param station the station whose root flag is asked * @return the value of the root flag or <code>false</code> if <code>station</code> is not registered at all */ public boolean isRootStation( CStation<?> station ){ DockStation root = frontend.getRoot( station.getUniqueId() ); return root == station.getStation(); }
public CLocation getCLocation( Dockable dockable ){ CStation<?> base = getBaseStation(); DockStation baseStation = base.getStation(); DockableProperty property = DockUtilities.getPropertyChain( baseStation, dockable ); return base.getStationLocation().expandProperty( baseStation.getController(), property ); }
/** * Gets a {@link CLocation} describing the location of <code>dockable</code> on the station of this handle. * @param dockable some child * @return the location */ public CLocation getCLocation( Dockable dockable ){ DockableProperty property = DockUtilities.getPropertyChain( station.getStation(), dockable ); return expand( property ); }
/** * Gets a {@link CLocation} describing the location of <code>dockable</code> on the station of this handle. * @param dockable some child * @return the location */ public CLocation getCLocation( Dockable dockable ){ DockableProperty property = DockUtilities.getPropertyChain( station.getStation(), dockable ); return expand( property ); }
/** * Tells whether <code>station</code> was {@link #addStation(CStation, boolean) added} to this {@link CControl} * with the <code>root</code> flag set to <code>true</code>. * @param station the station whose root flag is asked * @return the value of the root flag or <code>false</code> if <code>station</code> is not registered at all */ public boolean isRootStation( CStation<?> station ){ DockStation root = frontend.getRoot( station.getUniqueId() ); return root == station.getStation(); }
/** * 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 ); } }