Java Doc for GuiPackage.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.GuiPackage

GuiPackage
final public class GuiPackage implements LocaleChangeListener(Code)
GuiPackage is a static class that provides convenient access to information about the current state of JMeter's GUI. Any GUI class can grab a handle to GuiPackage by calling the static method GuiPackage.getInstance() and then use it to query the GUI about it's state. When actions, for instance, need to affect the GUI, they typically use GuiPackage to get access to different parts of the GUI.




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  JMeterTreeNodegetCurrentNode()
    
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  GuiPackagegetInstance()
     Retrieve the singleton GuiPackage instance.
public static  GuiPackagegetInstance(JMeterTreeListener listener, JMeterTreeModel treeModel)
     When GuiPackage is requested for the first time, it should be given handles to JMeter's Tree Listener and TreeModel.
public  MainFramegetMainFrame()
     Get the main JMeter frame.
public  JMeterTreeNodegetNodeOf(TestElement userObject)
     Find the JMeterTreeNode for a certain TestElement object.
public  ValueReplacergetReplacer()
     Get a ValueReplacer for the test tree.
public  StringgetTestPlanFile()
    
public  JMeterTreeListenergetTreeListener()
     Get the listener for JMeter's test tree.
public  JMeterTreeModelgetTreeModel()
     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(MainFrame newMainFrame)
     Set the main JMeter frame.
public  voidsetTestPlanFile(String f)
     Sets the filepath of the current test plan.
public  voidsetTreeListener(JMeterTreeListener newTreeListener)
     Set the listener for JMeter's test tree.
public  voidsetTreeModel(JMeterTreeModel newTreeModel)
     Set the model for JMeter's test tree.
public static  voidshowErrorMessage(String message, String title)
    
public static  voidshowInfoMessage(String message, String title)
    
public static  voidshowMessage(String message, String title, int type)
    
public static  voidshowWarningMessage(String message, String title)
    
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 JMeterTreeNode 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 GuiPackage getInstance()(Code)
Retrieve the singleton GuiPackage instance. the GuiPackage instance



getInstance
public static GuiPackage getInstance(JMeterTreeListener listener, JMeterTreeModel 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 MainFrame getMainFrame()(Code)
Get the main JMeter frame. the main JMeter frame



getNodeOf
public JMeterTreeNode 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



getTestPlanFile
public String getTestPlanFile()(Code)



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



getTreeModel
public JMeterTreeModel 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(MainFrame newMainFrame)(Code)
Set the main JMeter frame.
Parameters:
  newMainFrame - the new JMeter main frame



setTestPlanFile
public void setTestPlanFile(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(JMeterTreeListener newTreeListener)(Code)
Set the listener for JMeter's test tree.
Parameters:
  newTreeListener - the new JMeter test tree listener



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



showErrorMessage
public static void showErrorMessage(String message, String title)(Code)



showInfoMessage
public static void showInfoMessage(String message, String title)(Code)



showMessage
public static void showMessage(String message, String title, int type)(Code)



showWarningMessage
public static void showWarningMessage(String message, String title)(Code)



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.