Package bibliothek.gui.dock.support.mode

Examples of bibliothek.gui.dock.support.mode.AffectingRunnable


    if( isLayouting() )
      return false;
   
    final Single<Boolean> result = new Single<Boolean>( false );
   
    runTransaction( new AffectingRunnable() {
      public void run( AffectedSet set ){
        for( Dockable dockable : listDockables() ){
          CLocationMode current = getCurrentMode( dockable );
          if( current != null && !current.isBasicMode() ){
            List<CLocationMode> modes = getModeHistory( dockable );
View Full Code Here


   * and that are currently in a mode that does not support working-areas. The history
   * of the elements is searched for the first mode which supports working-areas. If no
   * such mode is found, then the normal-mode is applied.
   */
  public void resetWorkingAreaChildren(){
    runTransaction( new AffectingRunnable() {
      public void run( AffectedSet set ){
        for( Dockable dockable : listDockables() ){
          if( dockable instanceof CommonDockable ){
            CDockable cdockable = ((CommonDockable)dockable).getDockable();
            resetWorkingArea( cdockable, set );
View Full Code Here

            set.add( dockable );
            dockable = check;
            final Dockable element = dockable;
 
            final LocationModeManager<?> manager = getManager();
            manager.runTransaction( new AffectingRunnable() {
              public void run( AffectedSet set ){
                area.setMaximized( element, false, null, set );
 
                String key = area.getUniqueId();
                boolean done = false;
View Full Code Here

      }
    }
  }

  public void ensureNotHidden( final Dockable dockable ){
    getManager().runTransaction( new AffectingRunnable() {
      public void run( AffectedSet set ){
        Dockable mutableDockable = dockable;

        DockStation parent = mutableDockable.getDockParent();
        Dockable element = getMaximizingElement( mutableDockable );
View Full Code Here

   * @param dockable the primary {@link Dockable}, this item may very well be the new focus owner
   * @param extendedMode the expected mode <code>dockable</code> will have after <code>action</code> completed
   * @param action the action to execute
   */
  public void apply( final Dockable dockable, final ExtendedMode extendedMode, final CGroupMovement action ){
    runTransaction( new AffectingRunnable(){
      public void run( final AffectedSet set ){
        try{
          getController().getFocusController().freezeFocus();
          currentAction.add( action );
          action.apply( new CGroupBehaviorCallback(){
View Full Code Here

TOP

Related Classes of bibliothek.gui.dock.support.mode.AffectingRunnable

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.