Java Doc for FormDesignerOperator.java in  » IDE-Netbeans » jellytools » org » netbeans » jellytools » modules » form » 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 » IDE Netbeans » jellytools » org.netbeans.jellytools.modules.form 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.jellytools.TopComponentOperator
   org.netbeans.jellytools.modules.form.FormDesignerOperator

FormDesignerOperator
public class FormDesignerOperator extends TopComponentOperator (Code)
Handle editing of forms in IDE. It enables to design components and also modify source code.

Usage:

 FormDesignerOperator designer = new FormDesignerOperator("MyForm");
 ComponentPaletteOperator palette = new ComponentPaletteOperator();
 ComponentInspectorOperator inspector = new ComponentInspectorOperator();
 //add first panel
 palette.expandSwing();
 palette.selectComponent("JPanel");
 designer.clickOnComponent(designer.fakePane().getSource());
 //set layout to north
 inspector.selectComponent("JFrame|jPanel1"); // NOI18N
 new Property(inspector.properties(), "Direction").setValue("North"); // NOI18N
 //find panel
 Component firstPanel = designer.findComponent(JPanel.class);
 //add something there
 palette.expandSwing();
 palette.selectComponent("JLabel"); // NOI18N
 designer.clickOnComponent(firstPanel);
 // get editor and do editing
 EditorOperator editor = designer.editor();
 editor.insert("my code", 23, 1);
 

See Also:   ComponentInspectorOperator
See Also:   ComponentPaletteOperator
author:
   Jiri.Skrivanek@sun.com

Inner Class :final public static class FormDesignerSubchooser implements ComponentChooser


Constructor Summary
public  FormDesignerOperator(String name)
     Waits for the form Designer appearence and creates operator for it.
public  FormDesignerOperator(String name, int index)
     Waits for the form Designer appearence and creates operator for it.

Method Summary
public  JButtonOperatorbtPreviewForm()
     Getter for the "Preview Form" button.
public  voidclickOnComponent(Component subComponent, Point localCoords)
     Clicks on component.
public  voidclickOnComponent(Component subComponent)
     Clicks on the component center.
public  ContainerOperatorcomponentLayer()
     Return ContainerOperator for a component which contains all the designing components.
public  voidconnectionMode()
     Switches to the connection mode.
public  PointconvertCoords(Component subComponent, Point localCoords)
    
public  PointconvertCoords(Component subComponent)
     Converts components center coordinates to coordinates relative to handleLayer()
See Also:   FormDesignerOperator.handleLayer()
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser,int)
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser)
See Also:   FormDesignerOperator.findComponent(java.lang.Class,int)
See Also:   FormDesignerOperator.findComponent(java.lang.Class)
Parameters:
  subComponent - Component in designer.
public  voiddesign()
     Switches to the form designer.
public  EditorOperatoreditor()
     Clicks Source button and returns EditorOperator to handle form source code.
public  ContainerOperatorfakePane()
     Returns ContainerOperator for component which represents designing form (like JFrame, JDialog, ...).
public  ComponentfindComponent(ComponentChooser chooser, int index)
     Searches a component inside fakePane().
public  ComponentfindComponent(ComponentChooser chooser)
     Searches a component inside fakePane().
public  ComponentfindComponent(Class clzz, int index)
     Searches index's instance of a clzz class inside fakePane().
