1 19 24 package org.netbeans.jellytools.modules.xml.catalog; 25 26 import org.netbeans.jemmy.operators.*; 27 import org.netbeans.jellytools.*; 28 import org.netbeans.jellytools.properties.PropertySheetOperator; 29 30 35 public class XMLCatalogCustomizerDialogOperator extends NbDialogOperator { 36 37 39 public XMLCatalogCustomizerDialogOperator() { 40 super("Customizer Dialog"); 41 } 42 43 private JLabelOperator _lblXMLCatalogURL; 44 private JTextFieldOperator _txtXMLCatalogURL; 45 private JTextAreaOperator _txtJTextArea; 46 47 48 52 55 public JLabelOperator lblXMLCatalogURL() { 56 if (_lblXMLCatalogURL==null) { 57 _lblXMLCatalogURL = new JLabelOperator(this, "XML Catalog URL:"); 58 } 59 return _lblXMLCatalogURL; 60 } 61 62 65 public JTextFieldOperator txtXMLCatalogURL() { 66 if (_txtXMLCatalogURL==null) { 67 _txtXMLCatalogURL = new JTextFieldOperator(this); 68 } 69 return _txtXMLCatalogURL; 70 } 71 72 75 public JTextAreaOperator txtJTextArea() { 76 if (_txtJTextArea==null) { 77 _txtJTextArea = new JTextAreaOperator(this); 78 } 79 return _txtJTextArea; 80 } 81 82 83 87 90 public String getXMLCatalogURL() { 91 return txtXMLCatalogURL().getText(); 92 } 93 94 97 public void setXMLCatalogURL(String text) { 98 txtXMLCatalogURL().setText(text); 99 } 100 101 104 public void typeXMLCatalogURL(String text) { 105 txtXMLCatalogURL().typeText(text); 106 } 107 108 111 public String getJTextArea() { 112 return txtJTextArea().getText(); 113 } 114 115 118 public void setJTextArea(String text) { 119 txtJTextArea().setText(text); 120 } 121 122 125 public void typeJTextArea(String text) { 126 txtJTextArea().typeText(text); 127 } 128 129 130 134 136 public void verify() { 137 lblXMLCatalogURL(); 138 txtXMLCatalogURL(); 139 txtJTextArea(); 140 } 141 142 145 public static void main(String args[]) { 146 new XMLCatalogCustomizerDialogOperator().verify(); 147 System.out.println("XMLCatalogCustomizerDialogDialogOperator verification finished."); 148 } 149 } 150 151 | Popular Tags |