1 19 24 package org.netbeans.jellytools.modules.xml.saxwizard; 25 26 import org.netbeans.jellytools.WizardOperator; 27 import org.netbeans.jemmy.operators.*; 28 29 34 public class SAXDocumentHandlerWizardPage4 extends WizardOperator { 35 36 38 public SAXDocumentHandlerWizardPage4() { 39 super("SAX Document Handler Wizard"); 40 } 41 42 private JLabelOperator _lblSteps; 43 private JListOperator _lstSteps; 44 private JLabelOperator _lbl4Of4OutputFileNames; 45 private JTextAreaOperator _txtJTextArea; 46 private JLabelOperator _lblHandlerInterface; 47 private JTextFieldOperator _txtHandlerInterface; 48 private JLabelOperator _lblHandlerImplementation; 49 private JTextFieldOperator _txtHandlerImplementation; 50 private JLabelOperator _lblGeneratedParser; 51 private JTextFieldOperator _txtGeneratedParser; 52 private JLabelOperator _lblDataConvertorInterface; 53 private JTextFieldOperator _txtDataConvertorInterface; 54 private JLabelOperator _lblDataConvertorImplementation; 55 private JTextFieldOperator _txtDataConvertorImplementation; 56 private JCheckBoxOperator _cbSaveCustomizedBindings; 57 private JLabelOperator _lblLocation; 58 private JTextFieldOperator _txtLocation; 59 private JButtonOperator _btCancel; 60 private JButtonOperator _btHelp; 61 62 63 67 70 public JLabelOperator lblSteps() { 71 if (_lblSteps==null) { 72 _lblSteps = new JLabelOperator(this, "Steps"); 73 } 74 return _lblSteps; 75 } 76 77 80 public JListOperator lstSteps() { 81 if (_lstSteps==null) { 82 _lstSteps = new JListOperator(this); 83 } 84 return _lstSteps; 85 } 86 87 90 public JLabelOperator lbl4Of4OutputFileNames() { 91 if (_lbl4Of4OutputFileNames==null) { 92 _lbl4Of4OutputFileNames = new JLabelOperator(this, "4 of 4 - Output File Names"); 93 } 94 return _lbl4Of4OutputFileNames; 95 } 96 97 100 public JTextAreaOperator txtJTextArea() { 101 if (_txtJTextArea==null) { 102 _txtJTextArea = new JTextAreaOperator(this); 103 } 104 return _txtJTextArea; 105 } 106 107 110 public JLabelOperator lblHandlerInterface() { 111 if (_lblHandlerInterface==null) { 112 _lblHandlerInterface = new JLabelOperator(this, "Handler Interface:"); 113 } 114 return _lblHandlerInterface; 115 } 116 117 120 public JTextFieldOperator txtHandlerInterface() { 121 if (_txtHandlerInterface==null) { 122 _txtHandlerInterface = new JTextFieldOperator(this); 123 } 124 return _txtHandlerInterface; 125 } 126 127 130 public JLabelOperator lblHandlerImplementation() { 131 if (_lblHandlerImplementation==null) { 132 _lblHandlerImplementation = new JLabelOperator(this, "Handler Implementation:"); 133 } 134 return _lblHandlerImplementation; 135 } 136 137 140 public JTextFieldOperator txtHandlerImplementation() { 141 if (_txtHandlerImplementation==null) { 142 _txtHandlerImplementation = new JTextFieldOperator(this, 1); 143 } 144 return _txtHandlerImplementation; 145 } 146 147 150 public JLabelOperator lblGeneratedParser() { 151 if (_lblGeneratedParser==null) { 152 _lblGeneratedParser = new JLabelOperator(this, "Generated Parser:"); 153 } 154 return _lblGeneratedParser; 155 } 156 157 160 public JTextFieldOperator txtGeneratedParser() { 161 if (_txtGeneratedParser==null) { 162 _txtGeneratedParser = new JTextFieldOperator(this, 2); 163 } 164 return _txtGeneratedParser; 165 } 166 167 170 public JLabelOperator lblDataConvertorInterface() { 171 if (_lblDataConvertorInterface==null) { 172 _lblDataConvertorInterface = new JLabelOperator(this, "Data Convertor Interface:"); 173 } 174 return _lblDataConvertorInterface; 175 } 176 177 180 public JTextFieldOperator txtDataConvertorInterface() { 181 if (_txtDataConvertorInterface==null) { 182 _txtDataConvertorInterface = new JTextFieldOperator(this, 3); 183 } 184 return _txtDataConvertorInterface; 185 } 186 187 190 public JLabelOperator lblDataConvertorImplementation() { 191 if (_lblDataConvertorImplementation==null) { 192 _lblDataConvertorImplementation = new JLabelOperator(this, "Data Convertor Implementation:"); 193 } 194 return _lblDataConvertorImplementation; 195 } 196 197 200 public JTextFieldOperator txtDataConvertorImplementation() { 201 if (_txtDataConvertorImplementation==null) { 202 _txtDataConvertorImplementation = new JTextFieldOperator(this, 4); 203 } 204 return _txtDataConvertorImplementation; 205 } 206 207 210 public JCheckBoxOperator cbSaveCustomizedBindings() { 211 if (_cbSaveCustomizedBindings==null) { 212 _cbSaveCustomizedBindings = new JCheckBoxOperator(this, " Save Customized Bindings"); 213 } 214 return _cbSaveCustomizedBindings; 215 } 216 217 220 public JLabelOperator lblLocation() { 221 if (_lblLocation==null) { 222 _lblLocation = new JLabelOperator(this, "Location:"); 223 } 224 return _lblLocation; 225 } 226 227 230 public JTextFieldOperator txtLocation() { 231 if (_txtLocation==null) { 232 _txtLocation = new JTextFieldOperator(this, 5); 233 } 234 return _txtLocation; 235 } 236 237 240 public JButtonOperator btCancel() { 241 if (_btCancel==null) { 242 _btCancel = new JButtonOperator(this, "Cancel"); 243 } 244 return _btCancel; 245 } 246 247 250 public JButtonOperator btHelp() { 251 if (_btHelp==null) { 252 _btHelp = new JButtonOperator(this, "Help"); 253 } 254 return _btHelp; 255 } 256 257 258 262 265 public String getJTextArea() { 266 return txtJTextArea().getText(); 267 } 268 269 272 public void setJTextArea(String text) { 273 txtJTextArea().setText(text); 274 } 275 276 279 public void typeJTextArea(String text) { 280 txtJTextArea().typeText(text); 281 } 282 283 286 public String getHandlerInterface() { 287 return txtHandlerInterface().getText(); 288 } 289 290 293 public void setHandlerInterface(String text) { 294 txtHandlerInterface().setText(text); 295 } 296 297 300 public void typeHandlerInterface(String text) { 301 txtHandlerInterface().typeText(text); 302 } 303 304 307 public String getHandlerImplementation() { 308 return txtHandlerImplementation().getText(); 309 } 310 311 314 public void setHandlerImplementation(String text) { 315 txtHandlerImplementation().setText(text); 316 } 317 318 321 public void typeHandlerImplementation(String text) { 322 txtHandlerImplementation().typeText(text); 323 } 324 325 328 public String getGeneratedParser() { 329 return txtGeneratedParser().getText(); 330 } 331 332 335 public void setGeneratedParser(String text) { 336 txtGeneratedParser().setText(text); 337 } 338 339 342 public void typeGeneratedParser(String text) { 343 txtGeneratedParser().typeText(text); 344 } 345 346 349 public String getDataConvertorInterface() { 350 return txtDataConvertorInterface().getText(); 351 } 352 353 356 public void setDataConvertorInterface(String text) { 357 txtDataConvertorInterface().setText(text); 358 } 359 360 363 public void typeDataConvertorInterface(String text) { 364 txtDataConvertorInterface().typeText(text); 365 } 366 367 370 public String getDataConvertorImplementation() { 371 return txtDataConvertorImplementation().getText(); 372 } 373 374 377 public void setDataConvertorImplementation(String text) { 378 txtDataConvertorImplementation().setText(text); 379 } 380 381 384 public void typeDataConvertorImplementation(String text) { 385 txtDataConvertorImplementation().typeText(text); 386 } 387 388 391 public void checkSaveCustomizedBindings(boolean state) { 392 if (cbSaveCustomizedBindings().isSelected()!=state) { 393 cbSaveCustomizedBindings().push(); 394 } 395 } 396 397 400 public String getBindingsLocation() { 401 return txtLocation().getText(); 402 } 403 404 407 public void setLocation(String text) { 408 txtLocation().setText(text); 409 } 410 411 414 public void typeLocation(String text) { 415 txtLocation().typeText(text); 416 } 417 418 420 public void cancel() { 421 btCancel().push(); 422 } 423 424 426 public void help() { 427 btHelp().push(); 428 } 429 430 431 435 437 public void verify() { 438 lblSteps(); 439 lstSteps(); 440 lbl4Of4OutputFileNames(); 441 txtJTextArea(); 442 lblHandlerInterface(); 443 txtHandlerInterface(); 444 lblHandlerImplementation(); 445 txtHandlerImplementation(); 446 lblGeneratedParser(); 447 txtGeneratedParser(); 448 lblDataConvertorInterface(); 449 txtDataConvertorInterface(); 450 lblDataConvertorImplementation(); 451 txtDataConvertorImplementation(); 452 cbSaveCustomizedBindings(); 453 lblLocation(); 454 txtLocation(); 455 btCancel(); 456 btHelp(); 457 } 458 459 462 public static void main(String args[]) { 463 new SAXDocumentHandlerWizardPage4().verify(); 464 System.out.println("SAXDocumentHandlerWizardPage4 verification finished."); 465 } 466 } 467 468 | Popular Tags |