Package bibliothek.gui.dock.common.mode

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


  public ExtendedModeAcceptance( CControlAccess control ){
    this.control = control;
  }

  public boolean accept( DockStation parent, Dockable child ) {
    CLocationModeManager manager = control.getLocationManager();
      if( manager.isOnTransaction() ){
      CGroupMovement action = manager.getCurrentAction();
        if( action == null || action.forceAccept( parent, child )){
          return true;
        }
    }

    CLocationModeManager locationManager = control.getLocationManager();

    ExtendedMode mode = locationManager.childsExtendedMode( parent );

    if( mode == null ){
      // the parent is not yet known to anyone, so just hope
      // that the developer has made the correct settings, because
      // we cannot check them here.
      return true;
    }

    return locationManager.isModeAvailable( child, mode );
  }
View Full Code Here

TOP

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

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.