Package bibliothek.gui.dock.layout

Examples of bibliothek.gui.dock.layout.DockableProperty


        if( location != null ){
          String root = location.findRoot();
          if( root == null )
              throw new IllegalArgumentException( "the location is not sufficient to find the root station" );
         
          DockableProperty property = location.findProperty();
          if( property == null )
              throw new IllegalArgumentException( "the location does not carry enough information to find the location of dockable" );
         
          ExtendedMode locationMode = location.findMode();
          if( locationMode == null ){
View Full Code Here


            }
            if( location == null ){
              if( frontend.hasLocation( dockable.intern() )){
                FrontendEntry entry = frontend.getFrontendEntry( dockable.intern() );
                String root = entry.getRoot();
                DockableProperty property = entry.getLocation();
               
                CStation<?> station = getStation( root );
                if( station != null ){
                  if( noBackwardsTransformation ){
                      return null;
View Full Code Here

    if( property == null ){
      return null;
    }
   
    property = property.copy();
    DockableProperty last = property;
    while( last.getSuccessor() != null ){
      last = last.getSuccessor();
    }
    if( last instanceof StackDockProperty ){
      ((StackDockProperty)last).setIndex( ((StackDockProperty)last).getIndex() + delta );
    }
    else{
      StackDockProperty stack = new StackDockProperty( delta );
      last.setSuccessor( stack );
    }
    return property;
  }
View Full Code Here

            }
          }
          if( dockable != null ){
            XElement xlocation = xdockable.getElement( "location" );
            String locationRoot = xlocation.getString( "root" );
            DockableProperty location = transformer.readXML( xlocation );
            Path mode = new Path( xlocation.getString( "mode" ));
           
            ExtendedMode extendedMode = perspective.getLocationManager().getMode( mode );
            if( extendedMode != null ){
              dockable.getLocationHistory().add( extendedMode, new Location( mode, locationRoot, location ) );
View Full Code Here

                }   
            }
           
            String locationRoot = in.readUTF();
            String modeId = in.readUTF();
            DockableProperty location = transformer.read( in );
           
            if( dockable != null ){
              Path mode = new Path( modeId );
             
              ExtendedMode extendedMode = perspective.getLocationManager().getMode( mode );
View Full Code Here

        if( composition != null ){
          PerspectiveElement element = conversion.convert( composition );
          if( element instanceof CommonElementPerspective ){
            CDockablePerspective dockable = ((CommonElementPerspective)element).getElement().asDockable();
            if( dockable != null ){
              DockableProperty location = setting.getInvisibleLocation( i );
              String root = setting.getInvisibleRoot( i );
             
              ExtendedMode mode = cperspective.getLocationManager().getMode( root, location );
              if( mode != null ){
                dockable.getLocationHistory().add( mode, new Location( mode.getModeIdentifier(), root, location ) );
View Full Code Here

    }
    ExtendedMode mode = getMode( dockable );
    if( mode == null ){
      return null;
    }
    DockableProperty location = DockUtilities.getPropertyChain( root.intern().asStation(), dockable );
    if( location == null ){
      return null;
    }
    return new Location( mode.getModeIdentifier(), root.getUniqueId(), location );
  }
View Full Code Here

    this.location = location;
  }
 

  public CLocation getCLocation( Dockable dockable ){
    DockableProperty property = DockUtilities.getPropertyChain( getStation(), dockable );
    return location.expandProperty( getStation().getController(), property );
  }
View Full Code Here

    DockableProperty property = DockUtilities.getPropertyChain( getStation(), dockable );
    return location.expandProperty( getStation().getController(), property );
  }
 
  public CLocation getCLocation( Dockable dockable, Location location ){
    DockableProperty property = location.getLocation();
    if( property == null )
      return this.location;
   
    return this.location.expandProperty( getStation().getController(), property );
  }
View Full Code Here

        maximal.setMaximized( fullscreen, false, null, set );
      }
    }
   
    public CLocation getCLocation( Dockable dockable ){
      DockableProperty property = DockUtilities.getPropertyChain( getStation(), dockable );
      return station.getStationLocation().expandProperty( station.getStation().getController(), property );
    }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.layout.DockableProperty

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.