Package org.jboss.console.manager.interfaces.impl

Examples of org.jboss.console.manager.interfaces.impl.HttpLinkTreeAction


                                            String defaultUrl,
                                            TreeNodeMenuEntry[] menuEntries,
                                            TreeNode[] subNodes,
                                            ResourceTreeNode[] subResNodes) throws Exception
   {
      TreeAction action = new HttpLinkTreeAction (fixUrl(defaultUrl));
      return new SimpleTreeNode (name, description, fixUrl(iconUrl), action, menuEntries, subNodes, subResNodes);
   }
View Full Code Here


                                            TreeNode[] subNodes,
                                            ResourceTreeNode[] subResNodes,
                                            String jmxObjectName,
                                            String jmxClassName) throws Exception
   {
      TreeAction action = new HttpLinkTreeAction (fixUrl(defaultUrl));
      ManageableResource res = new MBeanResource (new ObjectName(jmxObjectName), jmxClassName);
      return new SimpleResourceTreeNode (name, description, fixUrl(iconUrl), action, menuEntries, subNodes, subResNodes, res);
   }
View Full Code Here

                                            TreeNodeMenuEntry[] menuEntries,
                                            TreeNode[] subNodes,
                                            ResourceTreeNode[] subResNodes,
                                            ManageableResource resource) throws Exception
   {
      TreeAction action = new HttpLinkTreeAction (fixUrl(defaultUrl));
      return new SimpleResourceTreeNode (name, description, fixUrl(iconUrl), action, menuEntries, subNodes, subResNodes, resource);
   }
View Full Code Here

               i++;
            }
            else
            {
               String text = content[i];
               TreeAction action = new HttpLinkTreeAction(fixUrl(content[i+1]));
               menuEntries[i] = new SimpleTreeNodeMenuEntryImpl ( text, action );
               i+=2;
            }
         }        
      }
View Full Code Here

         containerUrl = "/jmx-console/HtmlAdaptor?action=inspectMBean&name=" + containerUrl;

         TreeNodeMenuEntry[] menus = new TreeNodeMenuEntry[]
            {
               new SimpleTreeNodeMenuEntryImpl ("View container in other window",
                  new HttpLinkTreeAction (containerUrl, "_blank")
               )
            };
           
         String j2eeType = objName.getKeyProperty ("j2eeType");  
         String filename = "EJB.jsp";
View Full Code Here

   {
      TreeNodeMenuEntry[] entries = null;
      if (graphableClasses.contains(attr.getType()))
      {
         SimpleTreeNodeMenuEntryImpl entry = new SimpleTreeNodeMenuEntryImpl("graph", new GraphMBeanAttributeAction(mbeanName, attr.getName()));
         SimpleTreeNodeMenuEntryImpl entry2 = new SimpleTreeNodeMenuEntryImpl("create monitor", new HttpLinkTreeAction(
                 "/web-console/createThresholdMonitor.jsp?attribute=" + attr.getName() + "&objectName=" + encode(mbeanName.toString())));
         SimpleTreeNodeMenuEntryImpl entry3 = new SimpleTreeNodeMenuEntryImpl("create snapshot", new HttpLinkTreeAction(
                 "/web-console/createSnapshot.jsp?attribute=" + attr.getName() + "&objectName=" + encode(mbeanName.toString())));
         entries = new TreeNodeMenuEntry[3];
         entries[0] = entry;
         entries[1] = entry2;
         entries[2] = entry3;
      }
      else if (attr.getType().equals("String") || attr.getType().equals("java.lang.String"))
      {
         SimpleTreeNodeMenuEntryImpl entry = new SimpleTreeNodeMenuEntryImpl("create monitor", new HttpLinkTreeAction(
                 "/web-console/createStringThresholdMonitor.jsp?attribute=" + attr.getName() + "&objectName=" + encode(mbeanName.toString())));
         entries = new TreeNodeMenuEntry[1];
         entries[0] = entry;
      }
View Full Code Here

      String name = (String)content[NAME];
      String description = (String)content[DESCRIPTION];
      String iconUrl = (String)content[ICON_URL];
      String defaultUrl = (String)content[DEFAULT_URL];
     
      TreeAction action = new HttpLinkTreeAction (defaultUrl);
     
      // menu entries
      //
      TreeNodeMenuEntry[] menuEntries = createTreeMenus ((Object[])content[MENU_ENTRIES]);
     
View Full Code Here

               i++;
            }
            else
            {
               String text = (String)content[i];
               TreeAction action = new HttpLinkTreeAction((String)content[i+1]);
               menuEntries[i] = new SimpleTreeNodeMenuEntryImpl ( text, action );
               i+=2;
            }
         }        
      }
View Full Code Here

     
      public void doAdminTreeAction (TreeAction action)
      {
         if (action != null && action instanceof HttpLinkTreeAction)
         {
            HttpLinkTreeAction act = (HttpLinkTreeAction)action;
            openLink (act.getTarget (), act.getFrame());
         }
      }
View Full Code Here

     
         TreeAction ta = entry.getAction ();

         if (ta instanceof HttpLinkTreeAction)
         {
            HttpLinkTreeAction act = (HttpLinkTreeAction)ta;
            openLink ( act.getTarget (), act.getFrame());
         }
         else if (ta instanceof AppletTreeAction)
         {
            ((AppletTreeAction)ta).doAction(ctx, AppletBrowser.this);
         }
View Full Code Here

TOP

Related Classes of org.jboss.console.manager.interfaces.impl.HttpLinkTreeAction

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.