Examples of OpenEvent


Examples of org.openbp.guiclient.event.OpenEvent

          qualifier.setItemType(ItemTypes.PROCESS);

          // First, make sure the process the new current position refers to is loaded
          ModelQualifier processQualifier = new ModelQualifier(qualifier);
          processQualifier.setObjectPath(null);
          StackTracePlugin.this.fireEvent(new OpenEvent(StackTracePlugin.this, "open.modeler", processQualifier));

          // Now select the current position
          QualifierEvent event = new QualifierEvent(StackTracePlugin.this, "modeler.view.select", qualifier);
          StackTracePlugin.this.fireEvent(event);
          StackTracePlugin.this.fireEvent(event);
View Full Code Here

Examples of org.openbp.guiclient.event.OpenEvent

        else
        {
          object = event.getObject();
        }

        OpenEvent oe = null;
        String mimeType = openEventInfo [0].getMimeType();
        if (mimeType.startsWith("text/") && (underlyingObject instanceof Item))
        {
          FileOpenEvent foe = new FileOpenEvent(AssociationPlugin.this, openEventInfo [0].getEventName(), (String) object, new String [] { openEventInfo [0].getMimeType() });

          foe.setUnderlyingObject(underlyingObject);
          foe.setReadonly(readOnly);
          foe.setCreate(true);

          if (event instanceof FileOpenEvent)
          {
            foe.setColumnNumber(((FileOpenEvent) event).getColumnNumber());
            foe.setLineNumber(((FileOpenEvent) event).getLineNumber());
          }

          oe = foe;
        }
        else
        {
          oe = new OpenEvent(AssociationPlugin.this, openEventInfo [0].getEventName(), object);

          oe.setUnderlyingObject(underlyingObject);
          oe.setReadonly(readOnly);
          oe.setCreate(true);
          oe.setMimeTypes(new String [] { openEventInfo [0].getMimeType() });
        }

        if (fireEvent(oe))
          return EventModule.EVENT_HANDLED;
      }
View Full Code Here

Examples of org.openbp.guiclient.event.OpenEvent

     * @param ae Event
     */
    public void actionPerformed(ActionEvent ae)
    {
      // Broadcast the open event we have determined for this object
      OpenEvent oe = new OpenEvent(AssociationPlugin.this, openEventInfo.getEventName(), association.getAssociatedObject());
      oe.setUnderlyingObject(association.getUnderlyingObject());
      oe.setReadonly(readOnly);
      oe.setCreate(true);
      oe.setMimeTypes(new String [] { openEventInfo.getMimeType() });

      fireEvent(oe);
    }
View Full Code Here

Examples of org.openbp.guiclient.event.OpenEvent

    {
      // First, make sure the process the new current position refers to is loaded
      ModelQualifier processQualifier = new ModelQualifier(newPos);
      processQualifier.setItemType(ItemTypes.PROCESS);
      processQualifier.setObjectPath(null);
      fireEvent(new OpenEvent(DebuggerPlugin.this, "open.modeler", processQualifier));

      // Invalidate the new current position (will display the current position marker)
      // This will also enforce a rebuild of the content of a tag.
      fireEvent(new QualifierEvent(DebuggerPlugin.this, "modeler.view.invalidate", newPos));
View Full Code Here

Examples of org.openbp.guiclient.event.OpenEvent

    if (step)
    {
      // If we are debugging the process or we are using the internal browser,
      // we have to open the process in the modeler first
      ModelQualifier processQualifier = initialNode.getProcess().getQualifier();
      fireEvent(new OpenEvent(this, "open.modeler", processQualifier));
    }

    // The open.modeler event will be processed asynchonously,
    // so we will also put the request to the web browser to display the URL in the event queue,
    // or otherwise the internal web browser, which resides in the Modeler, will not be instantiated yet
View Full Code Here

Examples of org.zkoss.zk.ui.event.OpenEvent

   * it also handles onOpen.
   */
  public void service(org.zkoss.zk.au.AuRequest request, boolean everError) {
    final String cmd = request.getCommand();
    if (cmd.equals(Events.ON_OPEN)) {
      OpenEvent evt = OpenEvent.getOpenEvent(request);
      _open = evt.isOpen();
      Events.postEvent(evt);
    } else
      super.service(request, everError);
  }
View Full Code Here

Examples of org.zkoss.zk.ui.event.OpenEvent

        private void expandWhenOpened(final TaskContainer taskBean,
                Treeitem item) {
            item.addEventListener("onOpen", new EventListener() {
                @Override
                public void onEvent(Event event) {
                    OpenEvent openEvent = (OpenEvent) event;
                    taskBean.setExpanded(openEvent.isOpen());
                }
            });
        }
View Full Code Here

Examples of org.zkoss.zk.ui.event.OpenEvent

        Menupopup result = new Menupopup();
        result.addEventListener("onOpen", new EventListener() {

            @Override
            public void onEvent(Event event) {
                OpenEvent openEvent = (OpenEvent) event;
                referenced = (T) openEvent.getReference();
            }
        });
        for (final Item item : items) {
            if (!item.name.equals("separator")) {
                Menuitem menuItem = item.createMenuItem();
View Full Code Here

Examples of org.zkoss.zk.ui.event.OpenEvent

            private void addExpandedListener(final Treeitem item,
                    final LoadTimeLine line) {
                item.addEventListener("onOpen", new EventListener() {
                    @Override
                    public void onEvent(Event event) {
                        OpenEvent openEvent = (OpenEvent) event;
                        if (openEvent.isOpen()) {
                            List<LoadTimeLine> closed = calculatedClosedItems(item);
                            expand(line, closed);
                        } else {
                            collapse(line);
                        }
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.