Examples of DockingActionAddDockableEvent


Examples of com.vlsolutions.swing.docking.event.DockingActionAddDockableEvent

      position = new RelativeDockablePosition(0,0.8,0.5,0.2);
    }
   
    SingleDockableContainer dockableContainer = null;
    if (relativeAncestorContainer.getComponentCount() == 0){ // empty docking panel
      return new DockingActionAddDockableEvent(desktop, dockable,
          initialState, nextState, relativeAncestorContainer);
    } else {
      // convert relative positionning to current positionning (depending
      // on the current size of dockingPanel)
      int x = (int) (position.getX() * relativeAncestorContainer.getWidth());
 
View Full Code Here

Examples of com.vlsolutions.swing.docking.event.DockingActionAddDockableEvent

 
  public static SingleDockableContainer applyDockingAction(Dockable dockable, DockingActionEvent action){
    SingleDockableContainer dockableContainer;
    switch (action.getActionType()){
      case DockingActionEvent.ACTION_ADD_DOCKABLE:
        DockingActionAddDockableEvent addAction = (DockingActionAddDockableEvent) action;
        dockableContainer = DockableContainerFactory.getFactory().
            createDockableContainer(dockable, DockableContainerFactory.ParentType.PARENT_DESKTOP);
        Container relativeAncestorContainer = addAction.getParentContainer();
        // default central insertion
        relativeAncestorContainer.add((Component)dockableContainer, BorderLayout.CENTER);
        relativeAncestorContainer.invalidate(); // 2005/05/04
        relativeAncestorContainer.validate();
        relativeAncestorContainer.repaint();
View Full Code Here

Examples of com.vlsolutions.swing.docking.event.DockingActionAddDockableEvent

    Rectangle compBounds = getBounds();
    Dockable dragged = event.getDragSource().getDockable();
    DockableState.Location initialLocation = dragged.getDockKey().getLocation();
    DockableState.Location nextLocation = dockable.getDockKey().getLocation();
   
    event.setDockingAction(new DockingActionAddDockableEvent(event.getDesktop(),
        dragged, initialLocation, nextLocation, this));
    if (drop) {
      acceptDrop(event);
    } else {
      Rectangle2D r2d = new Rectangle2D.Float(0,
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.