Java Doc for Panel.java in  » Testing » UISpec4J » org » uispec4j » 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 » UISpec4J » org.uispec4j 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.uispec4j.AbstractUIComponent
      org.uispec4j.Panel

All known Subclasses:   org.uispec4j.Window,
Panel
public class Panel extends AbstractUIComponent (Code)
General container for UI components.

This class offers a set of "getXxx" methods for retrieving the different kinds of UIComponent instances laid out in a GUI panel.

It also provides a set of generic find/get methods, with the following naming logic:

  • 'find...' stands for a unitary search that returns null when nothing was found
  • 'getXxxComponent' stands for a unitary search that throws an exception when nothing was found
  • 'getXxxComponents' stands for plural search and returns an empty array when nothing was found
  • 'getXxxComponents' stands for plural search and returns an empty array when nothing was found
  • 'containsXxxComponents' returns an assertion for checking the presence of a component
NOTE: A Panel can be created from any AWT Container, but when a Panel is searched with the Panel.getPanel(String) method only components of type JPanel JInternalFrame, etc. will be considered.


Field Summary
final public static  Class[]SWING_CLASSES
    
final public static  StringTYPE_NAME
    

Constructor Summary
public  Panel(Container container)
    

Method Summary
public  AssertioncontainsComponent(ComponentMatcher matcher)
    
public  AssertioncontainsLabel(String text)
     Checks that the panel contains a given non-editable text.
public  AssertioncontainsSwingComponent(Class swingComponentClass)
    
public  AssertioncontainsSwingComponent(Class swingComponentClass, String name)
    
public  AssertioncontainsUIComponent(Class uicomponentClass)
    
public  AssertioncontainsUIComponent(Class uiComponentClass, String name)
    
public  ComponentfindSwingComponent(Class swingComponentClass)
    
public  ComponentfindSwingComponent(Class swingComponentClass, String componentName)
    
public  ComponentfindSwingComponent(ComponentMatcher matcher)
    
public  UIComponentfindUIComponent(Class uiComponentClass)
    
public  UIComponentfindUIComponent(Class uiComponentClass, String name)
    
public  UIComponentfindUIComponent(ComponentMatcher matcher)
    
public  ComponentgetAwtComponent()
    
public  ContainergetAwtContainer()
    
public  ButtongetButton(String name)
    
public  ButtongetButton()
    
public  ButtongetButton(ComponentMatcher matcher)
    
public  CheckBoxgetCheckBox(String name)
    
public  CheckBoxgetCheckBox()
    
public  CheckBoxgetCheckBox(ComponentMatcher matcher)
    
public  ComboBoxgetComboBox(String name)
    
public  ComboBoxgetComboBox()
    
public  ComboBoxgetComboBox(ComponentMatcher matcher)
    
public  DateSpinnergetDateSpinner()
    
public  DateSpinnergetDateSpinner(String componentName)
    
public  DateSpinnergetDateSpinner(ComponentMatcher matcher)
    
public  StringgetDescriptionTypeName()
    
public  DesktopgetDesktop(String name)
    
public  DesktopgetDesktop()
    
public  DesktopgetDesktop(ComponentMatcher matcher)
    
public  TextBoxgetInputTextBox(String name)
     Retrieves input-only text boxes.
public  TextBoxgetInputTextBox()
     Retrieves input-only text boxes.
public  ListBoxgetListBox(String name)
    
public  ListBoxgetListBox()
    
public  ListBoxgetListBox(ComponentMatcher matcher)
    
public  ListSpinnergetListSpinner()
    
public  ListSpinnergetListSpinner(String componentName)
    
public  ListSpinnergetListSpinner(ComponentMatcher matcher)
    
public  NumberSpinnergetNumberSpinner()
    
public  NumberSpinnergetNumberSpinner(String componentName)
    
public  NumberSpinnergetNumberSpinner(ComponentMatcher matcher)
    
public  PanelgetPanel()
    
public  PanelgetPanel(String name)
    
public  PanelgetPanel(ComponentMatcher matcher)
    
public  PasswordFieldgetPasswordField()
    
public  PasswordFieldgetPasswordField(ComponentMatcher matcher)
    
public  PasswordFieldgetPasswordField(String componentName)
    
public  ProgressBargetProgressBar(String name)
    
public  ProgressBargetProgressBar()
    
public  ProgressBargetProgressBar(ComponentMatcher matcher)
    
