public String getUniqueId() { return station.getUniqueId(); }
public String getUniqueId() { return station.getUniqueId(); }
public String getUniqueId(){ return station.getUniqueId(); }
public String getUniqueId(){ return station.getUniqueId(); }
public String getUniqueId(){ return station.getUniqueId(); }
public String getUniqueId() { return station.getUniqueId(); }
public void addStation( CStation<?> station ) { if( !settingDefaultStations ){ checkStationIdentifierUniqueness( station.getUniqueId(), station ); } stations.add( station ); }
public void addStation( CStation<?> station ) { if( !settingDefaultStations ){ checkStationIdentifierUniqueness( station.getUniqueId(), station ); } stations.add( station ); }
/** * Searches the {@link CStation} with unique identifier <code>id</code>. * @param id the identifier * @return the station or <code>null</code> */ public CStation<?> getStation( String id ){ for( CStation<?> station : register.getStations() ){ if( station.getUniqueId().equals( id )){ return station; } } return null; }
/** * Searches the {@link CStation} with unique identifier <code>id</code>. * @param id the identifier * @return the station or <code>null</code> */ public CStation<?> getStation( String id ){ for( CStation<?> station : register.getStations() ){ if( station.getUniqueId().equals( id )){ return station; } } return null; }
/** * 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() ); }
/** * 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(); }
/** * 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(); }
/** * 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() ); }
public void dockStationRegistering( DockController controller, DockStation station ){ if( station instanceof CommonDockStation<?,?>){ CommonDockStation<?, ?> common = (CommonDockStation<?, ?>)station; CStation<?> cstation = common.getStation(); String id = cstation.getUniqueId(); if( id.equals( area )){ if( cstation.isWorkingArea() ){ dockable.setWorkingArea( cstation ); } uninstall(); } } }
public void dockStationRegistering( DockController controller, DockStation station ){ if( station instanceof CommonDockStation<?,?>){ CommonDockStation<?, ?> common = (CommonDockStation<?, ?>)station; CStation<?> cstation = common.getStation(); String id = cstation.getUniqueId(); if( id.equals( area )){ if( cstation.isWorkingArea() ){ dockable.setWorkingArea( cstation ); } uninstall(); } } }
public CommonSingleDockableLayout getLayout( CommonDockable element, Map<Dockable, Integer> children ) { CDockable dockable = element.getDockable(); if( dockable instanceof SingleCDockable ){ SingleCDockable single = (SingleCDockable)dockable; CommonSingleDockableLayout layout = new CommonSingleDockableLayout(); layout.setId( single.getUniqueId() ); layout.setArea( single.getWorkingArea() == null ? null : single.getWorkingArea().getUniqueId() ); return layout; } else throw new IllegalArgumentException( "A CommonSingleDockableFactory works only with Dockables of type SingleCDockable, but this is not a single dockable: " + element ); }
public CommonSingleDockableLayout getLayout( CommonDockable element, Map<Dockable, Integer> children ) { CDockable dockable = element.getDockable(); if( dockable instanceof SingleCDockable ){ SingleCDockable single = (SingleCDockable)dockable; CommonSingleDockableLayout layout = new CommonSingleDockableLayout(); layout.setId( single.getUniqueId() ); layout.setArea( single.getWorkingArea() == null ? null : single.getWorkingArea().getUniqueId() ); return layout; } else throw new IllegalArgumentException( "A CommonSingleDockableFactory works only with Dockables of type SingleCDockable, but this is not a single dockable: " + element ); }
public CommonMultipleDockableLayout getLayout( CommonDockable element, Map<Dockable, Integer> children ) { MultipleCDockable dockable = (MultipleCDockable)element.getDockable(); MultipleCDockableLayout layout = delegate.write( dockable ); CommonMultipleDockableLayout flayout = new CommonMultipleDockableLayout(); flayout.setLayout( layout ); String uniqueId = controlAccess.access( element.getDockable() ).getUniqueId(); uniqueId = controlAccess.getRegister().multiToNormalId( uniqueId ); flayout.setId( uniqueId ); if( element.getDockable().getWorkingArea() != null ) flayout.setArea( element.getDockable().getWorkingArea().getUniqueId() ); return flayout; }
public CommonMultipleDockableLayout getLayout( CommonDockable element, Map<Dockable, Integer> children ) { MultipleCDockable dockable = (MultipleCDockable)element.getDockable(); MultipleCDockableLayout layout = delegate.write( dockable ); CommonMultipleDockableLayout flayout = new CommonMultipleDockableLayout(); flayout.setLayout( layout ); String uniqueId = controlAccess.access( element.getDockable() ).getUniqueId(); uniqueId = controlAccess.getRegister().multiToNormalId( uniqueId ); flayout.setId( uniqueId ); if( element.getDockable().getWorkingArea() != null ) flayout.setArea( element.getDockable().getWorkingArea().getUniqueId() ); return flayout; }