Package bibliothek.gui.dock.common

Examples of bibliothek.gui.dock.common.CStationContainer


    // search root
    CStation<?> rootStation = control.getStation( root );
    if( rootStation == null ){
      return null;
    }
    CStationContainer rootContainer = getContainer( rootStation );
    if( rootContainer == null ){
      return rootStation;
    }
   
    // search current container
    CStation<?> station = getParent( dockable );
    CStationContainer container = getContainer( station );
   
    if( container != null ){
      if( rootContainer == container ){
        return rootStation;
      }
      return container.getMatchingStation( rootContainer, rootStation );
    }
    else{
      List<Location> history = control.getLocationManager().getPropertyHistory( dockable );
      for( int i = history.size()-1; i >= 0; i-- ){
        String historyRoot = history.get( i ).getRoot();
        CStation<?> historyStation = control.getStation( historyRoot );
        if( historyStation != null ){
          container = getContainer( historyStation );
          if( container != null ){
            CStation<?> result = container.getMatchingStation( rootContainer, rootStation );
            if( result != null ){
              return result;
            }
          }
        }
View Full Code Here


   
    if( station != null && workingArea != null && !isValidParent( station, workingArea )){
      return workingArea;
    }
   
    CStationContainer container = getContainer( station );
    if( container != null ){
      return container.getDefaultStation( mode );
    }
   
    List<Location> history = control.getLocationManager().getPropertyHistory( dockable );
    for( int i = history.size()-1; i >= 0; i-- ){
      String historyRoot = history.get( i ).getRoot();
      CStation<?> rootStation = control.getStation( historyRoot );
      if( rootStation != null ){
        container = getContainer( rootStation );
        if( container != null ){
          CStation<?> result = container.getDefaultStation( mode );
          if( result != null && isValidParent( result, workingArea )){
            return result;
          }
        }
      }
View Full Code Here

    DockStation station = child.getStation();
   
    while( station != null ){
      if( station instanceof CommonDockStation<?,?>){
        CStation<?> next = ((CommonDockStation<?,?>)station).getStation();
        CStationContainer container = control.getRegister().getContainer( next );
        if( container != null ){
          return container;
        }
      }
     
View Full Code Here

    if( area == null ){
      DockStation parent = dockable.getDockParent();
      while( parent != null ){
        CStation<?> station = control.getStation( parent );
        if( station != null ){
          CStationContainer container = control.getRegister().getContainer( station );
          if( container != null ){
            CStation<? extends DockStation> result = container.getDefaultStation( ExtendedMode.MAXIMIZED );
            if( result != null ){
              return getMaximizeArea( result.getStation() );
            }
          }
        }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.common.CStationContainer

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.