Package org.uengine.processdesigner

Examples of org.uengine.processdesigner.ArrowLabel


    innerPanel.setBorder(BorderFactory.createEmptyBorder(10,0,20,0));

    centerPanel = new ProxyPanel(new FlowLayout(FlowLayout.CENTER, 0, 0));
    innerPanel.add(centerPanel);
   
    innerPanel.add(new ArrowLabel(){       
      public void onDropped() {
        setSelected(false);
        //TODO: change to use the standard drag&drop framework
        Vector selectedComps = ActivityDesignerListener.getSelectedComponents();
        if(selectedComps!=null){
View Full Code Here


      };
      //innerHolder.setAlwaysDrawRegion(true);
      innerHolder.setText("drop here");
     
      firstPlaceHolder.setLayout(new BorderLayout(0, 0));
      firstPlaceHolder.add("West", new ArrowLabel());
      firstPlaceHolder.add("Center", innerHolder);
      firstPlaceHolder.add("East", new ArrowLabel());
      this.firstPlaceHolder = firstPlaceHolder;
    }
   
    ProxyPanel secondPlaceHolder = new ProxyPanel();{
      secondPlaceHolder.setLayout(new BorderLayout(0, 0));
      secondPlaceHolder.add("West", new ArrowLabel());
     
      ProxyPanel innerPanel = new ProxyPanel(new BorderLayout(0,0));
      innerPanel.add("Center", new HorizontalSeparator());
     
/*      if(this instanceof SwitchActivityDesigner){
        innerPanel.add("West", new JLabel("otherwise"));
      }
*/     
      secondPlaceHolder.add("Center", innerPanel);
      secondPlaceHolder.add("East", new ArrowLabel());
      this.secondPlaceHolder = secondPlaceHolder;
    }
   
    add("Center", centerPanel);
//    add(new Separator(!isVertical));
View Full Code Here

          }
        }
      });
    }

    ArrowLabel startArrowLabel = new ArrowLabel() {
      public void onDropped() {
        Vector selectedComps = ActivityDesignerListener
            .getSelectedComponents();
        if (selectedComps != null) {

          if (designer instanceof SequenceActivityDesigner) {
            ((SequenceActivityDesigner) designer)
                .insertActivityDesigners(selectedComps, 0);
          } else {
            // ActivityDesigner droppingActivity =
            // ((ActivityDesigner)selectedComps.elementAt(0));
            SequenceActivity wrapperActivity = new SequenceActivity();
            SequenceActivityDesigner wrapperActivityDesigner =
              (SequenceActivityDesigner) wrapperActivity.createDesigner();

            wrapperActivityDesigner.onDropped(selectedComps);

            int where = designer.getParentDesigner().indexOf(
                designer);
            Vector compBag = new Vector();
            compBag.add(designer);
            wrapperActivityDesigner.onDropped(compBag);

            selectedComps = new Vector();
            selectedComps.add(wrapperActivityDesigner);
            insertActivityDesigners(selectedComps, where);
          }
        }
        setSelected(false);
      }
    };
    ArrowLabel endArrowLabel = new ArrowLabel() {
      public void onDropped() {
        Vector selectedComps = ActivityDesignerListener
            .getSelectedComponents();
        if (selectedComps != null) {
View Full Code Here

TOP

Related Classes of org.uengine.processdesigner.ArrowLabel

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.