/** * 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 ); } }