KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > nqadmin > swingSet > SSCellEditingAdapter


1 /* $Id: SSCellEditingAdapter.java,v 1.7 2005/02/04 22:48:52 yoda2 Exp $
2  *
3  * Tab Spacing = 4
4  *
5  * Copyright (c) 2003-2005, The Pangburn Company and Prasanth R. Pasala
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  *
11  * Redistributions of source code must retain the above copyright notice, this
12  * list of conditions and the following disclaimer. Redistributions in binary
13  * form must reproduce the above copyright notice, this list of conditions and
14  * the following disclaimer in the documentation and/or other materials
15  * provided with the distribution. The names of its contributors may not be
16  * used to endorse or promote products derived from this software without
17  * specific prior written permission.
18  *
19  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
23  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29  * POSSIBILITY OF SUCH DAMAGE.
30  *
31  */

32
33 package com.nqadmin.swingSet;
34
35 import javax.swing.*;
36 import java.io.Serializable JavaDoc;
37
38 /**
39  * SSCellEditingAdapter.java
40  *<p>
41  * SwingSet - Open Toolkit For Making Swing Controls Database-Aware
42  *<p><pre>
43  * This abstract adapter class is provided as a convenience for creating
44  * custom SSCellEditing objects. Extend this class to create a SSCellEditing
45  * implementation.
46  *
47  * SSCellEditingAdapter defines empty functions so that the programmer can define
48  * only the functions desired. Both isCellEditable() and cellUpdateRequested()
49  * always return true.
50  *</pre><p>
51  * @author $Author: yoda2 $
52  * @version $Revision: 1.7 $
53  */

54 public abstract class SSCellEditingAdapter implements SSCellEditing, Serializable JavaDoc {
55
56     /**
57      * This empty implementation always returns true.
58      * For description about the function look in SSCellEditing class.
59      */

60     public boolean isCellEditable(int _row, int _column) {
61         return true;
62     }
63
64     /**
65      * This empty implementation always returns true.
66      * For description about the function look in SSCellEditing class.
67      */

68     public boolean cellUpdateRequested(int _row, int _column, Object JavaDoc _oldValue, Object JavaDoc _newValue){
69         return true;
70     }
71
72 } // end public abstract class SSCellEditingAdapter
73

74
75
76 /*
77  * $Log: SSCellEditingAdapter.java,v $
78  * Revision 1.7 2005/02/04 22:48:52 yoda2
79  * API cleanup & updated Copyright info.
80  *
81  * Revision 1.6 2004/11/11 14:45:48 yoda2
82  * Using TextPad, converted all tabs to "soft" tabs comprised of four actual spaces.
83  *
84  * Revision 1.5 2004/08/10 22:06:58 yoda2
85  * Added/edited JavaDoc, made code layout more uniform across classes, made various small coding improvements suggested by PMD.
86  *
87  * Revision 1.4 2004/08/02 14:29:46 prasanth
88  * implements serializable.
89  *
90  * Revision 1.3 2004/03/08 16:43:37 prasanth
91  * Updated copy right year.
92  *
93  * Revision 1.2 2003/12/18 20:13:00 prasanth
94  * Update class description.
95  *
96  * Revision 1.1 2003/12/16 18:02:47 prasanth
97  * Initial version.
98  *
99  */
Popular Tags