public AsideAnswer execute( DockStation station ){ setCurrent( new DockStationForward( station ) ); return execute(); }
/** * Sets all the information required to process a {@link DockStation} or {@link Combiner}. * @param current the current item to work with */ protected void setCurrent( Forward current ){ this.current = current; this.resultingLayout = current.getLayout(); }
public AsideAnswer forward( Combiner combiner, PlaceholderMap layout ){ return forward( new CombinerForward( combiner, layout )); }
protected AsideAnswer forward( Forward forward ){ DockableProperty successor = null; if( location != null ){ successor = location.getSuccessor(); } DefaultAsideRequest request = createForwardRequest( successor ); request.setCurrent( forward ); request.setParentStation( current.getStation() ); successorAnswer = request.execute(); return successorAnswer; }
/** * Creates a new {@link AsideRequest} which is used to examine the next child {@link DockStation}. * @param location the location on the child station * @return the new aside request, must not be <code>null</code> nor <code>this</code> */ protected DefaultAsideRequest createForwardRequest( DockableProperty location ){ return new DefaultAsideRequest( location, getPlaceholder() ); }
public AsideAnswer forward( DockStation station ){ return forward( new DockStationForward( station )); }
public AsideRequestFactory getDefault( PropertyKey<AsideRequestFactory> key, DockProperties properties ){ return new DefaultAsideRequestFactory( properties ); } }, true );
protected AsideAnswer forward( Forward forward ){ DockableProperty successor = null; if( location != null ){ successor = location.getSuccessor(); } DefaultAsideRequest request = createForwardRequest( successor ); request.setCurrent( forward ); request.setParentStation( current.getStation() ); successorAnswer = request.execute(); return successorAnswer; }
public AsideAnswer execute( DockStation station ){ setCurrent( new DockStationForward( station ) ); return execute(); }
public AsideAnswer forward( Combiner combiner ){ return forward( new CombinerForward( combiner, null )); }
/** * Creates a new {@link AsideRequest} which is used to examine the next child {@link DockStation}. * @param location the location on the child station * @return the new aside request, must not be <code>null</code> nor <code>this</code> */ protected DefaultAsideRequest createForwardRequest( DockableProperty location ){ return new DefaultAsideRequest( location, getPlaceholder() ); }
public AsideAnswer forward( DockStation station ){ return forward( new DockStationForward( station )); }
/** * Sets all the information required to process a {@link DockStation} or {@link Combiner}. * @param current the current item to work with */ protected void setCurrent( Forward current ){ this.current = current; this.resultingLayout = current.getLayout(); }
public AsideRequestFactory getDefault( PropertyKey<AsideRequestFactory> key, DockProperties properties ){ return new DefaultAsideRequestFactory( properties ); } }, true );
public AsideAnswer forward( Combiner combiner, PlaceholderMap layout ){ return forward( new CombinerForward( combiner, layout )); }
public PlaceholderMap getLayout(){ return current.getLayout(); }
public void answer(){ answer( (DockableProperty)null ); }
public AsideAnswer forward( Combiner combiner ){ return forward( new CombinerForward( combiner, null )); }