See Also:   FormDesignerOperator.fakePane()
Parameters:
  clzz - class of component to be find (e.g.
public  ComponentfindComponent(Class clzz)
     Searches first instance of a clzz class inside fakePane().
See Also:   FormDesignerOperator.fakePane()
Parameters:
  clzz - class of component to be find (e.g.
public  ComponentOperatorhandleLayer()
     Returns component which actually handles all events happening on components inside designer.
public  JFrameOperatorpreviewForm(String frameName)
     Pushes "Preview Form" button and waits for a frame opened.
Parameters:
  frameName - Frame class name.
public  JFrameOperatorpreviewForm()
     Pushes "Preview Form" button and waits for a frame opened.
public  voidselectionMode()
     Switches to the selection mode.
public  voidsource()
     Switches to the source editor.
public  JToggleButtonOperatortbConnectionMode()
     Getter for the "Connection Mode" toggle button.
public  JToggleButtonOperatortbDesign()
    
public  JToggleButtonOperatortbSelectionMode()
     Getter for the "Selection Mode" toggle button.
public  JToggleButtonOperatortbSource()
    
public  voidverify()
    


Constructor Detail
FormDesignerOperator
public FormDesignerOperator(String name)(Code)
Waits for the form Designer appearence and creates operator for it. It is activated by defalt.
Parameters:
  name - name of form designer



FormDesignerOperator
public FormDesignerOperator(String name, int index)(Code)
Waits for the form Designer appearence and creates operator for it. It is activated by defalt.
Parameters:
  name - name of form designer
Parameters:
  index - wait for index-th form designer




Method Detail
btPreviewForm
public JButtonOperator btPreviewForm()(Code)
Getter for the "Preview Form" button. JButtonOperator instance



clickOnComponent
public void clickOnComponent(Component subComponent, Point localCoords)(Code)
Clicks on component. Events are really sent to handleLayer()
Parameters:
  subComponent - Component in designer.
Parameters:
  localCoords - Local subComponent's coordinates
See Also:   FormDesignerOperator.handleLayer()



clickOnComponent
public void clickOnComponent(Component subComponent)(Code)
Clicks on the component center. Events are really sent to handleLayer()
Parameters:
  subComponent - Component in designer.
See Also:   FormDesignerOperator.handleLayer()



componentLayer
public ContainerOperator componentLayer()(Code)
Return ContainerOperator for a component which contains all the designing components.
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser,int)
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser)
See Also:   FormDesignerOperator.findComponent(java.lang.Class,int)
See Also:   FormDesignerOperator.findComponent(java.lang.Class) ContainerOperator for component layer



connectionMode
public void connectionMode()(Code)
Switches to the connection mode.



convertCoords
public Point convertCoords(Component subComponent, Point localCoords)(Code)
Converts relative coordinates inside one of the components laying on the designer to coordinates relative to handleLayer()
See Also:   FormDesignerOperator.handleLayer()
See Also:   FormDesignerOperator.componentLayer()
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser,int)
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser)
See Also:   FormDesignerOperator.findComponent(java.lang.Class,int)
See Also:   FormDesignerOperator.findComponent(java.lang.Class)
Parameters:
  subComponent - Component in designer.
Parameters:
  localCoords - Local subComponent's coordinates coordinates relative to handle layer



convertCoords
public Point convertCoords(Component subComponent)(Code)
Converts components center coordinates to coordinates relative to handleLayer()
See Also:   FormDesignerOperator.handleLayer()
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser,int)
See Also:   FormDesignerOperator.findComponent(org.netbeans.jemmy.ComponentChooser)
See Also:   FormDesignerOperator.findComponent(java.lang.Class,int)
See Also:   FormDesignerOperator.findComponent(java.lang.Class)
Parameters:
  subComponent - Component in designer. coordinates of the center of the subComponent relative to handle layer



design
public void design()(Code)
Switches to the form designer. It pushes Design toggle button if we are not in form designer already.



editor
public EditorOperator editor()(Code)
Clicks Source button and returns EditorOperator to handle form source code. EditorOperator instance



fakePane
public ContainerOperator fakePane()(Code)
Returns ContainerOperator for component which represents designing form (like JFrame, JDialog, ...). ContainerOperator for fake pane



findComponent
public Component findComponent(ComponentChooser chooser, int index)(Code)
Searches a component inside fakePane().
See Also:   FormDesignerOperator.fakePane()
Parameters:
  chooser - chooser specifying criteria to find a component
Parameters:
  index - index of component index-th component from fake pane matching chooser's criteria



