Tabnine Logo
DockLayoutInfo.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
bibliothek.gui.dock.layout.DockLayoutInfo
constructor

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

origin: xyz.cofe/docking-frames-core

@SuppressWarnings("unchecked")
public PredefinedLayout getLayout( DockElement element, Map<Dockable, Integer> children ) {
  if( shouldLayout( element )){
    String factoryId = UNKNOWN + PredefinedDockSituation.super.getID( element );
    DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId );
    if( factory == null )
      throw new IllegalStateException( "Missing factory: " + factoryId );
    Object data = factory.getLayout( element, children );
    DockLayout<Object> layout = new DockLayout<Object>( factoryId, data );
    return new PredefinedLayout( elementToString.get( element ), new DockLayoutInfo( layout ));    
  }
  else{
    return new PredefinedLayout( elementToString.get( element ), new DockLayoutInfo() );
  }
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

@SuppressWarnings("unchecked")
public PredefinedLayout getLayout( DockElement element, Map<Dockable, Integer> children ) {
  if( shouldLayout( element )){
    String factoryId = UNKNOWN + PredefinedDockSituation.super.getID( element );
    DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId );
    if( factory == null )
      throw new IllegalStateException( "Missing factory: " + factoryId );
    Object data = factory.getLayout( element, children );
    DockLayout<Object> layout = new DockLayout<Object>( factoryId, data );
    return new PredefinedLayout( elementToString.get( element ), new DockLayoutInfo( layout ));    
  }
  else{
    return new PredefinedLayout( elementToString.get( element ), new DockLayoutInfo() );
  }
}
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

@SuppressWarnings("unchecked")
public PredefinedLayout getPerspectiveLayout( PerspectiveElement element, Map<PerspectiveDockable, Integer> children ){
  if( perspective == null ){
    throw new IllegalStateException( "the perspective of this factory is not set, meaning this factory cannot be used handling perspective dependent tasks" );
  }
  
  DockLayoutInfo info;
  
  if( shouldLayout( element, perspective )){
    String factoryId = UNKNOWN + PredefinedDockSituation.super.getID( element );
    DockFactory factory = getFactory( factoryId );
    if( factory == null )
      throw new IllegalStateException( "Missing factory: " + factoryId );
    Object data = factory.getPerspectiveLayout( element, children );
    DockLayout<Object> layout = new DockLayout<Object>( factoryId, data );
    info = new DockLayoutInfo( layout );
  }
  else{
    info = new DockLayoutInfo();
  }
  
  String key = perspective.get( element );
  if( key == null ){
    throw new IllegalStateException( "Expected a key for an element, the element should be known to the perspective, otherwise this method would not have been called: '" + element +"'" );
  }
  
  return new PredefinedLayout( key, info );
}
origin: xyz.cofe/docking-frames-core

@SuppressWarnings("unchecked")
public PredefinedLayout getPerspectiveLayout( PerspectiveElement element, Map<PerspectiveDockable, Integer> children ){
  if( perspective == null ){
    throw new IllegalStateException( "the perspective of this factory is not set, meaning this factory cannot be used handling perspective dependent tasks" );
  }
  
  DockLayoutInfo info;
  
  if( shouldLayout( element, perspective )){
    String factoryId = UNKNOWN + PredefinedDockSituation.super.getID( element );
    DockFactory factory = getFactory( factoryId );
    if( factory == null )
      throw new IllegalStateException( "Missing factory: " + factoryId );
    Object data = factory.getPerspectiveLayout( element, children );
    DockLayout<Object> layout = new DockLayout<Object>( factoryId, data );
    info = new DockLayoutInfo( layout );
  }
  else{
    info = new DockLayoutInfo();
  }
  
  String key = perspective.get( element );
  if( key == null ){
    throw new IllegalStateException( "Expected a key for an element, the element should be known to the perspective, otherwise this method would not have been called: '" + element +"'" );
  }
  
  return new PredefinedLayout( key, info );
}
origin: xyz.cofe/docking-frames-core

return new PredefinedLayout( preload, new DockLayoutInfo() );
return new PredefinedLayout( preload, new DockLayoutInfo( xdelegate ));
return new PredefinedLayout( preload, new DockLayoutInfo( layout ) );
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

return new PredefinedLayout( preload, new DockLayoutInfo() );
return new PredefinedLayout( preload, new DockLayoutInfo( xdelegate ));
return new PredefinedLayout( preload, new DockLayoutInfo( layout ) );
origin: xyz.cofe/docking-frames-core

