1 19 package org.netbeans.jellytools.modules.xml; 20 21 import org.netbeans.jemmy.operators.*; 22 23 28 public class SelectXSLTSourceDialog extends JDialogOperator { 29 30 33 public SelectXSLTSourceDialog() { 34 super( "Select XML Document" ); 35 } 36 37 private JTreeOperator _treeTreeView; 38 private JLabelOperator _lblSelect; 39 private JButtonOperator _btOK; 40 private JButtonOperator _btCancel; 41 private JComboBoxOperator _cboSelect; 42 public static final String ITEM_HOMEMS113234NETBEANS34BETASAMPLEDIR = "/home/ms113234/.netbeans/3.4beta/sampledir"; 43 44 45 49 53 public JTreeOperator treeTreeView() { 54 if (_treeTreeView==null) { 55 _treeTreeView = new JTreeOperator(this, 0); 56 } 57 return _treeTreeView; 58 } 59 60 64 public JLabelOperator lblSelect() { 65 if (_lblSelect==null) { 66 _lblSelect = new JLabelOperator( this, "Select:", 0 ); 67 } 68 return _lblSelect; 69 } 70 71 75 public JButtonOperator btOK() { 76 if (_btOK==null) { 77 _btOK = new JButtonOperator( this, "OK", 0 ); 78 } 79 return _btOK; 80 } 81 82 86 public JButtonOperator btCancel() { 87 if (_btCancel==null) { 88 _btCancel = new JButtonOperator( this, "Cancel", 0 ); 89 } 90 return _btCancel; 91 } 92 93 97 public JComboBoxOperator cboSelect() { 98 if (_cboSelect==null) { 99 _cboSelect = new JComboBoxOperator(this, 0); 100 } 101 return _cboSelect; 102 } 103 104 105 109 112 public void oK() { 113 btOK().push(); 114 } 115 116 119 public void cancel() { 120 btCancel().push(); 121 } 122 123 126 public void setSelect( String item ) { 127 cboSelect().selectItem(item, true, true); 128 } 129 130 131 135 138 public void verify() { 139 treeTreeView(); 140 lblSelect(); 141 btOK(); 142 btCancel(); 143 cboSelect(); 144 } 145 146 149 public static void main(String args[]) { 150 new SelectXSLTSourceDialog().verify(); 151 System.out.println("SelectXSLTSourceDialog verification finished."); 152 } 153 } 154 | Popular Tags |