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 OASISCatalogCustomizerDialogOperator extends NbDialogOperator { 36 37 39 public OASISCatalogCustomizerDialogOperator() { 40 super("Customizer Dialog"); 41 } 42 43 private JLabelOperator _lblCatalogURL; 44 private JTextFieldOperator _txtCatalogURL; 45 private JButtonOperator _btBrowse; 46 private JCheckBoxOperator _cbPreferPublicID; 47 private JTextAreaOperator _txtJTextArea; 48 49 50 54 57 public JLabelOperator lblCatalogURL() { 58 if (_lblCatalogURL==null) { 59 _lblCatalogURL = new JLabelOperator(this, "Catalog URL:"); 60 } 61 return _lblCatalogURL; 62 } 63 64 67 public JTextFieldOperator txtCatalogURL() { 68 if (_txtCatalogURL==null) { 69 _txtCatalogURL = new JTextFieldOperator(this); 70 } 71 return _txtCatalogURL; 72 } 73 74 77 public JButtonOperator btBrowse() { 78 if (_btBrowse==null) { 79 _btBrowse = new JButtonOperator(this, "Browse..."); 80 } 81 return _btBrowse; 82 } 83 84 87 public JCheckBoxOperator cbPreferPublicID() { 88 if (_cbPreferPublicID==null) { 89 _cbPreferPublicID = new JCheckBoxOperator(this, "Prefer Public ID"); 90 } 91 return _cbPreferPublicID; 92 } 93 94 97 public JTextAreaOperator txtJTextArea() { 98 if (_txtJTextArea==null) { 99 _txtJTextArea = new JTextAreaOperator(this); 100 } 101 return _txtJTextArea; 102 } 103 104 105 109 112 public String getCatalogURL() { 113 return txtCatalogURL().getText(); 114 } 115 116 119 public void setCatalogURL(String text) { 120 txtCatalogURL().setText(text); 121 } 122 123 126 public void typeCatalogURL(String text) { 127 txtCatalogURL().typeText(text); 128 } 129 130 132 public void browse() { 133 btBrowse().push(); 134 } 135 136 139 public void checkPreferPublicID(boolean state) { 140 if (cbPreferPublicID().isSelected()!=state) { 141 cbPreferPublicID().push(); 142 } 143 } 144 145 148 public String getJTextArea() { 149 return txtJTextArea().getText(); 150 } 151 152 155 public void setJTextArea(String text) { 156 txtJTextArea().setText(text); 157 } 158 159 162 public void typeJTextArea(String text) { 163 txtJTextArea().typeText(text); 164 } 165 166 167 171 173 public void verify() { 174 lblCatalogURL(); 175 txtCatalogURL(); 176 btBrowse(); 177 cbPreferPublicID(); 178 txtJTextArea(); 179 } 180 181 184 public static void main(String args[]) { 185 new OASISCatalogCustomizerDialogOperator().verify(); 186 System.out.println("CustomizerDialogDialogOperator verification finished."); 187 } 188 } 189 190 | Popular Tags |