KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > netbeans > jellytools > modules > xml > catalog > operators > UserCatalogOperator


1 /*
2  * The contents of this file are subject to the terms of the Common Development
3  * and Distribution License (the License). You may not use this file except in
4  * compliance with the License.
5  *
6  * You can obtain a copy of the License at http://www.netbeans.org/cddl.html
7  * or http://www.netbeans.org/cddl.txt.
8  *
9  * When distributing Covered Code, include this CDDL Header Notice in each file
10  * and include the License file at http://www.netbeans.org/cddl.txt.
11  * If applicable, add the following below the CDDL Header, with the fields
12  * enclosed by brackets [] replaced by your own identifying information:
13  * "Portions Copyrighted [year] [name of copyright owner]"
14  *
15  * The Original Software is NetBeans. The Initial Developer of the Original
16  * Software is Sun Microsystems, Inc. Portions Copyright 1997-2006 Sun
17  * Microsystems, Inc. All Rights Reserved.
18  */

19 /*
20  * UserCatalogOperator.java
21  *
22  * Created on September 19, 2006, 2:51 PM
23  *
24  * To change this template, choose Tools | Template Manager
25  * and open the template in the editor.
26  */

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 /**
36  *
37  * @author jindra
38  */

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     /** Creates a new instance of UserCatalogOperator */
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