Package bibliothek.gui.dock

Examples of bibliothek.gui.dock.ScreenDockStation


    public LocationMode getUnmaximizedMode(){
      return externalMode;
    }

    public void setMaximized( Dockable dockable, boolean maximized, Location history, AffectedSet set ){
      ScreenDockStation station = getStation();
      DockStation parent = dockable.getDockParent();
     
      if( maximized ){
        if( parent == station ){
          station.setFullscreen( dockable, true );
        }
        else{
          Dockable child = DockUtilities.getDirectChild( station, dockable );
          if( child == null ){
            throw new IllegalArgumentException( "dockable not a child of this station" );
          }
          if( !parent.canDrag( dockable )){
            throw new IllegalArgumentException( "cannot drag dockable from its parent" );
          }
          parent.drag( dockable );
          if( !station.drop( dockable, child ) ){
            throw new IllegalStateException( "cannot drop dockable on this station" );
          }
          station.setFullscreen( dockable, true );
        }
      }
      else{
        if( parent == station ){
          station.setFullscreen( dockable, false );
        }
        else{
          Dockable child = DockUtilities.getDirectChild( station, dockable );
          ScreenDockProperty location = station.getLocation( child, dockable );
         
          if( !parent.canDrag( dockable )){
            throw new IllegalArgumentException( "cannot drag dockable from its current parent" );
          }
          location.setFullscreen( false );
          if( !station.drop( dockable, location, true )){
            throw new IllegalStateException( "could not drop dockable on this station" );
          }
        }
      }
    }
View Full Code Here


    public String getUniqueId() {
      return station.getUniqueId();
    }

    public boolean isChild( Dockable dockable ) {
      ScreenDockStation station = getStation();
      return dockable.getDockParent() == station && station.isFullscreen( dockable );
    }
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.ScreenDockStation

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.