Package org.openbp.jaspira.plugin

Examples of org.openbp.jaspira.plugin.Plugin


      {
        JComponent comp = (JComponent) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);

        if (column == 0)
        {
          Plugin plugin = (Plugin) value;
          JLabel label = (JLabel) comp;
          label.setIcon((plugin.getIcon()).getIcon(MultiIcon.SMALL));
          label.setText(plugin.getTitle());
        }
        return comp;
      }
    });
View Full Code Here


      for (int i = 0; i < row; i++)
      {
        it.next();
      }

      Plugin plugin = (Plugin) it.next();

      switch (column)
      {
      case 0:
        return plugin;

      case 1:
        return plugin.getDescription();

      default:
        return plugin.getUniqueId().substring(plugin.getClassName().length() + 1);
      }
    }
View Full Code Here

   */
  public void actionPerformed(ActionEvent ae)
  {
    if (type.equals(TYPE_ACTION) || type.equals(TYPE_COMBO))
    {
      Plugin focusedPlugin = PluginFocusMgr.getInstance().getFocusedPlugin();

      if (focusedPlugin != null)
      {
        focusedPlugin.fireEvent(new JaspiraActionEvent(focusedPlugin, getName(), ae, scope));
      }
      else
      {
        JaspiraEventMgr.fireGlobalEvent(new JaspiraActionEvent(null, getName(), ae, scope));
      }
View Full Code Here

  {
    dispose();

    if (returnPageId != null)
    {
      Plugin page = PluginMgr.getInstance().getPlugin(returnPageId);

      if (page != null)
      {
        // Use the panel of the plugin as holder again
        plugin.setPluginHolder(plugin.getPluginPanel());
View Full Code Here

    {
      currentTree = tree;

      KeySequence sequence = tree.getSequence();

      Plugin plugin = PluginFocusMgr.getInstance().getFocusedPlugin();
      if (plugin == null)
      {
        plugin = ApplicationBase.getInstance();
      }

      // First, fire the key event bottom up starting from the current plugin
      KeySequenceEvent event = new KeySequenceEvent(plugin, sequence, JaspiraEvent.TYPE_BOTTOM_UP);
      plugin.fireEvent(event);

      if (!event.isConsumed())
      {
        // None cared, broadcast the event application-wide
        event = new KeySequenceEvent(plugin, sequence, JaspiraEvent.TYPE_FLOOD);
        plugin.fireEvent(event);
      }

      if (currentTree.hasChildren())
      {
        // Set up the time that reset the current key sequence
View Full Code Here

  {
    dispose();

    if (returnPageId != null)
    {
      Plugin page = PluginMgr.getInstance().getPlugin(returnPageId);

      if (page != null)
      {
        // Use the panel of the plugin as holder again
        plugin.setPluginHolder(plugin.getPluginPanel());
View Full Code Here

   * Returns a list containing the currently visible plugin.
   * @return A list of {@link VisiblePlugin} objects or null
   */
  public List getVisiblePlugins()
  {
    Plugin p = getSelectedPlugin();
    if (p != null)
    {
      ArrayList l = new ArrayList(1);
      l.add(p);
      return l;
View Full Code Here

TOP

Related Classes of org.openbp.jaspira.plugin.Plugin

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.