@Override public boolean aside( AsideRequest request ){ if( request.getPlaceholder() != null ){ addPlaceholder( request.getPlaceholder() ); DockStation station = getDockable().asDockStation(); if( station == null ){ AsideAnswer answer = request.forward( getStation().getCombiner(), getPlaceholderMap() ); if( answer.isCanceled() ){ return false; } setPlaceholderMap( answer.getLayout() ); } else{ AsideAnswer answer = request.forward( station ); if( answer.isCanceled() ){ return false; } } } return true; }
public Location aside( AsideRequest request, Location location ){ A area = get( location.getRoot() ); if( area == null ){ return null; } AsideAnswer answer = request.execute( area.getStation() ); if( answer.isCanceled() ){ return null; } return new Location( getUniqueIdentifier(), location.getRoot(), answer.getLocation(), true ); }
public Location aside( AsideRequest request, Location location ){ A area = get( location.getRoot() ); if( area == null ){ return null; } AsideAnswer answer = request.execute( area.getStation() ); if( answer.isCanceled() ){ return null; } return new Location( getUniqueIdentifier(), location.getRoot(), answer.getLocation() ); }
@Override public boolean aside( AsideRequest request ){ if( request.getPlaceholder() != null ){ addPlaceholder( request.getPlaceholder() ); AsideAnswer answer = request.forward( getStation().getCombiner(), getPlaceholderMap() ); if( answer.isCanceled() ){ return false; } setPlaceholderMap( answer.getLayout() ); } return true; }
PlaceholderMap layout = info.bestLeaf.getPlaceholderMap(); answer = request.forward( getCombiner(), layout ); if( !answer.isCanceled() ){ info.bestLeaf.setPlaceholderMap( answer.getLayout() ); return !answer.isCanceled(); if( !answer.isCanceled() ){ info.bestLeaf.setPlaceholderMap( answer.getLayout() ); return !answer.isCanceled();
PlaceholderMap layout = info.bestLeaf.getPlaceholderMap(); answer = request.forward( getCombiner(), layout ); if( !answer.isCanceled() ){ info.bestLeaf.setPlaceholderMap( answer.getLayout() ); return !answer.isCanceled(); if( !answer.isCanceled() ){ info.bestLeaf.setPlaceholderMap( answer.getLayout() ); return !answer.isCanceled();
if( answer.isCanceled() || answer.getLocation() == null ){ return false;
/** * Can be called by {@link DockStation#aside(AsideRequest)} if <code>request</code> contains a * location that points toward <code>item</code>. The method first tries to call * {@link DockStation#aside(AsideRequest)} of the {@link Dockable} represented by * <code>item</code>, and if that fails it tries to call {@link Combiner#aside(AsideRequest)}. * @param item the item which should contain the new location * @param combiner the {@link Combiner} to ask if there is no {@link DockStation} to ask, not <code>null</code> * @param request information about the location to create */ public <T extends PlaceholderListItem<Dockable>> void combine( DockablePlaceholderList<T>.Item item, Combiner combiner, AsideRequest request ){ PlaceholderListItem<Dockable> handle = item.getDockable(); Path placeholder = request.getPlaceholder(); if( placeholder != null ){ item.add( placeholder ); } if( handle != null ){ DockStation station = handle.asDockable().asDockStation(); if( station != null ){ request.forward( station ); return; } } PlaceholderMap childLayout = item.getPlaceholderMap(); AsideAnswer answer = request.forward( combiner, childLayout ); if( !answer.isCanceled() ){ item.setPlaceholderMap( answer.getLayout() ); } } }
/** * Can be called by {@link DockStation#aside(AsideRequest)} if <code>request</code> contains a * location that points toward <code>item</code>. The method first tries to call * {@link DockStation#aside(AsideRequest)} of the {@link Dockable} represented by * <code>item</code>, and if that fails it tries to call {@link Combiner#aside(AsideRequest)}. * @param item the item which should contain the new location * @param combainer the {@link Combiner} to ask if there is no {@link DockStation} to ask, not <code>null</code> * @param request information about the location to create */ public <T extends PlaceholderListItem<Dockable>> void combine( DockablePlaceholderList<T>.Item item, Combiner combiner, AsideRequest request ){ PlaceholderListItem<Dockable> handle = item.getDockable(); Path placeholder = request.getPlaceholder(); if( placeholder != null ){ item.add( placeholder ); } if( handle != null ){ DockStation station = handle.asDockable().asDockStation(); if( station != null ){ request.forward( station ); return; } } PlaceholderMap childLayout = item.getPlaceholderMap(); AsideAnswer answer = request.forward( combiner, childLayout ); if( !answer.isCanceled() ){ item.setPlaceholderMap( answer.getLayout() ); } } }
if( existing.asDockStation() != null ){ AsideAnswer answer = request.forward( existing.asDockStation() ); if( answer.isCanceled() ){ return;
DockStation stack = getDockable( 0 ).asDockStation(); AsideAnswer answer = request.forward( stack ); if( answer.isCanceled() ){ return;
if( !answer.isCanceled() ){ leaf.setPlaceholderMap( answer.getLayout() ); if( answer.isCanceled() ){ return;
if( !answer.isCanceled() ){ leaf.setPlaceholderMap( answer.getLayout() ); if( answer.isCanceled() ){ return;
if( station != null ){ AsideAnswer answer = request.forward( station ); if( answer.isCanceled() ){ return;