Examples of VisiblePlugin


Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

    for (Component c = this; c != null; c = c.getParent())
    {
      if (c instanceof PluginPanel)
      {
        PluginPanel pluginPanel = (PluginPanel) c;
        VisiblePlugin plugin = pluginPanel.getPlugin();
        if (plugin != null)
        {
          // Set the focus to the plugin prior to executing the action
          plugin.focusPlugin();
        }
      }
    }

    // Save the selected text value to the action object
View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

    for (Component c = this; c != null; c = c.getParent())
    {
      if (c instanceof PluginPanel)
      {
        PluginPanel pluginPanel = (PluginPanel) c;
        VisiblePlugin plugin = pluginPanel.getPlugin();
        if (plugin != null)
        {
          // Set the focus to the plugin prior to executing the action
          plugin.focusPlugin();
        }
      }
    }

    action.actionPerformed(event);
View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

    // Initialize the initial position
    setupPosition();

    // Save the current focus
    VisiblePlugin focusedPlugin = PluginFocusMgr.getInstance().getFocusedPlugin();

    // Show the dialog
    dialog.setVisible(true);

    if (focusedPlugin != null)
    {
      // Restore the current focus
      focusedPlugin.focusPlugin();
    }

    // The the edited item and reset the item member for garbage collection
    Item ret = context.getItem();
    context = null;
View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

        plugin.setParentPlugin(null);

        // Remove plugin from the ui if visible
        if (plugin instanceof VisiblePlugin)
        {
          VisiblePlugin vp = (VisiblePlugin) plugin;
          if (vp.getPluginHolder() != null)
          {
            vp.getPluginHolder().unlinkHolder();
          }
        }

        plugin.uninstallPlugin();
View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

     * @param je Action event
     * @return EVENT_CONSUMED if the cut action was sucessfully performed, EVENT_IGNORED otherwise
     */
    public JaspiraEventHandlerCode cut(JaspiraActionEvent je)
    {
      VisiblePlugin target = PluginFocusMgr.getInstance().getFocusedPlugin();
      if (target != null && target.canCut())
      {
        ClipboardMgr.getInstance().addEntry(target.cut());

        return EVENT_CONSUMED;
      }

      return EVENT_IGNORED;
View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

     * @param je Action event
     * @return EVENT_CONSUMED if the delete action was sucessfully performed, EVENT_IGNORED otherwise
     */
    public JaspiraEventHandlerCode delete(JaspiraActionEvent je)
    {
      VisiblePlugin target = PluginFocusMgr.getInstance().getFocusedPlugin();
      if (target != null && target.canDelete())
      {
        target.delete();

        return EVENT_CONSUMED;
      }

      return EVENT_IGNORED;
View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

     * @param je Action event
     * @return EVENT_CONSUMED if the copy action was sucessfully performed, EVENT_IGNORED otherwise
     */
    public JaspiraEventHandlerCode copy(JaspiraActionEvent je)
    {
      VisiblePlugin target = PluginFocusMgr.getInstance().getFocusedPlugin();
      if (target != null && target.canCopy())
      {
        ClipboardMgr.getInstance().addEntry(target.copy());

        return EVENT_CONSUMED;
      }

      return EVENT_IGNORED;
View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

     * @param je Action event
     * @return EVENT_CONSUMED if the paste action was sucessfully performed, EVENT_IGNORED otherwise
     */
    public JaspiraEventHandlerCode paste(JaspiraActionEvent je)
    {
      VisiblePlugin target = PluginFocusMgr.getInstance().getFocusedPlugin();
      if (target != null)
      {
        Transferable transferable = ClipboardMgr.getInstance().getCurrentEntry();
        if (transferable != null && target.canPaste(transferable))
        {
          target.paste(transferable);
        }

        return EVENT_CONSUMED;
      }

View Full Code Here

Examples of org.openbp.jaspira.gui.plugin.VisiblePlugin

      boolean canCopy = false;
      boolean canCut = false;
      boolean canDelete = false;
      boolean canPaste = false;

      VisiblePlugin target = PluginFocusMgr.getInstance().getFocusedPlugin();
      if (target != null)
      {
        canCopy = target.canCopy();
        canCut = target.canCut();
        canDelete = target.canDelete();

        Transferable transferable = ClipboardMgr.getInstance().getCurrentEntry();
        if (transferable != null)
        {
          canPaste = target.canPaste(transferable);
        }
      }

      ActionMgr am = ActionMgr.getInstance();
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.