KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > minigrid > ROCellEditor


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2001 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.minigrid;
15
16 import javax.swing.*;
17 import java.util.*;
18
19 /**
20  * Read Only Cell Renderer
21  *
22  * @author Jorg Janke
23  * @version $Id: ROCellEditor.java,v 1.3 2002/02/08 05:43:15 jjanke Exp $
24  */

25 public final class ROCellEditor extends DefaultCellEditor
26 {
27     /**
28      * Constructor
29      */

30     public ROCellEditor()
31     {
32         super(new JTextField());
33     } // ROCellEditor
34

35     /**
36      * Indicate RO
37      * @param anEvent
38      * @return false
39      */

40     public boolean isCellEditable(EventObject anEvent)
41     {
42         return false;
43     } // isCellEditable
44
} // ROCellEditor
45
Popular Tags