info = new DockLayoutInfo();
    BackupFactoryData<Object> data = (BackupFactoryData<Object>)backup.read( in, placeholders );
    if( data != null && data.getData() != null ){
      info = new DockLayoutInfo( new DockLayout<Object>( factoryId, data.getData() ));
    info = new DockLayoutInfo( out.toByteArray() );
  Object delegate = factory.read( in, placeholders );
  if( delegate != null ){
    info = new DockLayoutInfo( new DockLayout<Object>( factoryId, delegate ));
origin: xyz.cofe/docking-frames-core

  info = new DockLayoutInfo( new DockLayout<Object>( factoryId, data ));
  info.setPlaceholder( placeholder );
info = new DockLayoutInfo( entry );
info.setPlaceholder( placeholder );
info = new DockLayoutInfo( new DockLayout<Object>( factoryId, data ) );
info.setPlaceholder( placeholder );
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

info = new DockLayoutInfo();
    BackupFactoryData<Object> data = (BackupFactoryData<Object>)backup.read( in, placeholders );
    if( data != null && data.getData() != null ){
      info = new DockLayoutInfo( new DockLayout<Object>( factoryId, data.getData() ));
    info = new DockLayoutInfo( out.toByteArray() );
  Object delegate = factory.read( in, placeholders );
  if( delegate != null ){
    info = new DockLayoutInfo( new DockLayout<Object>( factoryId, delegate ));
origin: xyz.cofe/docking-frames-core

  BackupFactoryData<Object> data = (BackupFactoryData<Object>)backup.read( in, getPlaceholderStrategy() );
  if( data != null && data.getData() != null ){
    info = new DockLayoutInfo( new DockLayout<Object>( factoryId, data.getData() ));
Object delegate = factory.read( in, getPlaceholderStrategy() );
if( delegate != null ){
  info = new DockLayoutInfo( new DockLayout<Object>( factoryId, delegate ));
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

  BackupFactoryData<Object> data = (BackupFactoryData<Object>)backup.read( in, getPlaceholderStrategy() );
  if( data != null && data.getData() != null ){
    info = new DockLayoutInfo( new DockLayout<Object>( factoryId, data.getData() ));
Object delegate = factory.read( in, getPlaceholderStrategy() );
if( delegate != null ){
  info = new DockLayoutInfo( new DockLayout<Object>( factoryId, delegate ));
origin: org.opentcs.thirdparty.dockingframes/docking-frames-common

if( match != null ){
  DockLayout<?> newLayout = new DockLayout<MultipleCDockable>( REPLACEMENT_FACTORY_ID, match );
  DockLayoutInfo newInfo = new DockLayoutInfo( newLayout );
  newInfo.setLocation( info.getLocation() );
  info = newInfo;
origin: org.opentcs.thirdparty.dockingframes/docking-frames-core

DockLayoutInfo info = new DockLayoutInfo( layout );
PerspectiveDockable dockable = element.asDockable();
if( dockable != null ){
origin: xyz.cofe/docking-frames-common

if( match != null ){
  DockLayout<?> newLayout = new DockLayout<MultipleCDockable>( REPLACEMENT_FACTORY_ID, match );
  DockLayoutInfo newInfo = new DockLayoutInfo( newLayout );
  newInfo.setLocation( info.getLocation() );
  info = newInfo;
origin: xyz.cofe/docking-frames-core

DockLayoutInfo info = new DockLayoutInfo( layout );
info.setPlaceholder( getPlaceholder( element ) );
return new DockLayoutComposition( info, adjacent, children, ignore );
origin: xyz.cofe/docking-frames-core

Object data = factory.read( element, intermediatePlaceholders );
if( data != null ){
  layout = new DockLayoutInfo( new DockLayout<Object>( factoryId, data ) );
  layout.setPlaceholder( placeholder );
  Object data = missingFactory.readXML( getFactoryID( factoryId ), element );
  if( data != null ){
    layout = new DockLayoutInfo( new DockLayout<Object>( factoryId, data ) );
    layout.setPlaceholder( placeholder );
  layout = new DockLayoutInfo( element );
  layout.setPlaceholder( placeholder );
origin: xyz.cofe/docking-frames-core

@Override
protected DockLayoutInfo fillMissing( DockLayoutInfo info ) {
  DockLayout<?> layout = info.getDataLayout();
  if( KNOWN.equals( layout.getFactoryID() )){
    PredefinedLayout preloaded = (PredefinedLayout)layout.getData();
    DockLayoutInfo delegate = preloaded.getDelegate();
    DockLayoutInfo newDelegate = null;
    if( delegate.getKind() == DockLayoutInfo.Data.BYTE ){
      newDelegate = fillMissingStream( preloaded );
    }
    else if( delegate.getKind() == DockLayoutInfo.Data.XML ){
      newDelegate = fillMissingXML( preloaded );
    }
    if( newDelegate != null ){
      info = new DockLayoutInfo( new DockLayout<PredefinedLayout>( 
          KNOWN, new PredefinedLayout( preloaded.getPredefined(), newDelegate )));
    }
  }
  return info;
}

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

@Override
protected DockLayoutInfo fillMissing( DockLayoutInfo info ) {
  DockLayout<?> layout = info.getDataLayout();
  if( KNOWN.equals( layout.getFactoryID() )){
    PredefinedLayout preloaded = (PredefinedLayout)layout.getData();
    DockLayoutInfo delegate = preloaded.getDelegate();
    DockLayoutInfo newDelegate = null;
    if( delegate.getKind() == DockLayoutInfo.Data.BYTE ){
      newDelegate = fillMissingStream( preloaded );
    }
    else if( delegate.getKind() == DockLayoutInfo.Data.XML ){
      newDelegate = fillMissingXML( preloaded );
    }
    if( newDelegate != null ){
      info = new DockLayoutInfo( new DockLayout<PredefinedLayout>( 
          KNOWN, new PredefinedLayout( preloaded.getPredefined(), newDelegate )));
    }
  }
  return info;
}

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

/**
 * Tries to read the xml data in <code>layout</code>.
 * @param layout the layout to read
 * @return either a new info or <code>null</code> if the data could
 * not be read
 */
@SuppressWarnings("unchecked")
private DockLayoutInfo fillMissingXML( PredefinedLayout layout ){
  XElement xdelegate = layout.getDelegate().getDataXML();
  String factoryId = xdelegate.getString( "id" );
  Object delegate = null;
  DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId );
  if( factory == null ){
    DockFactory<?,?,BackupFactoryData<?>> backup = getBackup( factoryId );
    if( backup != null ){
      BackupFactoryData<Object> data = (BackupFactoryData<Object>)backup.read( xdelegate, getPlaceholderStrategy() );
      if( data != null )
        delegate = data.getData();
    }
  }
  else{
    delegate = factory.read( xdelegate, getPlaceholderStrategy() );
  }
  if( delegate == null ){
    return null;
  }
  
  return new DockLayoutInfo( new DockLayout<Object>( factoryId, delegate ) );
}

origin: xyz.cofe/docking-frames-core

/**
 * Tries to read the xml data in <code>layout</code>.
 * @param layout the layout to read
 * @return either a new info or <code>null</code> if the data could
 * not be read
 */
@SuppressWarnings("unchecked")
private DockLayoutInfo fillMissingXML( PredefinedLayout layout ){
  XElement xdelegate = layout.getDelegate().getDataXML();
  String factoryId = xdelegate.getString( "id" );
  Object delegate = null;
  DockFactory<DockElement,?,Object> factory = (DockFactory<DockElement,?,Object>)getFactory( factoryId );
  if( factory == null ){
    DockFactory<?,?,BackupFactoryData<?>> backup = getBackup( factoryId );
    if( backup != null ){
      BackupFactoryData<Object> data = (BackupFactoryData<Object>)backup.read( xdelegate, getPlaceholderStrategy() );
      if( data != null )
        delegate = data.getData();
    }
  }
  else{
    delegate = factory.read( xdelegate, getPlaceholderStrategy() );
  }
  if( delegate == null ){
    return null;
  }
  
  return new DockLayoutInfo( new DockLayout<Object>( factoryId, delegate ) );
}

bibliothek.gui.dock.layoutDockLayoutInfo<init>

Javadoc

Creates a new info.

Popular methods of DockLayoutInfo

  • setLocation
    Sets the location of the Dockable ,represented by this info, on its parent station.
  • getDataByte
    Gets the data of this info as byte array.
  • getDataLayout
    Gets the data of this info as DockLayout.
  • getDataXML
    Gets the data of this info formated as xml.
  • getKind
    Tells what kind of information can be found in this info.
  • getLocation
    Gets the location of of the Dockable on its parent station.
  • setData
    Sets the information of this info. The object data must either be null, or an instance of XElement,b
  • getPlaceholder
    Gets the representation of this element as placeholder.
  • setPlaceholder
    Sets a placeholder which represents this element.

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • Socket (java.net)
    Provides a client-side TCP socket.
  • Path (java.nio.file)
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • ZipFile (java.util.zip)
    This class provides random read access to a zip file. You pay more to read the zip file's central di
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top Sublime Text 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