Examples of Dockable

@author Lilian Chamontin, vlsolutions. @version 1.0
  • org.flexdock.docking.Dockable
    This interface is designed to specify the API's required by {@code DockingManager} and {@code DockingPort} for dealing with dockablecomponents in a drag-n-drop fashion. A {@code Dockable} is the childcomponent that is docked into a {@code DockingPort}. @author Christopher Butler
  • org.noos.xing.mydoggy.Dockable
    This interface represents the super interface for of all dockable object, i.e. ToolWindow, ToolWindowTab and Content. @author Angelo De Caro (angelo.decaro@gmail.com) @see ToolWindow @see ToolWindowTab @see Content @since 1.4.0

  • 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

    Examples of bibliothek.gui.Dockable

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

    Examples of bibliothek.gui.Dockable

        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

    Examples of bibliothek.gui.Dockable

        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

    Examples of bibliothek.gui.Dockable

            }
        }
       
        @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

    Examples of bibliothek.gui.Dockable

        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

    Examples of bibliothek.gui.Dockable

          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

    Examples of bibliothek.gui.Dockable

            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

    Examples of bibliothek.gui.Dockable

       
        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

    Examples of bibliothek.gui.Dockable

            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
    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.