Package bibliothek.gui

Examples of bibliothek.gui.DockStation


 
  private void resetWorkingArea( CDockable dockable, AffectedSet set ){
    if( dockable.getWorkingArea() == null )
      return;
   
    DockStation parent = dockable.intern().getDockParent();
    if( parent == null )
      return;
   
    CLocationMode current = getCurrentMode( dockable.intern() );
    if( current == null )
View Full Code Here


     * @param dockable the element which might have a {@link CStation}
     * as parent.
     * @return the first found {@link CStation}.
     */
    private CStation<?> findFirstParentWorkingArea( Dockable dockable ){
        DockStation station = dockable.getDockParent();
        dockable = station == null ? null : station.asDockable();
       
        if( dockable != null )
            return getAreaOf( dockable );
        else
            return null;
View Full Code Here

                return station;
        }
       
        Dockable check = dockable;
        while( check != null ){
            DockStation parent = check.getDockParent();
            if( parent == null )
                check = null;
            else
                check = parent.asDockable();
           
            CStation<?> station = stations.get( parent );
            if( station != null )
                return station;
        }
View Full Code Here

   * Gets the first parent {@link CStation} of <code>dockable</code>.
   * @param dockable some dockable whose parent station is searched
   * @return the parent station or <code>null</code> if not found
   */
  protected CStation<?> getParent( Dockable dockable ){
    DockStation dockStation = dockable.getDockParent();
   
    while( dockStation != null ){
      if( dockStation instanceof CommonDockStation<?,?>){
        return ((CommonDockStation<?,?>)dockStation).getStation();
      }
      if( dockStation.asDockable() == null ){
        dockStation = null;
      }
      else{
        dockStation = dockStation.asDockable().getDockParent();
      }
    }
   
    return null;
  }
View Full Code Here

   */
  protected CStationContainer getContainer( CStation<?> child ){
    if( child == null ){
      return null;
    }
    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;
        }
      }
     
      Dockable dockable = station.asDockable();
      if( dockable == null ){
        return null;
      }
      station = dockable.getDockParent();
      if( station == null ){
View Full Code Here

    public void setFocusComponent( Component component ){
    this.focusComponent = component;
  }
   
    public CStation<?> getParentStation(){
      DockStation parent = intern().getDockParent();
      while( parent != null ){
        if( parent instanceof CommonDockStation<?,?> ){
          return ((CommonDockStation<?, ?>)parent).getStation();
        }
        Dockable item = parent.asDockable();
        if( item == null ){
          return null;
        }
        parent = item.getDockParent();
      }
View Full Code Here

 
  @Override
  public MaximizedModeArea getMaximizeArea( Dockable dockable, Location history ){
    MaximizedModeArea area = super.getMaximizeArea( dockable, history );
    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() );
            }
          }
        }
        Dockable temp = parent.asDockable();
        if( temp == null ){
          parent = null;
        }
        else{
          parent = temp.getDockParent();
View Full Code Here

      DockableHandle handle = getHandle( dockable );
      if( handle != null ){
        handle.putMode( access( getCurrentMode( dockable ) ) );
      }
      if( recursive ){
        DockStation station = dockable.asDockStation();
        if( station != null ){
          for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
            refresh( station.getDockable( i ), recursive );
          }
        }
      }
    }
View Full Code Here

        return null;
      }
      if( dockables.get( target ) != null ){
        return target;
      }
      DockStation station = target.asDockStation();
      if( station == null ){
        return null;
      }
      return getDoubleClickTarget( station.getFrontDockable() );
    }
View Full Code Here

        }
       
        public void add( Dockable dockable ){
          if( dockable != null ){
              set.add( dockable );
              DockStation station = dockable.asDockStation();
              if( station != null ){
                  for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
                      add( station.getDockable( i ));
                  }
              }
          }
        }
View Full Code Here

TOP

Related Classes of bibliothek.gui.DockStation

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.