Examples of BrowserAction


Examples of hermes.browser.actions.BrowserAction

      {
         public void actionPerformed(ActionEvent e)
         {
            if (HermesBrowser.getBrowser().getDocumentPane().getActiveDocument() instanceof BrowserAction)
            {
               BrowserAction action = (BrowserAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
               action.setAutoBrowse(isSelected());

               if (isSelected())
               {
                  setToolTipText("Disable auto refresh.");
               }
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

   protected void checkEnabled(Object object)
   {
      if (object instanceof BrowserAction)
      {
         final BrowserAction browseAction = (BrowserAction) object;

         if (browseAction.isRefreshable())
         {
            setEnabled(true);
            setSelected(browseAction.isAutoBrowse());
         }
         else
         {
            setEnabled(false);
         }
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

              finalStatus.append("Committed. Message copied to ").append(destination);
            } else {
              finalStatus.append("Committed. ").append(startSize).append(" messages copied to ").append(destination);
            }
          } else if (action == TransferHandler.MOVE) {
            BrowserAction activeAction = (BrowserAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();

            HermesBrowser.getBrowser().getActionFactory()
                .createTruncateAction(activeAction.getHermes(), activeAction.getConfig(), ids, false, activeAction);
          }
        }

        notifyStatus(finalStatus.toString());
      } catch (Exception ex) {
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

   *
   * @return
   */
  public boolean isBrowseActionSelected() {
    if (browserPane.getActiveDocument() instanceof BrowserAction) {
      final BrowserAction action = (BrowserAction) browserPane.getActiveDocument();

      if (action.getSelectedMessages().size() > 0) {
        return true;
      }
    }

    return false;
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

    return new CommandBar(name);
  }

  public Hermes getHermes() {
    if (getDocumentPane().getActiveDocument() instanceof BrowserAction) {
      BrowserAction action = (BrowserAction) getDocumentPane().getActiveDocument();
      return action.getHermes();
    } else {
      return null;
    }
  }
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

    return FIXUtils.getPrettyPrinter() == null ? FIXUtils.getDefaultPrettyPrinter() : FIXUtils.getPrettyPrinter();
  }

  public Collection<Message> getSelectedMessages() {
    if (getDocumentPane().getActiveDocument() instanceof BrowserAction) {
      BrowserAction action = (BrowserAction) getDocumentPane().getActiveDocument();
      return action.getSelectedMessages();

    } else {
      return Collections.EMPTY_LIST;
    }
  }
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

  }

  protected void checkEnabled(Object object) {
    if (object instanceof BrowserAction) {
      final BrowserAction browseAction = (BrowserAction) object;

      if (checkSelection) {
        setEnabled(browseAction.hasSelection());
      } else {
        setEnabled(true);
      }

      if (checkRunning) {
        setEnabled(!browseAction.isRunning());
      }
    } else if (object instanceof BrowseContextAction) {
      setEnabled(true);
    } else {
      for (Class clazz : documentTypes) {
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

    }
  }

  protected void attachListener(Object source) {
    if (source instanceof BrowserAction) {
      BrowserAction action = (BrowserAction) source;
      action.getMessageHeaderTable().getModel().addTableModelListener(this);
    }
  }
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

    }
  }

  protected void detachListener(Object source) {
    if (source instanceof BrowserAction) {
      BrowserAction action = (BrowserAction) source;
      action.getMessageHeaderTable().getModel().removeTableModelListener(this);
    }
  }
View Full Code Here

Examples of hermes.browser.actions.BrowserAction

      if (destinationNode != null) {
        HermesTreeNode hermesNode = (HermesTreeNode) destinationNode.getHermesTreeNode();

        try {
          BrowserAction browserAction = (BrowserAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
          HermesBrowser.getBrowser().getActionFactory().createTruncateAction(hermesNode.getHermes(), destinationNode.getConfig(), browserAction);
        } catch (JMSException ex) {
          HermesBrowser.getBrowser().showErrorDialog("Cannot truncate: ", ex);
        }
      }
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.