1 19 27 28 package org.netbeans.jellytools.modules.xml.catalog.operators; 29 30 import org.netbeans.jellytools.NbDialogOperator; 31 import org.netbeans.jemmy.operators.JButtonOperator; 32 import org.netbeans.jemmy.operators.JRadioButtonOperator; 33 import org.netbeans.jemmy.operators.JTextFieldOperator; 34 35 39 public class UserCatalogOperator extends NbDialogOperator { 40 41 private JTextFieldOperator _txtPublic; 42 private JTextFieldOperator _txtUri; 43 private JButtonOperator _btBrowse; 44 private JRadioButtonOperator _rbPublic; 45 46 47 public UserCatalogOperator() { 48 super("Register"); 49 50 } 51 52 public JButtonOperator btBrowse() { 53 if (_btBrowse==null) { 54 _btBrowse = new JButtonOperator(this, "Browse..."); 55 } 56 return _btBrowse; 57 } 58 59 public JRadioButtonOperator rbPublic() { 60 if (_rbPublic==null) { 61 _rbPublic = new JRadioButtonOperator(this, "Public ID:"); 62 } 63 return _rbPublic; 64 } 65 66 public JTextFieldOperator txtPublic() { 67 if (_txtPublic==null) { 68 _txtPublic = new JTextFieldOperator(this, ""); 69 } 70 return _txtPublic; 71 } 72 73 public JTextFieldOperator txtUri() { 74 if (_txtUri==null) { 75 _txtUri = new JTextFieldOperator(this, 2); 76 } 77 return _txtUri; 78 } 79 80 } 81 | Popular Tags |