Tabnine Logo
AsideAnswer
Code IndexAdd Tabnine to your IDE (free)

How to use
AsideAnswer
in
bibliothek.gui.dock.layout.location

Best Java code snippets using bibliothek.gui.dock.layout.location.AsideAnswer (Showing top 16 results out of 315)

origin: xyz.cofe/docking-frames-common

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

origin: xyz.cofe/docking-frames-core

@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;
}

origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

private DockableProperty answerLocation( AsideAnswer successor ){
  if( successor == null || successor.getLocation() == null ){
    return resultingLocation;
  }
  if( resultingLocation == null ){
    return successor.getLocation();
  }
  
  DockableProperty last = resultingLocation;
  while( last.getSuccessor() != null ){
    last = last.getSuccessor();
  }
  
  last.setSuccessor( successor.getLocation() );
  return resultingLocation;
}
origin: xyz.cofe/docking-frames-ext-toolbar

if( existing.asDockStation() != null ){
  AsideAnswer answer = request.forward( existing.asDockStation() );
  if( answer.isCanceled() ){
    return;
origin: xyz.cofe/docking-frames-core

private DockableProperty answerLocation( AsideAnswer successor ){
  if( successor == null || successor.getLocation() == null ){
    return resultingLocation;
  }
  if( resultingLocation == null ){
    return successor.getLocation();
  }
  
  DockableProperty last = resultingLocation;
  while( last.getSuccessor() != null ){
    last = last.getSuccessor();
  }
  
  last.setSuccessor( successor.getLocation() );
  return resultingLocation;
}
origin: xyz.cofe/docking-frames-ext-toolbar

if( station != null ){
  AsideAnswer answer = request.forward( station );
  if( answer.isCanceled() ){
    return;
origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

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() );
}
 
origin: xyz.cofe/docking-frames-core

@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;
}

origin: xyz.cofe/docking-frames-core

if( answer.isCanceled() || answer.getLocation() == null ){
  return false;
newInfo.setLocation( root, answer.getLocation() );
return true;
origin: xyz.cofe/docking-frames-core

    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();
origin: xyz.cofe/docking-frames-ext-toolbar

DockStation stack = getDockable( 0 ).asDockStation();
AsideAnswer answer = request.forward( stack );
if( answer.isCanceled() ){
  return;
DockableProperty answerLocation = answer.getLocation();
if( answerLocation instanceof StackDockProperty ){
  resultIndex = ((StackDockProperty) answerLocation).getIndex();
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

    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();
origin: xyz.cofe/docking-frames-core

  /**
   * 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() );
    }
  }
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

  /**
   * 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() );
    }
  }
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

  if( !answer.isCanceled() ){
    leaf.setPlaceholderMap( answer.getLayout() );
if( answer.isCanceled() ){
  return;
origin: xyz.cofe/docking-frames-core

  if( !answer.isCanceled() ){
    leaf.setPlaceholderMap( answer.getLayout() );
if( answer.isCanceled() ){
  return;
bibliothek.gui.dock.layout.locationAsideAnswer

Javadoc

The answer to an AsideRequest.

Most used methods

  • getLocation
    Gets the location generated by the child station. This location must not be set as DockableProperty#
  • isCanceled
    Tells whether the request was canceled.
  • getLayout
    Gets the layout of a non-existent child station. A value of null either indicates that the child sta

Popular in Java

  • Making http post requests using okhttp
  • notifyDataSetChanged (ArrayAdapter)
  • startActivity (Activity)
  • onRequestPermissionsResult (Fragment)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Collectors (java.util.stream)
  • JCheckBox (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now