1 19 20 package org.netbeans.qa.form; 21 22 import org.netbeans.jemmy.operators.*; 23 24 30 public class NewBeanFormSuperclassOperator extends JDialogOperator { 31 32 34 public NewBeanFormSuperclassOperator() { 35 super("New File"); } 37 38 private JLabelOperator _lblSteps; 39 private JListOperator _lstSteps; 40 public static final String ITEM_3 = "3."; private JLabelOperator _lblFormSuperclass; 42 private JLabelOperator _lblSuperclass; 43 private JTextFieldOperator _txtSuperclass; 44 private JLabelOperator _lblWizardDescriptor$FixedHeightLabel; 45 private JButtonOperator _btBack; 46 private JButtonOperator _btNext; 47 private JButtonOperator _btFinish; 48 private JButtonOperator _btCancel; 49 private JButtonOperator _btHelp; 50 51 52 56 59 public JLabelOperator lblSteps() { 60 if (_lblSteps==null) { 61 _lblSteps = new JLabelOperator(this, "Steps"); } 63 return _lblSteps; 64 } 65 66 69 public JListOperator lstSteps() { 70 if (_lstSteps==null) { 71 _lstSteps = new JListOperator(this); 72 } 73 return _lstSteps; 74 } 75 76 79 public JLabelOperator lblFormSuperclass() { 80 if (_lblFormSuperclass==null) { 81 _lblFormSuperclass = new JLabelOperator(this, "Form Superclass"); } 83 return _lblFormSuperclass; 84 } 85 86 89 public JLabelOperator lblSuperclass() { 90 if (_lblSuperclass==null) { 91 _lblSuperclass = new JLabelOperator(this, "Superclass:"); } 93 return _lblSuperclass; 94 } 95 96 99 public JTextFieldOperator txtSuperclass() { 100 if (_txtSuperclass==null) { 101 _txtSuperclass = new JTextFieldOperator(this); 102 } 103 return _txtSuperclass; 104 } 105 106 109 public JLabelOperator lblWizardDescriptor$FixedHeightLabel() { 110 if (_lblWizardDescriptor$FixedHeightLabel==null) { 111 _lblWizardDescriptor$FixedHeightLabel = new JLabelOperator(this, " ", 1); } 113 return _lblWizardDescriptor$FixedHeightLabel; 114 } 115 116 119 public JButtonOperator btBack() { 120 if (_btBack==null) { 121 _btBack = new JButtonOperator(this, "< Back"); } 123 return _btBack; 124 } 125 126 129 public JButtonOperator btNext() { 130 if (_btNext==null) { 131 _btNext = new JButtonOperator(this, "Next >"); } 133 return _btNext; 134 } 135 136 139 public JButtonOperator btFinish() { 140 if (_btFinish==null) { 141 _btFinish = new JButtonOperator(this, "Finish"); } 143 return _btFinish; 144 } 145 146 149 public JButtonOperator btCancel() { 150 if (_btCancel==null) { 151 _btCancel = new JButtonOperator(this, "Cancel"); } 153 return _btCancel; 154 } 155 156 159 public JButtonOperator btHelp() { 160 if (_btHelp==null) { 161 _btHelp = new JButtonOperator(this, "Help"); } 163 return _btHelp; 164 } 165 166 167 171 174 public String getSuperclass() { 175 return txtSuperclass().getText(); 176 } 177 178 181 public void setSuperclass(String text) { 182 txtSuperclass().setText(text); 183 } 184 185 188 public void typeSuperclass(String text) { 189 txtSuperclass().typeText(text); 190 } 191 192 194 public void back() { 195 btBack().push(); 196 } 197 198 200 public void next() { 201 btNext().push(); 202 } 203 204 206 public void finish() { 207 btFinish().push(); 208 } 209 210 212 public void cancel() { 213 btCancel().push(); 214 } 215 216 218 public void help() { 219 btHelp().push(); 220 } 221 } 222 223 | Popular Tags |