Examples of canDrag()


Examples of bibliothek.gui.DockStation.canDrag()

      if( parent == null )
        return false;
     
      int count = station.getDockableCount();
      if( count == 0 )
        return parent.canDrag( dockable );
      if( count == 1 ){
        return parent.canReplace( dockable, station.getDockable( 0 ) ) &&
              parent.accept( station.getDockable( 0 )) &&
              station.getDockable( 0 ).accept( parent ) &&
              station.canDrag( station.getDockable( 0 ));
View Full Code Here

Examples of bibliothek.gui.DockStation.canDrag()

          throw new IllegalArgumentException( "dockable is not a station" );
       
        DockStation parent = dockable.getDockParent();
        if( parent != null ){
          if( station.getDockableCount() == 0 ){
              if( parent.canDrag( station.asDockable() ))
                  parent.drag( station.asDockable());
          }
          else{
              if( parent.canReplace( station.asDockable(), station.getDockable( 0 ) ) &&
                      parent.accept( station.getDockable( 0 )) &&
View Full Code Here

Examples of bibliothek.gui.DockStation.canDrag()

        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" );
View Full Code Here

Examples of bibliothek.gui.DockStation.canDrag()

        }
        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
TOP
Copyright © 2018 www.massapi.com. 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.