/** * Makes a call to {@link DockStation#aside(AsideRequest)} or {@link Combiner#aside(AsideRequest)}. This method * should be called only once. * @return the location and layout of the {@link Dockable} that is to be inserted */ protected AsideAnswer execute(){ if( hasAnswer ){ throw new IllegalStateException( "this request is already used, it cannot be executed a second time" ); } current.execute( this ); if( hasAnswer ){ hasAnswer = true; DockableProperty location = answerLocation( successorAnswer ); return new DefaultAsideAnswer( false, location, resultingLayout ); } else{ return new DefaultAsideAnswer( true, null, null ); } }
/** * Makes a call to {@link DockStation#aside(AsideRequest)} or {@link Combiner#aside(AsideRequest)}. This method * should be called only once. * @return the location and layout of the {@link Dockable} that is to be inserted */ protected AsideAnswer execute(){ if( hasAnswer ){ throw new IllegalStateException( "this request is already used, it cannot be executed a second time" ); } current.execute( this ); if( hasAnswer ){ hasAnswer = true; DockableProperty location = answerLocation( successorAnswer ); return new DefaultAsideAnswer( false, location, resultingLayout ); } else{ return new DefaultAsideAnswer( true, null, null ); } }
public PlaceholderMap getLayout(){ return current.getLayout(); }
public PlaceholderMap getLayout(){ return current.getLayout(); }
/** * 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(); }
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; }
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; }
/** * 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(); }