Package bibliothek.gui

Examples of bibliothek.gui.DockStation.drag()


      else{
        SplitDockStation station = getStation();
        if( station.getDockableCount() == 0 ){
          DockStation parent = station.getDockParent();
          if( parent != null ){
            parent.drag( station );
          }
          control.removeDockable( this );
          control.removeStation( this );
        }
      }
View Full Code Here


       
        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 )) &&
                      station.getDockable( 0 ).accept( parent ) &&
View Full Code Here

     * @param dockable The {@link Dockable} to close
     */
    protected void close( Dockable dockable ){
        DockStation parent = dockable.getDockParent();
        if( parent != null )
            parent.drag( dockable );
    }
}
View Full Code Here

            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 );
        }
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.