1 6 package org.netbeans.test.subversion.operators; 7 8 import org.netbeans.jellytools.NbDialogOperator; 9 import org.netbeans.jellytools.nodes.Node; 10 import org.netbeans.jemmy.operators.*; 11 12 17 public class RepositoryBrowserSearchHistoryOperator extends NbDialogOperator { 18 19 21 public RepositoryBrowserSearchHistoryOperator() { 22 super("Browse Repository"); 23 } 24 25 private JTreeOperator _tree; 26 private JLabelOperator _lblSpecifyFolderToCheckout; 27 private JButtonOperator _btOK; 28 private JButtonOperator _btCancel; 29 private JButtonOperator _btHelp; 30 31 32 36 39 public JTreeOperator tree() { 40 if (_tree == null) { 41 _tree= new JTreeOperator(this); 42 } 43 return _tree; 44 } 45 46 49 public JLabelOperator lblSpecifyFolderToCheckout() { 50 if (_lblSpecifyFolderToCheckout==null) { 51 _lblSpecifyFolderToCheckout = new JLabelOperator(this, "Choose"); 52 } 53 return _lblSpecifyFolderToCheckout; 54 } 55 56 60 63 public void selectFolder(String path) { 64 new Node(tree(), path).select(); 65 } 66 67 70 public JButtonOperator btOK() { 71 if (_btOK==null) { 72 _btOK = new JButtonOperator(this, "OK"); 73 } 74 return _btOK; 75 } 76 77 80 public JButtonOperator btCancel() { 81 if (_btCancel==null) { 82 _btCancel = new JButtonOperator(this, "Cancel"); 83 } 84 return _btCancel; 85 } 86 87 90 public JButtonOperator btHelp() { 91 if (_btHelp==null) { 92 _btHelp = new JButtonOperator(this, "Help"); 93 } 94 return _btHelp; 95 } 96 97 98 102 104 public void ok() { 105 btOK().push(); 106 } 107 108 110 public void cancel() { 111 btCancel().push(); 112 } 113 114 116 public void help() { 117 btHelp().push(); 118 } 119 120 121 125 127 public void verify() { 128 tree(); 129 lblSpecifyFolderToCheckout(); 130 btOK(); 131 btCancel(); 132 btHelp(); 133 } 134 } 135 136 | Popular Tags |