Package bibliothek.gui

Examples of bibliothek.gui.Dockable


  public CDockable[] getHistory(){
    FocusHistory history = control.getController().getFocusHistory();
    List<CDockable> result = new ArrayList<CDockable>();
    Dockable[] dockables = history.getHistory();
    for( int i = dockables.length-1; i >= 0; i-- ){
      Dockable dockable = dockables[i];
      if( dockable instanceof CommonDockable ){
        CDockable cdockable = ((CommonDockable)dockable).getDockable();
        result.add( cdockable );
      }
    }
View Full Code Here


      }
      return false;
    }
   
    private void cleanFullscreen( AffectedSet set ){
      Dockable fullscreen = getStation().getFullScreen();
      if( fullscreen != null ){
        maximal.setMaximized( fullscreen, false, null, set );
      }
    }
View Full Code Here

    public Runnable onApply( LocationModeEvent event ){
      if( event.isDone() )
        return null;
     
      Location location = event.getLocation();
          Dockable dockable = event.getDockable();
         
      DockableProperty property = location == null ? null : location.getLocation();
     
      if( event.getMode().getUniqueIdentifier().equals( normalModeIdentifier() )){
        // try to set the mode prematurely
View Full Code Here

    public boolean respectWorkingAreas(){
      return false;
    }
   
    public Dockable[] getMaximized(){
      Dockable dockable = getStation().getFullScreen();
      if( dockable == null ){
        return null;
      }
      return new Dockable[]{ dockable };
    }
View Full Code Here

        }
    }
   
    @Override
    protected CDockable getDockable( DockColor observer ) {
        Dockable dockable = ((TabColor)observer).getDockable();
        if( dockable instanceof CommonDockable )
            return ((CommonDockable)dockable).getDockable();
       
        return null;
    }
View Full Code Here

    public Runnable onApply( LocationModeEvent event ) {
      if( event.isDone() )
        return null;
     
      Location location = event.getLocation();
          Dockable dockable = event.getDockable();
     
      if( event.getMode().getUniqueIdentifier().equals( ExternalizedMode.IDENTIFIER )){
        CLocationMode last = manager.getCurrentMode( dockable );
        CLocationMode secondLast = manager.getPreviousMode( dockable );
View Full Code Here

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

        return color;
    }

    @Override
    protected CDockable getDockable( DockColor observer ) {
        Dockable dockable = ((TitleColor)observer).getTitle().getDockable();
        if( dockable instanceof CommonDockable )
            return ((CommonDockable)dockable).getDockable();
       
        return null;
    }
View Full Code Here

   
    public void handleResizeRequest( CControl control ) {
        boolean horizontal = station.getDirection() == Direction.SOUTH || station.getDirection() == Direction.NORTH;
       
        for( int i = 0, n = station.getDockableCount(); i<n; i++ ){
            Dockable dockable = station.getDockable( i );
            RequestDimension size = getAndClearResizeRequest( dockable );
            if( size != null ){
                if( horizontal ){
                    if( size.isWidthSet() ){
                        station.setWindowSize( dockable, size.getWidth() );
View Full Code Here

        return color;
    }

    @Override
    protected CDockable getDockable( DockColor observer ) {
        Dockable dockable = ((TitleColor)observer).getTitle().getDockable();
        if( dockable instanceof CommonDockable )
            return ((CommonDockable)dockable).getDockable();
       
        return null;
    }
View Full Code Here

TOP

Related Classes of bibliothek.gui.Dockable

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.