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

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

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

origin: xyz.cofe/docking-frames-core

public void aside( AsideRequest request ){
  DockableProperty location = request.getLocation();
  if( location instanceof ScreenDockProperty ){
    ScreenDockProperty screenLocation = (ScreenDockProperty)location;
    DockablePlaceholderList<ScreenDockWindowHandle>.Item item = getItem( screenLocation );
    if( item != null ){
      delegate().combine( item, getCombiner(), request );
    }
    
    ScreenDockProperty copy = screenLocation.copy();
    copy.setSuccessor( null );
    copy.setPlaceholder( request.getPlaceholder() );
    request.answer( copy );
  }
}

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

public void aside( AsideRequest request ){
  DockStation parent = request.getParentStation();
  if( parent != null ){
    Combiner combiner = get( parent );
    combiner.aside( request );
  }
}
origin: xyz.cofe/docking-frames-core

public void aside( final AsideRequest request ){
  PlaceholderMap placeholders = request.getLayout();
  StackDockPerspective stack = new StackDockPerspective();
  if( placeholders != null && stack.canRead( placeholders ) ){
    stack.setPlaceholders( placeholders );
  }
  if( stack.getItemCount() == 0 ){
    insert( stack, request.getLocation() );
  }
  
  int index = indexOf( stack, request.getLocation() );
  if( index == -1 ){
    index = stack.getDockableCount();
    if( index == 0 ){
      index = 1;
    }
  }
  else{
    index++;
  }
  index = Math.min( stack.getItemCount(), index );
  
  if( request.getPlaceholder() != null ){
    stack.insertPlaceholder( index, request.getPlaceholder(), Level.BASE );
  }
  
  request.answer( new StackDockProperty( index, request.getPlaceholder() ), stack.getPlaceholders() );
}

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

