Package bibliothek.gui.dock.common.mode

Examples of bibliothek.gui.dock.common.mode.CLocationMode


        throw new IllegalArgumentException( "dockable has another working-area as this" );
      }
      CLocationModeManager locationManager = getControl().getLocationManager();
      locationManager.setLocationAside( intern(), dockable.intern() );
     
      CLocationMode mode = locationManager.getCurrentMode( dockable.intern() );
      if( mode != null ){
        setLocation( new CExtendedModeLocation( mode.getExtendedMode() ) );
      }
    }
View Full Code Here


              register.setStalled( true );
              Map<Dockable, ExtendedMode> nonBasic = new HashMap<Dockable, ExtendedMode>();
             
              for( Dockable check : locationManager.listDockables() ){
                if( check != dockable.intern() ){
                  CLocationMode mode = locationManager.getCurrentMode( check );
                  if( mode != null && !mode.isBasicMode() ){
                    nonBasic.put( check, mode.getExtendedMode() );
                  }
                }
              }
             
              Dockable[] focusHistory = getController().getFocusHistory().getHistory();
View Full Code Here

    public LocationMode getUnmaximizedMode(){
      return getNormalMode();
    }
   
    public void prepareApply( Dockable dockable, AffectedSet affected ){
      CLocationMode normal = manager.getMode( normalModeIdentifier() );
      if( normal != null ){
        manager.apply( dockable, normal, affected, false );
      }
    }
View Full Code Here

    public void prepareApply( Dockable dockable, Location history, AffectedSet set ){
      boolean remaximize = history != null && history.getLocation() instanceof SplitDockFullScreenProperty;
     
      if( !remaximize ){
        if( manager.getMode( dockable ) != normalExtendedMode() ){
          CLocationMode normal = manager.getMode( normalModeIdentifier() );
          if( normal != null ){
            CGroupMovement movement = maximizedMode.getManager().getGroupBehavior().prepare( manager, dockable, normal.getExtendedMode() );
            if( movement != null ){
              manager.apply( dockable, normal.getExtendedMode(), movement );
            }
          }
        }
      }
    }
View Full Code Here

     
      if( event.getMode().getUniqueIdentifier().equals( normalModeIdentifier() )){
        // try to set the mode prematurely
            if( property != null ){
              if( property.getSuccessor() == null ){
                  CLocationMode last = manager.getCurrentMode( dockable );
                  CLocationMode secondLast = manager.getPreviousMode( dockable );
                 
                    if( last != null && secondLast != null ){
                      if( normalModeIdentifier().equals( secondLast.getUniqueIdentifier() ) &&
                          MaximizedMode.IDENTIFIER.equals( last.getUniqueIdentifier() )){
                       
                        MaximizedModeArea area = maximizedMode.get( location.getRoot() );
                       
                            if( area == this ){
View Full Code Here

     
      Location location = event.getLocation();
          Dockable dockable = event.getDockable();
     
      if( event.getMode().getUniqueIdentifier().equals( ExternalizedMode.IDENTIFIER )){
        CLocationMode last = manager.getCurrentMode( dockable );
        CLocationMode secondLast = manager.getPreviousMode( dockable );

        if( last != null && secondLast != null ){
          if( ExternalizedMode.IDENTIFIER.equals( secondLast.getUniqueIdentifier() ) &&
              MaximizedMode.IDENTIFIER.equals( last.getUniqueIdentifier() )){

            MaximizedModeArea area = maximizedMode.get( location.getRoot() );

            if( area == this ){
View Full Code Here

        if( extendedMode == null ){
          return true;
        }
      }
     
      CLocationMode mode = manager.getMode( extendedMode.getModeIdentifier() );
      if( mode == null )
        return true;
     
      if( !mode.respectWorkingAreas( parent ) ){
        return true;
      }
     
      CStation<?> area = searchArea( parent );
      return match( area, child );
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.common.mode.CLocationMode

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.