KickJava   Java API By Example, From Geeks To Geeks.

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


1 /* $Id: SSDBNavAdapter.java,v 1.9 2005/02/09 17:21:21 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 java.io.Serializable JavaDoc;
36
37 /**
38  * SSDBNavAdapter.java
39  *<p>
40  * SwingSet - Open Toolkit For Making Swing Controls Database-Aware
41  *<p><pre>
42  * Abstract class that provides empty implementations of all the methods for the
43  * SSDBNav interface.
44  *
45  * This class is provided for convenience. so that users wishing to write their
46  * own SSDBNav implementations can just extend the abstract class and override
47  * the desired methods.
48  *</pre><p>
49  * @author $Author: yoda2 $
50  * @version $Revision: 1.9 $
51  */

52 public class SSDBNavAdapter implements SSDBNav, Serializable JavaDoc {
53
54     /**
55      * Method to perform pre-insertion operations.
56      */

57     public void performPreInsertOps(){
58     }
59
60     /**
61      * Method to perform post-insertion operations.
62      *
63      * In addition to this you can have a listener on the SSRowSet attached
64      * to a SSDataNavigator to get notified when a row is inserted.
65      */

66     public void performPostInsertOps(){
67     }
68
69     /**
70      * Method to perform operations when the user is on the insert row and
71      * cancels the insert by clicking on the undo button.
72      */

73     public void performCancelOps(){
74     }
75     
76     /**
77      * Method to perform pre-deletion operations.
78      *
79      * SSRowSet does not provide any notifications before the deletion of a row. but a notification
80      * will be received after the deletion if you have listener for the SSRowSet.
81      */

82     public void performPreDeletionOps(){
83     }
84
85     /**
86      * Method to perform post-deletion operations.
87      *
88      * The SSRowSet listener also provides the notification after the deletion of the row.
89      */

90     public void performPostDeletionOps(){
91     }
92
93     /**
94      * Method to perform navigation-related operations.
95      *
96      * Possible values are NAVIGATION_NEXT, NAVIGATION_PREVIOUS, NAVIGATION_FIRST,
97      * NAVIGATION_LAST.
98      *
99      * @param _navigationType this indicates the type of navigation.
100      */

101     public void performNavigationOps(int _navigationType){
102     }
103
104     /**
105      * Method to perform operations when the user hits the refresh button.
106      */

107     public void performRefreshOps(){
108     }
109
110 } // end public class SSDBNavAdapter implements SSDBNav, Serializable {
111

112
113
114 /*
115  * $Log: SSDBNavAdapter.java,v $
116  * Revision 1.9 2005/02/09 17:21:21 yoda2
117  * JavaDoc cleanup.
118  *
119  * Revision 1.8 2005/02/04 22:48:53 yoda2
120  * API cleanup & updated Copyright info.
121  *
122  * Revision 1.7 2004/11/11 14:45:48 yoda2
123  * Using TextPad, converted all tabs to "soft" tabs comprised of four actual spaces.
124  *
125  * Revision 1.6 2004/08/10 22:06:59 yoda2
126  * Added/edited JavaDoc, made code layout more uniform across classes, made various small coding improvements suggested by PMD.
127  *
128  * Revision 1.5 2004/08/02 15:22:51 prasanth
129  * Implements Serializable.
130  *
131  * Revision 1.4 2004/03/08 16:43:37 prasanth
132  * Updated copy right year.
133  *
134  * Revision 1.3 2003/11/26 21:22:11 prasanth
135  * Added function performCancelOps().
136  *
137  * Revision 1.2 2003/09/25 14:27:45 yoda2
138  * Removed unused Import statements and added preformatting tags to JavaDoc descriptions.
139  *
140  * Revision 1.1.1.1 2003/09/25 13:56:43 yoda2
141  * Initial CVS import for SwingSet.
142  *
143  */
Popular Tags