public void aside( AsideRequest request ){
  boolean result = false;
  if( request.getPlaceholder() != null ){
    removePlaceholder( request.getPlaceholder() );
  DockableProperty location = request.getLocation();
  if( location instanceof SplitDockPlaceholderProperty ){
    SplitDockPlaceholderProperty property = (SplitDockPlaceholderProperty)location;
    if( fullscreen != null ){
      Leaf leaf = getRoot().getLeaf( fullscreen );
      if( request.getPlaceholder() != null ){
        leaf.addPlaceholder( request.getPlaceholder() );
        answer = request.forward( fullScreenStation );
        answer = request.forward( getCombiner(), leaf.getPlaceholderMap() );
        if( !answer.isCanceled() ){
          leaf.setPlaceholderMap( answer.getLayout() );
    request.answer( new SplitDockFullScreenProperty() );
    return;
    if( request.getPlaceholder() == null ){
      location = request.getLocation();
      if( location instanceof SplitDockPlaceholderProperty ){
        location = ((SplitDockPlaceholderProperty)location).getBackup();
      request.answer( location );
origin: xyz.cofe/docking-frames-core

@Override
public boolean aside( SplitDockPathProperty property, int index, AsideRequest request ){
  if( child == null ){
    if( request.getPlaceholder() != null ){
      long id = property.getLeafId();
      Placeholder placeholder = createPlaceholder( id );
      setChild( placeholder );
      placeholder.addPlaceholder( request.getPlaceholder() );
    }
    return true;
  }
  else{
    return child.aside( property, index, request );
  }
}

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

public void aside( AsideRequest request ){
  boolean result = false;
  if( request.getPlaceholder() != null ){
    removePlaceholder( request.getPlaceholder() );
  DockableProperty location = request.getLocation();
  if( location instanceof SplitDockPlaceholderProperty ){
    SplitDockPlaceholderProperty property = (SplitDockPlaceholderProperty)location;
    if( fullscreen != null ){
      Leaf leaf = getRoot().getLeaf( fullscreen );
      if( request.getPlaceholder() != null ){
        leaf.addPlaceholder( request.getPlaceholder() );
        answer = request.forward( fullScreenStation );
        answer = request.forward( getCombiner(), leaf.getPlaceholderMap() );
        if( !answer.isCanceled() ){
          leaf.setPlaceholderMap( answer.getLayout() );
    request.answer( new SplitDockFullScreenProperty() );
    return;
    if( request.getPlaceholder() == null ){
      location = request.getLocation();
      if( location instanceof SplitDockPlaceholderProperty ){
        location = ((SplitDockPlaceholderProperty)location).getBackup();
      request.answer( location );
origin: xyz.cofe/docking-frames-core

@Override
public boolean aside( AsideRequest request ){
  if( child == null ){
    if( request.getPlaceholder() != null ){
      Placeholder placeholder = createPlaceholder( -1 );
      setChild( placeholder );
      return placeholder.aside( request );
    }
  }
  else{
    return child.aside( request );
  }
  return true;
}

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-ext-toolbar

  description="Implement this feature")
public void aside( AsideRequest request ){
  DockableProperty location = request.getLocation();
  int column = -1;
  int line = -1;
  Path newPlaceholder = request.getPlaceholder();
        Dockable existing = dockables.getModel().getColumn( column ).getDockable( line );
        if( existing.asDockStation() != null ){
          AsideAnswer answer = request.forward( existing.asDockStation() );
          if( answer.isCanceled() ){
            return;
  request.answer( new ToolbarGroupProperty( column, line, newPlaceholder ) );
origin: xyz.cofe/docking-frames-core

public void aside( AsideRequest request ){
  DockableProperty location = request.getLocation();
  if( location instanceof FlapDockProperty ){
    FlapDockProperty flapLocation = (FlapDockProperty)location;
    DockablePlaceholderList<DockableHandle>.Item item = getItem( flapLocation );
    
    if( item != null ){
      delegate().combine( item, getCombiner(), request );
    }
    
    FlapDockProperty copy = flapLocation.copy();
    copy.setSuccessor( null );
    copy.setPlaceholder( request.getPlaceholder() );
    request.answer( copy );
  }
}

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

@Override
public boolean aside( SplitDockPathProperty property, int index, AsideRequest request ){
  if( request.getPlaceholder() != null ){
    if( index < property.size() ){
      Placeholder placeholder = createPlaceholder( property.getLeafId() );
      split( property, index, placeholder );
      placeholder.aside( request );
    }
    else{
      aside( request );
    }
  }
  return true;
}

origin: xyz.cofe/docking-frames-core

AsideRequest request = factory.createAsideRequest( location, dockable );
AsideAnswer answer = request.execute( rootStation );
if( answer.isCanceled() || answer.getLocation() == null ){
  return false;
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

public void aside( AsideRequest request ){
  DockStation parent = request.getParentStation();
  if( parent != null ){
    Combiner combiner = get( parent );
    combiner.aside( request );
  }
}
origin: xyz.cofe/docking-frames-ext-toolbar

  AsideAnswer answer = request.forward( stack );
  if( answer.isCanceled() ){
    return;
DockableProperty location = request.getLocation();
Path newPlaceholder = request.getPlaceholder();
if( location instanceof ToolbarProperty ){
  ToolbarProperty toolbarLocation = (ToolbarProperty)location;
request.answer( new ToolbarProperty( index, newPlaceholder ));
origin: xyz.cofe/docking-frames-core

public void aside( AsideRequest request ){
  DockableProperty location = request.getLocation();
  int index;
  Path newPlaceholder = request.getPlaceholder();
  if( location instanceof StackDockProperty ){
    StackDockProperty stackLocation = (StackDockProperty)location;
    index = dockables.getNextListIndex( stackLocation.getIndex(), stackLocation.getPlaceholder() );
    if( newPlaceholder != null ){
      dockables.list().insertPlaceholder( index, newPlaceholder );
    }
  } 
  else {
    index = dockables.dockables().size();
    if( newPlaceholder != null ){
      dockables.dockables().insertPlaceholder( index, newPlaceholder );
    }
  }
  request.answer( new StackDockProperty( index, newPlaceholder ));
}

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

@Override
public boolean aside( SplitDockPathProperty property, int index, AsideRequest request ){
  if( request.getPlaceholder() != null ){
    if( index < property.size() ){
      DockStation station = getDockable().asDockStation();
      if( station == null ){
        Placeholder placeholder = createPlaceholder( property.getLeafId() );
        split( property, index, placeholder );
        return placeholder.aside( request );
      }
    }
    else{
      return aside( request );
    }
  }
  return true;
}

bibliothek.gui.dock.layout.locationAsideRequest

Javadoc

An AsideRequest represents the action of generating a DockableProperty that is "aside" another property, this includes modifying DockStations and layouts to store a placeholder for the new property.
One AsideRequest is always tied to exactly one DockStation or Combiner, forwarding a request to another DockStation will produce very strange results.

Most used methods

  • answer
    Tells this request how the layout of a non-existent station looks after the request has been handled
  • execute
    Executes this request calling the aside method of station.
  • forward
    Calls the Combiner#aside(AsideRequest) method of combiner with the DockableProperty#getSuccessor() o
  • getLocation
    Gets the old location, the location whose neighbor is searched. The property may have a DockableProp
  • getPlaceholder
    The placeholder that should be used for the new location.
  • getParentStation
    Gets the DockStation that is the parent of the current DockStation or Combiner.
  • getLayout
    Gets the layout of the current non-existent station. The layout is only set in situations where no D

Popular in Java

  • Finding current android device location
  • notifyDataSetChanged (ArrayAdapter)
  • getSupportFragmentManager (FragmentActivity)
  • getContentResolver (Context)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • ArrayList (java.util)
    ArrayList is an implementation of List, backed by an array. All optional operations including adding
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JComboBox (javax.swing)
  • Top Vim plugins
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