/** * Tells which children to show and which not. This method is called with all children (direct * and indirect) of the station. The default behavior is to return <code>true</code> for * any direct child or <code>true</code> if the monitored dockable is no station at all. * @param dockable the child to check * @return <code>true</code> if there should be a button, <code>false</code> otherwise */ protected boolean shouldShow( Dockable dockable ){ if( dockable.getDockParent() == getDockable().asDockStation() ){ return true; } if( dockable == getDockable() && dockable.asDockStation() == null ){ return true; } return false; }