Package org.openbp.jaspira.gui.interaction

Examples of org.openbp.jaspira.gui.interaction.BasicTransferable


      {
        // Let's see if the process element behind the figure can handle this...
        ProcessElementContainer pec = (ProcessElementContainer) FigureUtil.findInnermostFigure(figure, x, y, ProcessElementContainer.class);

        // Double click means opening the item, pass to association plugin
        JaspiraEventMgr.fireGlobalEvent("plugin.association.open", new BasicTransferable(pec.getReferredProcessElement()));
      }
    }

    // Update input state
    InputState.updateStateOnMouseUpEvent(e);
View Full Code Here


        // Obtain the underlying process element (usually a ModelObject)
        Object pe = ((ProcessElementContainer) figure).getReferredProcessElement();

        transferables = new Transferable[]
        {
          new BasicTransferable(pe), new BasicTransferable(figure)
        };
      }
      else
      {
        // Broadcast a popup interaction event to construct the popup menu
        transferables = new Transferable[]
        {
          new BasicTransferable(figure)
        };
      }
    }

    if (transferables != null)
View Full Code Here

    InteractionEvent iae = null;
    try
    {
      // Broadcast an interaction event to collect the popup menu entries to display
      iae = new InteractionEvent(this, InteractionEvent.POPUP, new BasicTransferable(((LeafNode) node).getLeafData()));
      fireEvent(iae);
    }
    finally
    {
      // Reset the wait cursor
View Full Code Here

      // Simulate a DnD of the item to the currently selected model object
      Item item = getSelectedItem();

      if (item != null && !(item instanceof Model))
      {
        fireEvent("modeler.view.importtoselection", new BasicTransferable(item));
      }
    }
    else
    {
      super.handleItemTreeEvent(e);
View Full Code Here

        ProcessVariable param = (ProcessVariable) odn.getObject();

        dragImage = ItemIconMgr.getMultiIcon(ItemIconMgr.getInstance().getTypeIcon(param.getDataType(), FlexibleSize.MEDIUM));

        return new BasicTransferable(param);
      }
    }

    return null;
  }
View Full Code Here

            // Open the new process
            SwingUtilities.invokeLater(new Runnable()
            {
              public void run()
              {
                getDrawing().getEditor().fireEvent("plugin.association.open", new BasicTransferable(item));
              }
            });
          }
        }
        else if (choice == JMsgBox.TYPE_NO)
View Full Code Here

    {
      ItemTree.ItemNode itemnode = (ItemTree.ItemNode) treeNode;

      Item item = itemnode.getItem();
      dragImage = ItemIconMgr.getMultiIcon(ItemIconMgr.getInstance().getIcon(item, FlexibleSize.MEDIUM));
      return new BasicTransferable(item);
    }

    return null;
  }
View Full Code Here

      Item item = getSelectedItem();

      if (item != null && !(item instanceof Model))
      {
        // Open the item using the primary association
        fireEvent("plugin.association.open", new BasicTransferable(item));
      }
    }
  }
View Full Code Here

   *
   * @return The Foreground color as a transferable object
   */
  public Transferable getTransferable()
  {
    return new BasicTransferable(getForeground());
  }
View Full Code Here

      return;

    ObjectNode on = (ObjectNode) currentNode;
    Object o = on.getObject();

    BasicTransferable transferable = new BasicTransferable(o);
    ClipboardMgr.getInstance().addEntry(transferable);

    firePropertyBrowserEvent(new PropertyBrowserEvent(PropertyBrowserEvent.ELEMENT_COPIED, this, on));
  }
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.gui.interaction.BasicTransferable

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.