KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > cjdbc > console > wizard > objects > User


1 /**
2  * C-JDBC: Clustered JDBC.
3  * Copyright (C) 2002-2004 French National Institute For Research In Computer
4  * Science And Control (INRIA).
5  * Contact: c-jdbc@objectweb.org
6  *
7  * This library is free software; you can redistribute it and/or modify it
8  * under the terms of the GNU Lesser General Public License as published by the
9  * Free Software Foundation; either version 2.1 of the License, or any later
10  * version.
11  *
12  * This library is distributed in the hope that it will be useful, but WITHOUT
13  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
15  * for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public License
18  * along with this library; if not, write to the Free Software Foundation,
19  * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
20  *
21  * Initial developer(s): Nicolas Modrzyk.
22  * Contributor(s): ______________________.
23  */

24
25 package org.objectweb.cjdbc.console.wizard.objects;
26
27 import javax.swing.JComponent JavaDoc;
28
29 import org.objectweb.cjdbc.common.i18n.WizardTranslate;
30
31 /**
32  * <code>User</code> class is used to store user name and password and access
33  * them from different fields and forms in the wizard
34  *
35  * @author <a HREF="mailto:Nicolas.Modrzyk@inria.fr">Nicolas Modrzyk </a>
36  * @version 1.0
37  */

38 public class User extends JComponent JavaDoc
39 {
40   String JavaDoc password;
41   String JavaDoc username = WizardTranslate.get("label.user.undefined");
42
43   /**
44    * Returns the password value.
45    *
46    * @return Returns the password.
47    */

48   public String JavaDoc getPassword()
49   {
50     return password;
51   }
52
53   /**
54    * Sets the password value.
55    *
56    * @param password The password to set.
57    */

58   public void setPassword(String JavaDoc password)
59   {
60     this.password = password;
61   }
62
63   /**
64    * Returns the username value.
65    *
66    * @return Returns the username.
67    */

68   public String JavaDoc getUsername()
69   {
70     return username;
71   }
72
73   /**
74    * Sets the username value.
75    *
76    * @param username The username to set.
77    */

78   public void setUsername(String JavaDoc username)
79   {
80     this.username = username;
81   }
82
83   /**
84    * @see java.lang.Object#toString()
85    */

86   public String JavaDoc toString()
87   {
88     return username;
89   }
90 }
Popular Tags