Examples of JaspiraEvent


Examples of org.openbp.jaspira.event.JaspiraEvent

   *    true  If the event was consumed by a plugin<br>
   *    false  Otherwise
   */
  public boolean fireEvent(String eventName)
  {
    return fireEvent(new JaspiraEvent(this, eventName));
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

   *    true  If the event was consumed by a plugin<br>
   *    false  Otherwise
   */
  public boolean fireEvent(String eventName, Object data)
  {
    return fireEvent(new JaspiraEvent(this, eventName, data));
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

    inheritEvent(ve);

    if (ve.isVetoed())
    {
      inheritEvent(new JaspiraEvent(this, "global.closecanceled"));
      return false;
    }

    // The event handlers of the global.doclose event will add Runnables that
    // perform the actual call to the {@link #doClose} method.
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

    {
      clearStackPerformer();

      for (Iterator it = eventStack.values().iterator(); it.hasNext();)
      {
        JaspiraEvent je = (JaspiraEvent) it.next();

        // Process the event
        doHandleEvent(je);
      }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

    fireEvent(new StatusBarTextEvent(this, getPluginResourceCollection().getRequiredString("application.loaded")));
    isInitialized = true;

    // Sometimes, the title bar of the plugin windows are missing. Force a global rebuild to prevent this.
    fireEvent(new JaspiraEvent(this, VisiblePlugin.GER, null, JaspiraEvent.TYPE_FLOOD, Plugin.LEVEL_PAGE, JaspiraEvent.STACKABLE));
  }
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

    // Trigger global.frame events when activating, deactivating or closing the frame
    frame.addWindowListener(new WindowAdapter()
    {
      public void windowClosing(WindowEvent e)
      {
        fireEvent(new JaspiraEvent((JaspiraPageContainer) e.getWindow(), "global.frame.close"));
      }

      public void windowActivated(WindowEvent e)
      {
        fireEvent(new JaspiraEvent((JaspiraPageContainer) e.getWindow(), "global.frame.activated"));
      }

      public void windowDeactivated(WindowEvent e)
      {
        fireEvent(new JaspiraEvent((JaspiraPageContainer) e.getWindow(), "global.frame.deactivated"));
      }
    });

    // Copy the icon to the frame
    MultiIcon multiIcon = getIcon();
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

    public JaspiraEventHandlerCode global_frame_close(JaspiraEvent je)
    {
      if (frames.size() == 1)
      {
        // Don't fire an event, take the short cut
        global_application_exit(new JaspiraEvent(ApplicationBase.this, "global.application.exit"));
      }
      else
      {
        // Get the frame to close
        JaspiraPageContainer source = (JaspiraPageContainer) je.getSource();
View Full Code Here

Examples of org.openbp.jaspira.event.JaspiraEvent

        String value = info.getToStringValue();
        if (value != null)
        {
          String title = info.getKey() + " (" + info.getType() + ")";
          String text = TextUtil.convertToHTML(new String [] { title, value }, true, -1, -1);
          fireEvent(new JaspiraEvent(this, "plugin.infopanel.setinfotext", text));
        }
        else
        {
          fireEvent(new JaspiraEvent(this, "plugin.infopanel.clearinfotext"));
        }
      }
    }
  }
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.