Tabnine Logo
bibliothek.gui.dock.layout
Code IndexAdd Tabnine to your IDE (free)

How to use bibliothek.gui.dock.layout

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

origin: xyz.cofe/docking-frames-core

/**
 * Tries to guess the location of the elements stored in the tree
 * below <code>composition</code>. Invoking this method is the same as calling
 * <code>guessLocation( composition, composition.getLayout().getLocation() );</code>.
 * @param composition the composition whose location will be determined
 */
public void estimateLocations( DockLayoutComposition composition ){
  estimateLocations( composition, composition.getLayout().getLocation() );
}
origin: xyz.cofe/docking-frames-core

public void prepare(){
  if( valid ){
    oldLocation = composition.getLayout().getLocation();
    for( Node child : children ){
      child.prepare();
    }
  }
}

origin: xyz.cofe/docking-frames-core

public void setLocation( int childIndex, DockableProperty location ){
  if( location != null ){	
    getChild( childIndex ).setLocation( location );
  }
}

origin: xyz.cofe/docking-frames-core

@SuppressWarnings("unchecked")
public void layoutPerspective( PerspectiveElement element, PredefinedLayout layout, Map<Integer, PerspectiveDockable> children ){
  DockLayoutInfo delegate = layout.getDelegate();
  if( delegate.getKind() == DockLayoutInfo.Data.DOCK_LAYOUT && shouldLayout( element, perspective )){
    String factoryId = delegate.getDataLayout().getFactoryID();
    DockFactory factory = getFactory( factoryId );
    if( factory != null ){
      factory.layoutPerspective( element, delegate.getDataLayout().getData(), children );
    }
  }
}

origin: xyz.cofe/docking-frames-core

public void finish( DockableProperty newParentLocation ){
  if( valid ){
    DockableProperty newLeafLocation = validLocation();
    if( newLeafLocation == null && newParentLocation != null ){
      newLeafLocation = newParentLocation.copy();
    }
    if( newLeafLocation != null ){
      newLeafLocation.setSuccessor( oldLocation );
      composition.getLayout().setLocation( newLeafLocation );
    }
    else{
      invalidate();
    }
  }
}

origin: xyz.cofe/docking-frames-core

@Override
public String getIdentifier( DockLayoutComposition composition ){
  DockLayout<?> layout = composition.getLayout().getDataLayout();
  if( layout != null && layout.getFactoryID().equals( KNOWN )){
    PredefinedLayout predefined = (PredefinedLayout) layout.getData();
    return predefined.getPredefined();
  }
  return null;
}

origin: xyz.cofe/docking-frames-core

private void appendFirstOnEstimate( DockLayoutComposition composition, DockableProperty location ){
  DockLayoutInfo info = composition.getLayout();
  DockableProperty property = info.getLocation();
  if( property != null ){
    info.setLocation( DockUtilities.append( property, location ) );
  }
  for( DockLayoutComposition child : composition.getChildren() ){
    appendFirstOnEstimate( child, location );
  }
}

origin: xyz.cofe/docking-frames-core

/**
 * Lists for all keys that can be found in <code>composition</code> its
 * estimated location.<br>
 * Note: This method will call {@link #estimateLocations(DockLayoutComposition)}
 * to get the most recent locations 
 * @param composition some composition to search for keys and locations
 * @param missingOnly if set, then only locations of keys for which 
 * no {@link DockLayout} is set are reported. This are the keys which most
 * likely will be ignored when calling {@link #convert(DockLayoutComposition)}
 * @return the map of keys and positions, might be empty
 */
public Map<String, DockableProperty> listEstimatedLocations( DockLayoutComposition composition, boolean missingOnly ){
  return listEstimatedLocations( composition, composition.getLayout().getLocation(), missingOnly );
}

origin: xyz.cofe/docking-frames-core

public boolean equalsNoSuccessor( DockableProperty property ){
  DockableProperty successor = this.successor;
  DockableProperty successorProperty = property.getSuccessor();
  
  try{
    this.successor = null;
    property.setSuccessor( null );
    
    return equals( property );
  }
  finally{
    this.successor = successor;
    property.setSuccessor( successorProperty );
  }
}

origin: xyz.cofe/docking-frames-core

  public DockableProperty validLocation(){
    DockableProperty location = composition.getLayout().getLocation();
    if( location != oldLocation ){
      return location;
    }
    return null;
  }
}
origin: xyz.cofe/docking-frames-core

public void setLocation( int childIndex, int subChildIndex, DockableProperty location ){
  if( location != null ){
    getSubChild( childIndex, subChildIndex ).setLocation( location );
  }
}

origin: xyz.cofe/docking-frames-core

@Override
public void setSuccessor( DockableProperty successor ){
  super.setSuccessor( successor );
  if( backup != null ){
    backup.setSuccessor( successor );
  }
}

origin: xyz.cofe/docking-frames-core