findComponent
public Component findComponent(ComponentChooser chooser)(Code)
Searches a component inside fakePane().
See Also:   FormDesignerOperator.fakePane()
Parameters:
  chooser - chooser specifying criteria to find a component component from fake pane matching chooser's criteria



findComponent
public Component findComponent(Class clzz, int index)(Code)
Searches index's instance of a clzz class inside fakePane().
See Also:   FormDesignerOperator.fakePane()
Parameters:
  clzz - class of component to be find (e.g. JButton.class)
Parameters:
  index - index of component index-th component from fake pane of the given class



findComponent
public Component findComponent(Class clzz)(Code)
Searches first instance of a clzz class inside fakePane().
See Also:   FormDesignerOperator.fakePane()
Parameters:
  clzz - class of component to be find (e.g. JButton.class) first component from fake pane of the given class



handleLayer
public ComponentOperator handleLayer()(Code)
Returns component which actually handles all events happening on components inside designer. During reproducing, all events should be posted to this component.
See Also:   FormDesignerOperator.convertCoords(java.awt.Component,java.awt.Point)
See Also:   FormDesignerOperator.convertCoords(java.awt.Component) ComponentOperator for handle layer



previewForm
public JFrameOperator previewForm(String frameName)(Code)
Pushes "Preview Form" button and waits for a frame opened.
Parameters:
  frameName - Frame class name. JFrameOperator instance of "Form Preview" window



previewForm
public JFrameOperator previewForm()(Code)
Pushes "Preview Form" button and waits for a frame opened. JFrameOperator instance of "Form Preview" window



selectionMode
public void selectionMode()(Code)
Switches to the selection mode.



source
public void source()(Code)
Switches to the source editor. It pushes Source toggle button if we are not in source editor already.



tbConnectionMode
public JToggleButtonOperator tbConnectionMode()(Code)
Getter for the "Connection Mode" toggle button. JToggleButtonOperator instance



tbDesign
public JToggleButtonOperator tbDesign()(Code)
Returns JToggleButtonOperator instance of Design button JToggleButtonOperator instance



tbSelectionMode
public JToggleButtonOperator tbSelectionMode()(Code)
Getter for the "Selection Mode" toggle button. JToggleButtonOperator instance



tbSource
public JToggleButtonOperator tbSource()(Code)
Returns JToggleButtonOperator instance of Source button JToggleButtonOperator instance



verify
public void verify()(Code)
Performs verification by accessing all sub-components



Methods inherited from org.netbeans.jellytools.TopComponentOperator
public void attachTo(String targetTopComponentName, String side)(Code)(Java Doc)
public void attachTo(TopComponentOperator targetTopComponentOperator, String side)(Code)(Java Doc)
public void cloneDocument()(Code)(Java Doc)
public void close()(Code)(Java Doc)
public void closeAllDocuments()(Code)(Java Doc)
public void closeDiscard()(Code)(Java Doc)
public void closeWindow()(Code)(Java Doc)
protected TopComponentOperator findParentTopComponent()(Code)(Java Doc)
public static JComponent findTopComponent(String name, int index)(Code)(Java Doc)
protected static JComponent findTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser)(Code)(Java Doc)
public boolean isModified()(Code)(Java Doc)
protected boolean isOpened()(Code)(Java Doc)
public void makeComponentVisible()(Code)(Java Doc)
public void maximize()(Code)(Java Doc)
public void pushMenuOnTab(String popupPath)(Code)(Java Doc)
public void restore()(Code)(Java Doc)
public void save()(Code)(Java Doc)
public void saveDocument()(Code)(Java Doc)
public void setUnmodified()(Code)(Java Doc)
public void waitClosed()(Code)(Java Doc)
protected static JComponent waitTopComponent(String name, int index)(Code)(Java Doc)
protected static JComponent waitTopComponent(ContainerOperator cont, String name, int index, ComponentChooser subchooser)(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.