KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > common > properties > PasswordRender


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * PasswordRenderEdit.java
26  *
27  * Created on March 19, 2002, 11:56 AM
28  */

29
30 package com.sun.enterprise.tools.common.properties;
31
32 /**
33  *
34  * @author vkraemer
35  * @version
36  */

37 public class PasswordRender extends javax.swing.JPasswordField JavaDoc implements javax.swing.table.TableCellRenderer JavaDoc {
38
39     /** Creates new PasswordRenderEdit */
40     public PasswordRender() {
41     }
42
43     /*public java.awt.Component getTableCellEditorComponent(javax.swing.JTable jTable, java.lang.Object obj, boolean param, int param3, int param4) {
44         setText((String) obj);
45         return this;
46     }
47     */

48     public java.awt.Component JavaDoc getTableCellRendererComponent(javax.swing.JTable JavaDoc jTable, java.lang.Object JavaDoc obj, boolean param, boolean param3, int param4, int param5) {
49         setText((String JavaDoc) obj);
50         return this;
51     }
52 /*
53     public java.lang.Object getCellEditorValue() {
54         return getText();
55     }
56
57     public void cancelCellEditing() {
58     }
59     
60     public void addCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener) {
61     }
62     
63     public void removeCellEditorListener(javax.swing.event.CellEditorListener cellEditorListener) {
64     }
65     
66     public boolean stopCellEditing() {
67         return true;
68     }
69     
70     public boolean isCellEditable(java.util.EventObject eventObject) {
71         return true;
72     }
73     
74     public boolean shouldSelectCell(java.util.EventObject eventObject) {
75         return true;
76     }
77     
78 */

79 }
80
Popular Tags