public  RadioButtongetRadioButton(String name)
    
public  RadioButtongetRadioButton()
    
public  RadioButtongetRadioButton(ComponentMatcher matcher)
    
public  SlidergetSlider()
    
public  SlidergetSlider(String name)
    
public  SlidergetSlider(ComponentMatcher matcher)
    
public  SpinnergetSpinner()
    
public  SpinnergetSpinner(String name)
    
public  SpinnergetSpinner(ComponentMatcher matcher)
    
public  Component[]getSwingComponents(Class swingComponentClass)
    
public  Component[]getSwingComponents(Class swingComponentClass, String name)
    
public  Component[]getSwingComponents(ComponentMatcher matcher)
    
public  TabGroupgetTabGroup(String name)
    
public  TabGroupgetTabGroup()
    
public  TabGroupgetTabGroup(ComponentMatcher matcher)
    
public  TablegetTable(String name)
    
public  TablegetTable()
    
public  TablegetTable(ComponentMatcher matcher)
    
public  TextBoxgetTextBox(String name)
    
public  TextBoxgetTextBox()
    
public  TextBoxgetTextBox(ComponentMatcher matcher)
    
public  ToggleButtongetToggleButton(String name)
    
public  ToggleButtongetToggleButton()
    
public  ToggleButtongetToggleButton(ComponentMatcher matcher)
    
public  TreegetTree(String name)
    
public  TreegetTree()
    
public  TreegetTree(ComponentMatcher matcher)
    
public  UIComponent[]getUIComponents(Class uiComponentClass)
    
public  UIComponent[]getUIComponents(Class uiComponentClass, String name)
    
public  UIComponent[]getUIComponents(ComponentMatcher matcher)
    

Field Detail
SWING_CLASSES
final public static Class[] SWING_CLASSES(Code)



TYPE_NAME
final public static String TYPE_NAME(Code)




Constructor Detail
Panel
public Panel(Container container)(Code)




Method Detail
containsComponent
public Assertion containsComponent(ComponentMatcher matcher)(Code)



containsLabel
public Assertion containsLabel(String text)(Code)
Checks that the panel contains a given non-editable text. This method is mainly suited for checking displayed messages in popped-up dialogs. NB: Only JLabel components are taken into account.



containsSwingComponent
public Assertion containsSwingComponent(Class swingComponentClass)(Code)



containsSwingComponent
public Assertion containsSwingComponent(Class swingComponentClass, String name)(Code)



containsUIComponent
public Assertion containsUIComponent(Class uicomponentClass)(Code)



containsUIComponent
public Assertion containsUIComponent(Class uiComponentClass, String name)(Code)



findSwingComponent
public Component findSwingComponent(Class swingComponentClass) throws ComponentAmbiguityException(Code)



findSwingComponent
public Component findSwingComponent(Class swingComponentClass, String componentName) throws ComponentAmbiguityException(Code)



findSwingComponent
public Component findSwingComponent(ComponentMatcher matcher) throws ComponentAmbiguityException(Code)



findUIComponent
public UIComponent findUIComponent(Class uiComponentClass) throws ComponentAmbiguityException(Code)



findUIComponent
public UIComponent findUIComponent(Class uiComponentClass, String name) throws ComponentAmbiguityException(Code)



findUIComponent
public UIComponent findUIComponent(ComponentMatcher matcher) throws ComponentAmbiguityException(Code)



getAwtComponent
public Component getAwtComponent()(Code)



getAwtContainer
public Container getAwtContainer()(Code)



