Package hermes.browser.components

Examples of hermes.browser.components.BrowserTree


   protected Transferable createTransferable(JComponent component)
   {
      if (component instanceof BrowserTree)
      {
         BrowserTree tree = (BrowserTree) component;

         return new HermesAdministeredObjectTransferable(tree.getSelectedAdministeredObjectNodes());

      }
      else
      {
         throw new HermesRuntimeException("cannot create transferable, JComponent " + component.getClass().getName() + " is not a BrowserTree");
View Full Code Here


   public boolean importData(JComponent comp, Transferable t)
   {
      if (comp instanceof BrowserTree)
      {
         BrowserTree browserTree = (BrowserTree) comp;

         return browserTree.doTransfer(t, TransferHandler.COPY);
      }
      else
      {
         return false;
      }
View Full Code Here

   public boolean importData(JComponent comp, Transferable t)
   {
      if (comp instanceof BrowserTree)
      {
         BrowserTree browserTree = (BrowserTree) comp;

         return browserTree.doTransfer(t, TransferHandler.COPY);
      }
      else
      {
         return false;
      }
View Full Code Here

    */
   public BrowserTreeDockableFrame() throws HermesException
   {
      super("Sessions", IconCache.getIcon("hermes.browser.tree"));

      browserTree = new BrowserTree();
     
      getContext().setInitSide(DockContext.DOCK_SIDE_WEST);
      getContext().setInitMode(DockContext.STATE_FRAMEDOCKED);     
     
      setAvailableButtons(DockableFrame.BUTTON_AUTOHIDE | DockableFrame.BUTTON_FLOATING);
View Full Code Here

   protected Transferable createTransferable(JComponent component)
   {
      if (component instanceof BrowserTree)
      {
         BrowserTree tree = (BrowserTree) component;

         return new HermesAdministeredObjectTransferable(tree.getSelectedAdministeredObjectNodes());
      }
      else
      {
         throw new HermesRuntimeException("cannot create transferable, JComponent " + component.getClass().getName() + " is not a BrowserTree");
      }
View Full Code Here

   public int getSourceActions(JComponent component)
   {
      if (component instanceof BrowserTree)
      {
         final BrowserTree tree = (BrowserTree) component;

         if (tree.getSelectedAdministeredObjectNodes().size() > 0)
         {
            return COPY;
         }
      }
      return NONE;
View Full Code Here

   public boolean canImport(JComponent comp, DataFlavor[] transferFlavors)
   {
      if (comp instanceof BrowserTree)
      {
         BrowserTree browserTree = (BrowserTree) comp;
        
         if (browserTree.getSelectionPath() != null)
         {
            // log.debug(browserTree.getSelectionPath().getLastPathComponent()) ;
         }

         return true;
View Full Code Here

   public boolean importData(JComponent comp, Transferable t)
   {
      if (comp instanceof BrowserTree)
      {
         BrowserTree browserTree = (BrowserTree) comp;

         return browserTree.doTransfer(t, TransferHandler.COPY);
      }
      else
      {
         return false;
      }
View Full Code Here

    enableOnBrowserTreeSelection(new Class[] { DestinationConfigTreeNode.class, HermesTreeNode.class }, this, true);
  }

  public void actionPerformed(ActionEvent arg0) {
    final BrowserTree browserTree = HermesBrowser.getBrowser().getBrowserTree();

    if (browserTree.getSelectionPath().getLastPathComponent() instanceof DestinationConfigTreeNode) {
      final DestinationConfigTreeNode destinationNode = (DestinationConfigTreeNode) browserTree.getSelectionPath().getLastPathComponent();
      final HermesTreeNode hermesNode = (HermesTreeNode) destinationNode.getHermesTreeNode();
      final QueueSearchDialog dialog = new QueueSearchDialog(HermesBrowser.getBrowser(), hermesNode.getHermes(), (DestinationConfig) destinationNode.getBean(), searchUserHeader);

      dialog.setLocationRelativeTo(null);
      dialog.show();
    } else if (browserTree.getSelectionPath().getLastPathComponent() instanceof HermesTreeNode) {
      final HermesTreeNode hermesNode = (HermesTreeNode) browserTree.getSelectionPath().getLastPathComponent();

      final QueueSearchDialog dialog = new QueueSearchDialog(HermesBrowser.getBrowser(), hermesNode.getHermes());

      JideSwingUtilities.centerWindow(dialog);
      dialog.show();
View Full Code Here

  }

 

  public void actionPerformed(ActionEvent arg0) {
    final BrowserTree browserTree = HermesBrowser.getBrowser().getBrowserTree();
    try {
      if (browserTree.getSelectionPath().getLastPathComponent() instanceof DestinationConfigTreeNode) {
        final DestinationConfigTreeNode destinationNode = (DestinationConfigTreeNode) browserTree.getSelectionPath().getLastPathComponent();
        final HermesTreeNode hermesNode = (HermesTreeNode) destinationNode.getHermesTreeNode();
        final BrowserAction browserAction = (BrowserAction) HermesBrowser.getBrowser().getDocumentPane().getActiveDocument();
        if (browserAction != null) {
          final Collection<Message> messages = browserAction.getSelectedMessages();
          if (messages.size() > 0) {
View Full Code Here

TOP

Related Classes of hermes.browser.components.BrowserTree

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.