/**
 * Tells whether to ignore this element when saving. If an element is ignored, no 
 * factory is needed for it. This implementation forwards
 * the call to the {@link DockSituationIgnore} of this situation.
 * @param element the element which might not be saved
 * @return <code>true</code> if the element should not be saved
 */
protected boolean ignoreElement( DockElement element ){
  if( ignore == null )
    return false;
  return ignore.ignoreElement( element );
}
origin: xyz.cofe/docking-frames-core

/**
 * Gets the id of <code>factory</code>. The default behavior is just to
 * return {@link DockFactory#getID()}. Note that this method should be
 * a bijection to {@link #getAdjacentFactory(String)}.
 * @param factory the factory whose id is needed
 * @return the id of the factory
 */
protected String getAdjacentID( AdjacentDockFactory<?> factory ){
  return factory.getID();
}
origin: xyz.cofe/docking-frames-core

public boolean ignoreChildren( DockStation station ) {
  for( DockSituationIgnore ignore : ignores ){
    if( !ignore.ignoreChildren( station ))
      return false;
  }
  return true;
}
public boolean ignoreChildren( PerspectiveStation station ){
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

@SuppressWarnings("unchecked")
public void layoutPerspective( PerspectiveElement element, PredefinedLayout layout, Map<Integer, PerspectiveDockable> children ){
  DockLayoutInfo delegate = layout.getDelegate();
  if( delegate.getKind() == DockLayoutInfo.Data.DOCK_LAYOUT && shouldLayout( element, perspective )){
    String factoryId = delegate.getDataLayout().getFactoryID();
    DockFactory factory = getFactory( factoryId );
    if( factory != null ){
      factory.layoutPerspective( element, delegate.getDataLayout().getData(), children );
    }
  }
}

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

@Override
public String getIdentifier( DockLayoutComposition composition ){
  DockLayout<?> layout = composition.getLayout().getDataLayout();
  if( layout != null && layout.getFactoryID().equals( KNOWN )){
    PredefinedLayout predefined = (PredefinedLayout) layout.getData();
    return predefined.getPredefined();
  }
  return null;
}

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

/**
 * Lists for all keys that can be found in <code>composition</code> its
 * estimated location.<br>
 * Note: This method will call {@link #estimateLocations(DockLayoutComposition)}
 * to get the most recent locations 
 * @param composition some composition to search for keys and locations
 * @param missingOnly if set, then only locations of keys for which 
 * no {@link DockLayout} is set are reported. This are the keys which most
 * likely will be ignored when calling {@link #convert(DockLayoutComposition)}
 * @return the map of keys and positions, might be empty
 */
public Map<String, DockableProperty> listEstimatedLocations( DockLayoutComposition composition, boolean missingOnly ){
  return listEstimatedLocations( composition, composition.getLayout().getLocation(), missingOnly );
}

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

@SuppressWarnings("unchecked")
public void estimateLocations( PredefinedLayout layout, LocationEstimationMap children ){
  DockLayoutInfo delegate = layout.getDelegate();
  if( delegate.getKind() == DockLayoutInfo.Data.DOCK_LAYOUT ){
    String factoryId = delegate.getDataLayout().getFactoryID();
    DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId );
    if( factory != null ){
      factory.estimateLocations( delegate.getDataLayout().getData(), children );
    }
  }
}
origin: xyz.cofe/docking-frames-core

@SuppressWarnings("unchecked")
public void estimateLocations( PredefinedLayout layout, LocationEstimationMap children ){
  DockLayoutInfo delegate = layout.getDelegate();
  if( delegate.getKind() == DockLayoutInfo.Data.DOCK_LAYOUT ){
    String factoryId = delegate.getDataLayout().getFactoryID();
    DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId );
    if( factory != null ){
      factory.estimateLocations( delegate.getDataLayout().getData(), children );
    }
  }
}
bibliothek.gui.dock.layout

Most used classes

  • DockLayoutInfo
    A DockLayoutInfo is a wrapper around a DockLayout. The DockLayout can either be stored as real objec
  • DockableProperty
    Describes the location of a Dockable on a DockStation. The properties can be nested, that describes
  • AsideAnswer
    The answer to an AsideRequest.
  • AsideRequest
    An AsideRequest represents the action of generating a DockableProperty that is "aside" another prope
  • DockLayout
    A DockLayout describes the contents of one DockElement. It is an intermediate format between a DockE
  • DockSituation,
  • PredefinedDockSituation,
  • PropertyTransformer,
  • LocationEstimationMap,
  • AsideRequestFactory,
  • AdjacentDockFactory,
  • BackupFactoryData,
  • DockSituationIgnore,
  • DockablePropertyFactory,
  • PredefinedDockSituation$PreloadFactory,
  • PredefinedLayout,
  • DefaultAsideAnswer,
  • DefaultAsideRequest$CombinerForward,
  • DefaultAsideRequest$DockStationForward
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