Package bibliothek.gui.dock.facile.mode

Examples of bibliothek.gui.dock.facile.mode.MaximizedModeArea


    return new CMaximizedModePerspective();
  }
 
  @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 ){
View Full Code Here


                 
                    if( last != null && secondLast != null ){
                      if( normalModeIdentifier().equals( secondLast.getUniqueIdentifier() ) &&
                          MaximizedMode.IDENTIFIER.equals( last.getUniqueIdentifier() )){
                       
                        MaximizedModeArea area = maximizedMode.get( location.getRoot() );
                       
                            if( area == this ){
                                area.setMaximized( dockable, false, null, event.getAffected() );
                                event.done(true);
                                return null;
                            }
                        }
                    }
                }
            }
        }
     
          // if the element is about to become a child of this station, ensure
          // this station does not show a maximized element
          if( location != null && getMaximized() != null ){
            Map<ExtendedMode, DockStation> roots = manager.getRepresentations( location.getRoot() );
            for( DockStation station : roots.values() ){
              if( DockUtilities.isAncestor( getStation(), station )){
                maximizedMode.unmaximize( this, event.getAffected() )
                break;
              }
            }
          }
         
          // if this station currently shows dockable as maximized element, ensure it is no longer maximized
      if( maximizedMode != null && event.getMode().getUniqueIdentifier().equals( normalModeIdentifier() )){
        MaximizedModeArea area = maximizedMode.getMaximizeArea( dockable );
        if( area == this ){
          maximizedMode.unmaximize( dockable, event.getAffected() );
        }
      }
         
View Full Code Here

        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 ){
              dockable = maximizedMode.getMaximizingElement( dockable );
             
              area.setMaximized( dockable, false, null, event.getAffected() );
              event.done(true);
              return null;
                    }
                }
            }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.facile.mode.MaximizedModeArea

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.