jellytools

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 » IDE Netbeans » jellytools 
License:
URL:
Description:
Package NameComment
dummy
org.netbeans.jellytools Contains operators for main IDE components and other general classes.

Generic jellytools operators which can be used when a specialized operator is not available are:

  • NbDialogOperator
  • TopComponentOperator
  • WizardOperator
NbDialogOperator is generic ancestor for majority of IDE dialogs. NbDialogOperator is extended by WizardOperator which helps to implement operators for wizards. TopComponentOperator represents any dockable view which can reside inside a host frame.

org.netbeans.jellytools.actions Provides a set of classes to perform popup, main menu, IDE API and shortcut actions.

The recommended way how to invoke popup or main menu is through an {@link org.netbeans.jellytools.actions.Action} or {@link org.netbeans.jellytools.actions.ActionNoBlock} instance. Predefined actions in this package are descendants either of Action for non blocking operations or of ActionNoBlock for operations which may block further execution by a modal dialog showing.
An action can be performed in "main menu", "popup", "shortcut" or "API" modes. By default it is performed in the first available mode because not every action is defined for all four modes. An example of usage can be:

  // performs in default mode
  new CopyAction().perform();
  // performs in "menu" mode
  new CopyAction().performMenu();

It also possible to specify a node or component on which an action will be performed:

  // selects node first and then performs on it
  new FindAction().perform(myNode);
  // focuses component first and then performs action in "popup" mode
  new FindAction().performPopup(myComponentOperator);

If an action is not predefined, you can create and use your own action.

  // invokes main menu item "Edit|Copy"
  new Action("Edit|Copy", null).perform();
  // invokes popup menu item "Copy" on given node
  new Action(null, "Copy").perform(myNode);

  // invokes main menu item "Edit|Find" (first selects given node)
  new ActionNoBlock("Edit|Find", null).perform(myFolderNode);
  // invoke popup menu item "Find" on given component
  new ActionNoBlock(null, "Find").perform(myEditorOperator);

org.netbeans.jellytools.modules.db
org.netbeans.jellytools.modules.db.actions
org.netbeans.jellytools.modules.db.derby
org.netbeans.jellytools.modules.db.derby.actions
org.netbeans.jellytools.modules.db.nodes
org.netbeans.jellytools.modules.debugger
org.netbeans.jellytools.modules.debugger.actions
org.netbeans.jellytools.modules.editor
org.netbeans.jellytools.modules.form Provides a set of classes for to manipulate Form Editor components.
org.netbeans.jellytools.modules.form.actions Contains classes to perform popup, main menu, IDE API and shortcut actions in Form Editor.

See package {@link org.netbeans.jellytools.actions actions} for general actions.

org.netbeans.jellytools.modules.form.properties.editors Provides a set of classes for setting properties by custom editors in Form Editor.

If there exist special custom editor for property, there appears small "..." button which invokes such custom editor dialog. Custom editor is embedded in a dialog which contains Default, OK and Cancel buttons, combo box enabling to change editor (e.g. PointEditor/Form Connection). Custom editor operator contains high-level methods to get or set compound property value in one method by custom editor. These methods are then used in tests or in specialized property implementation (see {@link org.netbeans.jellytools.properties}).


org.netbeans.jellytools.modules.freeform.actions
org.netbeans.jellytools.modules.freeform.nodes
org.netbeans.jellytools.modules.j2ee.actions
org.netbeans.jellytools.modules.j2ee.nodes
org.netbeans.jellytools.modules.javacvs
org.netbeans.jellytools.modules.javacvs.actions
org.netbeans.jellytools.modules.web
org.netbeans.jellytools.modules.web.nodes
org.netbeans.jellytools.nodes Provides a set of classes to manipulate nodes in JTree components.

Nodes should help to easier testing of nodes in JTree components. The most frequent usage in IDE is in the Projects or Files view but nodes can be used in any component which includes a JTree instance. Nodes are also used as parameters for action's performing.
In this package are predefined specialized nodes for common objects in IDE. You can use them with combination of generic node instances as you like. Simple example looks like this:

  // Finds Source Packages node under My Project node in Projects view
  SourcePackagesNode sourceNode = new Node(new SourcePackagesNode("My Project"));
  // Finds child with given path
  Node node = new Node(sourceNode, "org.netbeans.jellytools.nodes|Node.java");
  // Performs action on node
  new OpenAction().performAPI(node);

Items in a node path are separated by "|" character and searching (exact match, case sensitivity) is driven by current string comparator. Root node must not be included in search path. To get root node instance you need to supply empty search path or use a getter method:

  Node rootNode = new Node(treeOperator, "");

org.netbeans.jellytools.properties Provides a set of classes for setting properties.

In the IDE properties settings happens through so called property sheets. Property sheet ({@link org.netbeans.jellytools.properties.PropertySheetOperator}) can be docked to any other window. Property sheet consists of JTable with properties and optional description area. The table has two columns showing property name and property value. Properties are grouped to logical categories which can be collapsed or expanded when properties are sorted by category. It is also possible to sort properties alphabetically (Sort by Name). Property value can be changed by inline editors (text field for string values, check box for boolean values - {@link org.netbeans.jellytools.properties.Property#setValue(String)} and combo box for list values - {@link org.netbeans.jellytools.properties.Property#setValue(int)}) or by custom editors where they are available ({@link org.netbeans.jellytools.properties.Property#openEditor}).

You can extend {@link org.netbeans.jellytools.properties.Property Property}, if you want to create your specific property. Some common properties are already created in this package (ColorProperty, PointProperty, ...).

Properties can be used the following way:
        PropertySheetOperator pso = new PropertySheetOperator("Properties of MyClass");
        Property p = new Property(pso, "Name");
        System.out.println("\nProperty name="+p.getName());
        System.out.println("\nProperty value="+p.getValue());
        p.setValue("ANewValue");
        // set a new value by index where it is applicable
        //p.setValue(2);
        // open custom editor where it is applicable
        //p.openEditor();
Common custom editors are grouped in package {@link org.netbeans.jellytools.properties.editors editors}.

org.netbeans.jellytools.properties.editors Provides a set of classes for setting properties by custom editors.

If there exist special custom editor for property, there appears small "..." button which invokes such custom editor dialog. Custom editor is embedded in a dialog. If it is property of a component from Form Editor, dialog contains Default, OK and Cancel buttons, combo box enabling to change editor (e.g. PointEditor/Form Connection), button "Advanced" to call "Advanced Initialization Code" dialog (see {@link org.netbeans.jellytools.modules.form.properties.editors}). Otherwise it is dialog with OK and Cancel buttons (Default and Help are optional). A custom editor is extended from  NbDialogOperator. Custom editor operator contains high-level methods to get or set compound property value in one method by custom editor. These methods are then used in tests or in specialized property implementation (see {@link org.netbeans.jellytools.properties}).

org.netbeans.jellytools.util Contains utility classes handy for test developers.
org.netbeans.jellytools.widgets
org.netbeans.modules.jellytools
sample1
sample1.sample2
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.