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

                    new String[]{ DockFont.ID_TITLE_ACTIVE, DockFont.ID_TITLE_INACTIVE });
        }
       
        @Override
        protected CDockable getDockable( DockFont observer ) {
            Dockable dockable = ((TitleFont)observer).getTitle().getDockable();
            if( dockable instanceof CommonDockable ){
                return ((CommonDockable)dockable).getDockable();
            }
            return null;
        }
    View Full Code Here

    Examples of bibliothek.gui.Dockable

                    new String[]{ DockFont.ID_TAB_FOCUSED, DockFont.ID_TAB_SELECTED, DockFont.ID_TAB_UNSELECTED });
        }
       
        @Override
        protected CDockable getDockable( DockFont observer ) {
            Dockable dockable = ((TabFont)observer).getDockable();
            if( dockable instanceof CommonDockable ){
                return ((CommonDockable)dockable).getDockable();
            }
            return null;
        }
    View Full Code Here

    Examples of bibliothek.gui.Dockable

                    new String[]{ DockFont.ID_TAB_FOCUSED, DockFont.ID_TAB_SELECTED, DockFont.ID_TAB_UNSELECTED });
        }

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

    Examples of bibliothek.gui.Dockable

      @Override
      protected Set<Dockable> estimateVisible( DockFrontendInternals frontend, DockSituation situation, DockLayoutComposition layout ){
            if( situation instanceof PredefinedDockSituation ){
                Set<Dockable> allDockables = new HashSet<Dockable>();
                for( DockInfo info : frontend.getDockables() ){
                  Dockable dockable = info.getDockable();
                  if( dockable != null ){
                    allDockables.add( dockable );
                  }
                }
                for( MultipleCDockable dockable : control.getRegister().getMultipleDockables() ){
                  allDockables.add( dockable.intern() );
                }
               
                PredefinedDockSituation predefined = (PredefinedDockSituation)situation;
                Set<Dockable> visible = predefined.listVisible( allDockables, layout );
               
    View Full Code Here

    Examples of bibliothek.gui.Dockable

        this.control = control;
        this.callback = callback;
      }

      private FocusVeto veto( Dockable dockable ){
        Dockable current = control.intern().getController().getFocusedDockable();
       
        if( current != dockable ){
          if( current instanceof CommonDockable ){
            if( !callback.willLoseFocus( ((CommonDockable)current).getDockable() ))
              return FocusVeto.VETO;
    View Full Code Here

    Examples of bibliothek.gui.Dockable

            CStation<?> cstation = ((CommonDockStation<?, ?>)parent).getStation();
            if( cstation.isWorkingArea() ){
              return cstation;
            }
          }
          Dockable child = parent.asDockable();
          parent = child == null ? null : child.getDockParent();
        }
        return null;
      }
    View Full Code Here

    Examples of bibliothek.gui.Dockable

           
            frontend.getController().getFocusController().addVetoListener( new ControlVetoFocusListener( this, listenerCollection.getVetoFocusListener() ) );
            frontend.getController().getFocusController().setStrategy( new DefaultFocusStrategy( frontend.getController() ){
              public Component getFocusComponent( FocusStrategyRequest request ){
                Component mouseClicked = request.getMouseClicked();
                Dockable dockable = request.getDockable();
               
            if( mouseClicked != null ){
              if( (mouseClicked.isFocusable() && !excluded( mouseClicked, request )) || focusable( mouseClicked, request )){
                return mouseClicked;
              }
    View Full Code Here

    Examples of bibliothek.gui.Dockable

         * @param controller the controller which will be observed
         */
        private void initFocusListeners( DockController controller ){
            controller.addDockableFocusListener( new DockableFocusListener(){
                public void dockableFocused( DockableFocusEvent event ) {
                    Dockable oldFocused = event.getOldFocusOwner();
                    Dockable newFocused = event.getNewFocusOwner();

                    if( oldFocused != null && oldFocused instanceof CommonDockable ){
                        CDockable oldC = ((CommonDockable)oldFocused).getDockable();
                        CDockableAccess access = accesses.get( oldC );
                        if( access != null ){
    View Full Code Here

    Examples of bibliothek.gui.Dockable

            public void extendedModeChanged( CDockable dockable, ExtendedMode mode ){
              if( transferFocusOnMinimize ){
                if( mode == ExtendedMode.MINIMIZED ){
                  Dockable[] history = getController().getFocusHistory().getHistory();
                  for( int i = history.length-1; i >= 0; i-- ){
                    Dockable next = history[i];
                    if( next instanceof CommonDockable ){
                      CDockable cdockable = ((CommonDockable)next).getDockable();
                      if( cdockable.getExtendedMode() != ExtendedMode.MINIMIZED ){
                        getController().setFocusedDockable( cdockable.intern(), true );
                      }
    View Full Code Here

    Examples of bibliothek.gui.Dockable

         * @return the currently focused {@link CDockable}, can be <code>null</code>
         * @see #addFocusListener(CFocusListener)
         * @see DockController#getFocusedDockable()
         */
        public CDockable getFocusedCDockable(){
          Dockable focused = getController().getFocusedDockable();
          if( focused instanceof CommonDockable ){
            return ((CommonDockable)focused).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.