Java Doc for ReportGuiPackage.java in  » Testing » jakarta-jmeter » org » apache » jmeter » gui » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Testing » jakarta jmeter » org.apache.jmeter.gui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.jmeter.gui.ReportGuiPackage

ReportGuiPackage
final public class ReportGuiPackage implements LocaleChangeListener(Code)
ReportGuiPackage is based on GuiPackage, but with changes for the reporting tool. Because of how the gui components work, it was safer to just make a new class, rather than braking existing JMeter gui code.




Method Summary
public  HashTreeaddSubTree(HashTree subTree)
     Add a subtree to the currently selected node.
Parameters:
  subTree - the subtree to add.
public  TestElementcreateTestElement(Class guiClass, Class testClass)
     Create a TestElement corresponding to the specified GUI class.
Parameters:
  guiClass - the fully qualified class name of the GUI component or aTestBean class for TestBeanGUIs.
Parameters:
  testClass - the fully qualified class name of the test elements edited bythis GUI component.
public  TestElementcreateTestElement(String objClass)
     Create a TestElement for a GUI or TestBean class.

This is a utility method to help actions do with one single String parameter.
Parameters:
  objClass - the fully qualified class name of the GUI component or of theTestBean subclass for which a TestBeanGUI is wanted.

public  voiddisplayPopUp(MouseEvent e, JPopupMenu popup)
     Display the specified popup menu with the source component and location from the specified mouse event.
public  voiddisplayPopUp(Component invoker, MouseEvent e, JPopupMenu popup)
     Display the specified popup menu at the location specified by a mouse event with the specified source component.
public  TestElementgetCurrentElement()
    
public  JMeterGUIComponentgetCurrentGui()
     Convenience method for grabbing the gui for the current node.
public  ReportTreeNodegetCurrentNode()
    
public  HashTreegetCurrentSubTree()
     Get the currently selected subtree.
public  JMeterGUIComponentgetGui(TestElement node)
     Get a JMeterGUIComponent for the specified test element.
public  JMeterGUIComponentgetGui(TestElement node, Class guiClass, Class testClass)
     Get a JMeterGUIComponent for the specified test element.
public static  ReportGuiPackagegetInstance()
     Retrieve the singleton GuiPackage instance.
public static  ReportGuiPackagegetInstance(ReportTreeListener listener, ReportTreeModel treeModel)
     When GuiPackage is requested for the first time, it should be given handles to JMeter's Tree Listener and TreeModel.
public  ReportMainFramegetMainFrame()
     Get the main JMeter frame.
public  ReportTreeNodegetNodeOf(TestElement userObject)
     Find the JMeterTreeNode for a certain TestElement object.
public  ValueReplacergetReplacer()
     Get a ValueReplacer for the test tree.
public  StringgetReportPlanFile()
    
public  ReportTreeListenergetTreeListener()
     Get the listener for JMeter's test tree.
public  ReportTreeModelgetTreeModel()
     Get the model for JMeter's test tree.
public  booleanisDirty()
     Retrieves the state of the 'dirty' property, a flag that indicates if there are test tree components that have been modified since they were last saved.
public  voidlocaleChanged(LocaleChangeEvent event)
    
public  voidremoveNode(TestElement node)
     Remove a test element from the tree.
public  voidsetDirty(boolean dirty)
     The dirty property is a flag that indicates whether there are parts of JMeter's test tree that the user has not saved since last modification.
public  voidsetMainFrame(ReportMainFrame newMainFrame)
     Set the main JMeter frame.
public  voidsetReportPlanFile(String f)
     Sets the filepath of the current test plan.
public  voidsetTreeListener(ReportTreeListener newTreeListener)
     Set the listener for JMeter's test tree.
public  voidsetTreeModel(ReportTreeModel newTreeModel)
     Set the model for JMeter's test tree.
public  voidupdateCurrentGui()
     Update the GUI for the currently selected node.
public  voidupdateCurrentNode()
     This method should be called in order for GuiPackage to change the current node.



Method Detail
addSubTree
public HashTree addSubTree(HashTree subTree) throws IllegalUserActionException(Code)
Add a subtree to the currently selected node.
Parameters:
  subTree - the subtree to add. the resulting subtree starting with the currently selected node
throws:
  IllegalUserActionException - if a subtree cannot be added to the currently selected node



createTestElement
public TestElement createTestElement(Class guiClass, Class testClass)(Code)
Create a TestElement corresponding to the specified GUI class.
Parameters:
  guiClass - the fully qualified class name of the GUI component or aTestBean class for TestBeanGUIs.
Parameters:
  testClass - the fully qualified class name of the test elements edited bythis GUI component. the test element corresponding to the specified GUI class.



createTestElement
public TestElement createTestElement(String objClass)(Code)
Create a TestElement for a GUI or TestBean class.

This is a utility method to help actions do with one single String parameter.
Parameters:
  objClass - the fully qualified class name of the GUI component or of theTestBean subclass for which a TestBeanGUI is wanted. the test element corresponding to the specified GUI class.




displayPopUp
public void displayPopUp(MouseEvent e, JPopupMenu popup)(Code)
Display the specified popup menu with the source component and location from the specified mouse event.
Parameters:
  e - the mouse event causing this popup to be displayed
