Package bibliothek.gui

Examples of bibliothek.gui.Dockable


     * @return the preferred location of the new child
     */
    public CLocation getDropLocation( CStation<?> station ){
      Dockable[] history = control.getOwner().getController().getFocusHistory().getHistory();
      for( int i = history.length-1; i >= 0; i-- ){
        Dockable next = history[i];
        if( next instanceof CommonDockable && next.asDockStation() != station.getStation() ){
          CDockable cnext = ((CommonDockable)next).getDockable();
         
          if( DockUtilities.isAncestor( station.getStation(), next )){
            boolean valid;
            if( station.isWorkingArea() ){
View Full Code Here


    while( parent != null ){
      CLocationMode mode = getRepresentingMode( parent );
      if( mode != null ){
        return mode.getExtendedMode();
      }
      Dockable dockable = parent.asDockable();
      if( dockable == null )
        return null;
      parent = dockable.getDockParent();
    }
   
    return null;
  }
View Full Code Here

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

        if( container != null ){
          return container;
        }
      }
     
      Dockable dockable = station.asDockable();
      if( dockable == null ){
        return null;
      }
      station = dockable.getDockParent();
      if( station == null ){
        return null;
      }     
    }
   
View Full Code Here

  }
 
  @Override
  public void setFocusedDockable( FocusRequest request ){
    if( request.getSource() != null ){
      Dockable focusedDockable = request.getSource().getElement().asDockable();
      CLocationModeManager states = owner.getLocationManager();
      if( states != null && !states.isOnTransaction() && focusedDockable != null ){
        states.ensureNotHidden( focusedDockable );
      }
    }
View Full Code Here

      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();
      }
      return null;
    }
View Full Code Here

            if( result != null ){
              return getMaximizeArea( result.getStation() );
            }
          }
        }
        Dockable temp = parent.asDockable();
        if( temp == null ){
          parent = null;
        }
        else{
          parent = temp.getDockParent();
        }
      }
    }
    return area;
  }
View Full Code Here

        // cannot move around a dockable without location
        return dockable;
      }
     
      for( int i = 0, n = parent.getDockableCount(); i<n; i++ ){
        Dockable check = parent.getDockable( i );
        if( check != dockable ){
          if( !manager.isModeAvailable( check, mode ) ){
            return dockable;
          }
        }
View Full Code Here

   
    return old;
  }
 
  public boolean shouldForwardActions( LocationModeManager<? extends LocationMode> manager, DockStation station, Dockable dockable, ExtendedMode mode ){
    Dockable dockStation = station.asDockable();
    if( dockStation != null && !manager.isModeAvailable( dockStation, mode )){
      return false;
    }
   
    for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
      Dockable child = station.getDockable( i );
      if( !manager.isModeAvailable( child, mode ) ){
        return false;
      }
    }
    return true;
View Full Code Here

                new String[]{ DockFont.ID_FLAP_BUTTON_ACTIVE, DockFont.ID_FLAP_BUTTON_INACTIVE });
    }
   
    @Override
    protected CDockable getDockable( DockFont observer ) {
        Dockable dockable = ((TitleFont)observer).getTitle().getDockable();
        if( dockable instanceof CommonDockable ){
            return ((CommonDockable)dockable).getDockable();
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of bibliothek.gui.Dockable

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.