getButton
public Button getButton(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getButton
public Button getButton() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getButton
public Button getButton(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getCheckBox
public CheckBox getCheckBox(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getCheckBox
public CheckBox getCheckBox() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getCheckBox
public CheckBox getCheckBox(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getComboBox
public ComboBox getComboBox(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getComboBox
public ComboBox getComboBox() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getComboBox
public ComboBox getComboBox(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getDateSpinner
public DateSpinner getDateSpinner() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getDateSpinner
public DateSpinner getDateSpinner(String componentName)(Code)



getDateSpinner
public DateSpinner getDateSpinner(ComponentMatcher matcher)(Code)



getDescriptionTypeName
public String getDescriptionTypeName()(Code)



getDesktop
public Desktop getDesktop(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getDesktop
public Desktop getDesktop() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getDesktop
public Desktop getDesktop(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getInputTextBox
public TextBox getInputTextBox(String name) throws ComponentAmbiguityException, ItemNotFoundException(Code)
Retrieves input-only text boxes. This is useful for avoiding ambiguity exceptions when the input text boxes are laid out near labels, as in most forms.

"Input text boxes" are defined as subclasses of the JTextComponent class - in other words, JLabel components are excluded from the search. Please note that the is is not necessarily visible from the user, since JTextComponent subclasses can be customized to look as ordinary, read-only labels.




getInputTextBox
public TextBox getInputTextBox() throws ComponentAmbiguityException, ItemNotFoundException(Code)
Retrieves input-only text boxes.
See Also:   Panel.getInputTextBox(String)



getListBox
public ListBox getListBox(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getListBox
public ListBox getListBox() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getListBox
public ListBox getListBox(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getListSpinner
public ListSpinner getListSpinner() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getListSpinner
public ListSpinner getListSpinner(String componentName)(Code)



getListSpinner
public ListSpinner getListSpinner(ComponentMatcher matcher)(Code)



getNumberSpinner
public NumberSpinner getNumberSpinner() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getNumberSpinner
public NumberSpinner getNumberSpinner(String componentName)(Code)



getNumberSpinner
public NumberSpinner getNumberSpinner(ComponentMatcher matcher)(Code)



getPanel
public Panel getPanel() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getPanel
public Panel getPanel(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getPanel
public Panel getPanel(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getPasswordField
public PasswordField getPasswordField() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getPasswordField
public PasswordField getPasswordField(ComponentMatcher matcher)(Code)



getPasswordField
public PasswordField getPasswordField(String componentName)(Code)



getProgressBar
public ProgressBar getProgressBar(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getProgressBar
public ProgressBar getProgressBar() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getProgressBar
public ProgressBar getProgressBar(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getRadioButton
public RadioButton getRadioButton(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getRadioButton
public RadioButton getRadioButton() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getRadioButton
public RadioButton getRadioButton(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getSlider
public Slider getSlider() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getSlider
public Slider getSlider(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getSlider
public Slider getSlider(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getSpinner
public Spinner getSpinner() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getSpinner
public Spinner getSpinner(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getSpinner
public Spinner getSpinner(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getSwingComponents
public Component[] getSwingComponents(Class swingComponentClass)(Code)



getSwingComponents
public Component[] getSwingComponents(Class swingComponentClass, String name)(Code)



getSwingComponents
public Component[] getSwingComponents(ComponentMatcher matcher)(Code)



getTabGroup
public TabGroup getTabGroup(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTabGroup
public TabGroup getTabGroup() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTabGroup
public TabGroup getTabGroup(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTable
public Table getTable(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTable
public Table getTable() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTable
public Table getTable(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTextBox
public TextBox getTextBox(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTextBox
public TextBox getTextBox() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTextBox
public TextBox getTextBox(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getToggleButton
public ToggleButton getToggleButton(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getToggleButton
public ToggleButton getToggleButton() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getToggleButton
public ToggleButton getToggleButton(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTree
public Tree getTree(String name) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTree
public Tree getTree() throws ItemNotFoundException, ComponentAmbiguityException(Code)



getTree
public Tree getTree(ComponentMatcher matcher) throws ItemNotFoundException, ComponentAmbiguityException(Code)



getUIComponents
public UIComponent[] getUIComponents(Class uiComponentClass)(Code)



getUIComponents
public UIComponent[] getUIComponents(Class uiComponentClass, String name)(Code)



getUIComponents
public UIComponent[] getUIComponents(ComponentMatcher matcher)(Code)



Methods inherited from org.uispec4j.AbstractUIComponent
protected void addAttributes(Component component, XmlWriter.Tag tag)(Code)(Java Doc)
public Assertion backgroundEquals(String expectedColor)(Code)(Java Doc)
public Assertion foregroundEquals(String expectedColor)(Code)(Java Doc)
final public String getDescription()(Code)(Java Doc)
protected void getDescription(Component component, XmlWriter.Tag tag, boolean showVisibleOnly)(Code)(Java Doc)
public String getLabel()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
protected void getSubDescription(Container container, XmlWriter.Tag tag)(Code)(Java Doc)
public Assertion isEnabled()(Code)(Java Doc)
public Assertion isVisible()(Code)(Java Doc)

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.