Parameters:
  popup - the popup menu to display



displayPopUp
public void displayPopUp(Component invoker, MouseEvent e, JPopupMenu popup)(Code)
Display the specified popup menu at the location specified by a mouse event with the specified source component.
Parameters:
  invoker - the source component
Parameters:
  e - the mouse event causing this popup to be displayed
Parameters:
  popup - the popup menu to display



getCurrentElement
public TestElement getCurrentElement()(Code)



getCurrentGui
public JMeterGUIComponent getCurrentGui()(Code)
Convenience method for grabbing the gui for the current node. the GUI component associated with the currently selected node



getCurrentNode
public ReportTreeNode getCurrentNode()(Code)



getCurrentSubTree
public HashTree getCurrentSubTree()(Code)
Get the currently selected subtree. the subtree of the currently selected node



getGui
public JMeterGUIComponent getGui(TestElement node)(Code)
Get a JMeterGUIComponent for the specified test element. If the GUI has already been created, that instance will be returned. Otherwise, if a GUI component of the same type has been created, and the component is not marked as an UnsharedComponent , that shared component will be returned. Otherwise, a new instance of the component will be created. The TestElement's GUI_CLASS property will be used to determine the appropriate type of GUI component to use.
Parameters:
  node - the test element which this GUI is being created for the GUI component corresponding to the specified test element



getGui
public JMeterGUIComponent getGui(TestElement node, Class guiClass, Class testClass)(Code)
Get a JMeterGUIComponent for the specified test element. If the GUI has already been created, that instance will be returned. Otherwise, if a GUI component of the same type has been created, and the component is not marked as an UnsharedComponent , that shared component will be returned. Otherwise, a new instance of the component will be created.
Parameters:
  node - the test element which this GUI is being created for
Parameters:
  guiClass - the fully qualifed class name of the GUI component which willbe created if it doesn't already exist
Parameters:
  testClass - the fully qualifed class name of the test elements which haveto be edited by the returned GUI component the GUI component corresponding to the specified test element



getInstance
public static ReportGuiPackage getInstance()(Code)
Retrieve the singleton GuiPackage instance. the GuiPackage instance



getInstance
public static ReportGuiPackage getInstance(ReportTreeListener listener, ReportTreeModel treeModel)(Code)
When GuiPackage is requested for the first time, it should be given handles to JMeter's Tree Listener and TreeModel.
Parameters:
  listener - the TreeListener for JMeter's test tree
Parameters:
  treeModel - the model for JMeter's test tree GuiPackage



getMainFrame
public ReportMainFrame getMainFrame()(Code)
Get the main JMeter frame. the main JMeter frame



getNodeOf
public ReportTreeNode getNodeOf(TestElement userObject)(Code)
Find the JMeterTreeNode for a certain TestElement object.
Parameters:
  userObject - the test element to search for the tree node associated with the test element



getReplacer
public ValueReplacer getReplacer()(Code)
Get a ValueReplacer for the test tree. a ValueReplacer configured for the test tree



getReportPlanFile
public String getReportPlanFile()(Code)



getTreeListener
public ReportTreeListener getTreeListener()(Code)
Get the listener for JMeter's test tree. the JMeter test tree listener



getTreeModel
public ReportTreeModel getTreeModel()(Code)
Get the model for JMeter's test tree. the JMeter tree model



isDirty
public boolean isDirty()(Code)
Retrieves the state of the 'dirty' property, a flag that indicates if there are test tree components that have been modified since they were last saved. true if some tree components have been modified since they werelast saved, false otherwise



localeChanged
public void localeChanged(LocaleChangeEvent event)(Code)



removeNode
public void removeNode(TestElement node)(Code)
Remove a test element from the tree. This removes the reference to any associated GUI component.
Parameters:
  node - the test element being removed



setDirty
public void setDirty(boolean dirty)(Code)
The dirty property is a flag that indicates whether there are parts of JMeter's test tree that the user has not saved since last modification. Various (@link Command actions) set this property when components are modified/created/saved.
Parameters:
  dirty - the new value of the dirty flag



setMainFrame
public void setMainFrame(ReportMainFrame newMainFrame)(Code)
Set the main JMeter frame.
Parameters:
  newMainFrame - the new JMeter main frame



setReportPlanFile
public void setReportPlanFile(String f)(Code)
Sets the filepath of the current test plan. It's shown in the main frame title and used on saving.
Parameters:
  f -



setTreeListener
public void setTreeListener(ReportTreeListener newTreeListener)(Code)
Set the listener for JMeter's test tree.
Parameters:
  newTreeListener - the new JMeter test tree listener



setTreeModel
public void setTreeModel(ReportTreeModel newTreeModel)(Code)
Set the model for JMeter's test tree.
Parameters:
  newTreeModel - the new JMeter tree model



updateCurrentGui
public void updateCurrentGui()(Code)
Update the GUI for the currently selected node. The GUI component is configured to reflect the settings in the current tree node.



updateCurrentNode
public void updateCurrentNode()(Code)
This method should be called in order for GuiPackage to change the current node. This will save any changes made to the earlier node before choosing the new node.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.