OSDN Git Service

2005-04-19 Roman Kennke <roman@kennke.org>
[pf3gnuchains/gcc-fork.git] / libjava / javax / swing / DefaultCellEditor.java
1 /* DefaultCellEditor.java --
2    Copyright (C) 2002, 2004 Free Software Foundation, Inc.
3
4 This file is part of GNU Classpath.
5
6 GNU Classpath is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2, or (at your option)
9 any later version.
10
11 GNU Classpath is distributed in the hope that it will be useful, but
12 WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with GNU Classpath; see the file COPYING.  If not, write to the
18 Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
19 02111-1307 USA.
20
21 Linking this library statically or dynamically with other modules is
22 making a combined work based on this library.  Thus, the terms and
23 conditions of the GNU General Public License cover the whole
24 combination.
25
26 As a special exception, the copyright holders of this library give you
27 permission to link this library with independent modules to produce an
28 executable, regardless of the license terms of these independent
29 modules, and to copy and distribute the resulting executable under
30 terms of your choice, provided that you also meet, for each linked
31 independent module, the terms and conditions of the license of that
32 module.  An independent module is a module which is not derived from
33 or based on this library.  If you modify this library, you may extend
34 this exception to your version of the library, but you are not
35 obligated to do so.  If you do not wish to do so, delete this
36 exception statement from your version. */
37
38
39 package javax.swing;
40
41 import java.awt.Component;
42 import java.awt.event.ActionEvent;
43 import java.awt.event.ActionListener;
44 import java.awt.event.ItemEvent;
45 import java.awt.event.ItemListener;
46 import java.io.Serializable;
47 import java.util.EventObject;
48
49 import javax.swing.table.TableCellEditor;
50 import javax.swing.tree.TreeCellEditor;
51
52 /**
53  * DefaultCellEditor
54  * @author      Andrew Selkirk
55  * @version     1.0
56  */
57 public class DefaultCellEditor
58   extends AbstractCellEditor
59   implements TableCellEditor, TreeCellEditor
60 {
61   private static final long serialVersionUID = 3564035141373880027L;
62
63   /**
64    * EditorDelegate
65    */
66   protected class EditorDelegate
67     implements ActionListener, ItemListener, Serializable
68   {
69     private static final long serialVersionUID = -1420007406015481933L;
70
71     /**
72      * value
73      */
74     protected Object value;
75
76     /**
77      * Constructor EditorDelegate
78      * @param value0 TODO
79      */
80     protected EditorDelegate()
81     {
82     }
83
84     /**
85      * setValue
86      * @param event TODO
87      */
88     public void setValue(Object event)
89     {
90     }
91
92                 /**
93                  * getCellEditorValue
94                  * @returns Object
95                  */
96                 public Object getCellEditorValue() {
97                         return null; // TODO
98                 } // getCellEditorValue()
99
100                 /**
101                  * isCellEditable
102                  * @param event TODO
103                  * @returns boolean
104                  */
105                 public boolean isCellEditable(EventObject event) {
106                         return false; // TODO
107                 } // isCellEditable()
108
109                 /**
110                  * shouldSelectCell
111                  * @param event TODO
112                  * @returns boolean
113                  */
114                 public boolean shouldSelectCell(EventObject event) {
115                         return false; // TODO
116                 } // shouldSelectCell()
117
118                 /**
119                  * stopCellEditing
120                  * @returns boolean
121                  */
122                 public boolean stopCellEditing() {
123                         return false; // TODO
124                 } // stopCellEditing()
125
126                 /**
127                  * cancelCellEditing
128                  */
129                 public void cancelCellEditing() {
130                         // TODO
131                 } // cancelCellEditing()
132
133                 /**
134                  * startCellEditing
135                  * @param event TODO
136                  * @returns boolean
137                  */
138                 public boolean startCellEditing(EventObject event) {
139                         return false; // TODO
140                 } // startCellEditing()
141
142                 /**
143                  * actionPerformed
144                  * @param event TODO
145                  */
146                 public void actionPerformed(ActionEvent event) {
147                         // TODO
148                 } // actionPerformed()
149
150                 /**
151                  * itemStateChanged
152                  * @param event TODO
153                  */
154                 public void itemStateChanged(ItemEvent event) {
155                         // TODO
156                 } // itemStateChanged()
157
158
159         } // EditorDelegate
160
161         /**
162          * editorComponent
163          */
164         protected JComponent editorComponent;
165
166         /**
167          * delegate
168          */
169         protected EditorDelegate delegate;
170
171         /**
172          * clickCountToStart
173          */
174         protected int clickCountToStart;
175
176         /**
177          * Constructor DefaultCellEditor
178          * @param textfield TODO
179          */
180         public DefaultCellEditor(JTextField textfield) {
181                 // TODO
182         } // DefaultCellEditor()
183
184         /**
185          * Constructor DefaultCellEditor
186          * @param checkbox TODO
187          */
188         public DefaultCellEditor(JCheckBox checkbox) {
189                 // TODO
190         } // DefaultCellEditor()
191
192         /**
193          * Constructor DefaultCellEditor
194          * @param combobox TODO
195          */
196         public DefaultCellEditor(JComboBox combobox) {
197                 // TODO
198         } // DefaultCellEditor()
199
200         /**
201          * getComponent
202          * @returns Component
203          */
204         public Component getComponent() {
205                 return null; // TODO
206         } // getComponent()
207
208         /**
209          * getClickCountToStart
210          * @returns int
211          */
212         public int getClickCountToStart() {
213                 return 0; // TODO
214         } // getClickCountToStart()
215
216         /**
217          * setClickCountToStart
218          * @param count TODO
219          */
220         public void setClickCountToStart(int count) {
221                 // TODO
222         } // setClickCountToStart()
223
224         /**
225          * getCellEditorValue
226          * @returns Object
227          */
228         public Object getCellEditorValue() {
229                 return null; // TODO
230         } // getCellEditorValue()
231
232         /**
233          * isCellEditable
234          * @param event TODO
235          * @returns boolean
236          */
237         public boolean isCellEditable(EventObject event) {
238                 return false; // TODO
239         } // isCellEditable()
240
241         /**
242          * shouldSelectCell
243          * @param event TODO
244          * @returns boolean
245          */
246         public boolean shouldSelectCell(EventObject event) {
247                 return false; // TODO
248         } // shouldSelectCell()
249
250         /**
251          * stopCellEditing
252          * @returns boolean
253          */
254         public boolean stopCellEditing() {
255                 return false; // TODO
256         } // stopCellEditing()
257
258         /**
259          * cancelCellEditing
260          */
261         public void cancelCellEditing() {
262                 // TODO
263         } // cancelCellEditing()
264
265         /**
266          * getTreeCellEditorComponent
267          * @param tree TODO
268          * @param value TODO
269          * @param isSelected TODO
270          * @param expanded TODO
271          * @param leaf TODO
272          * @param row TODO
273          * @returns Component
274          */
275         public Component getTreeCellEditorComponent(JTree tree,
276                         Object value, boolean isSelected, boolean expanded,
277                         boolean leaf, int row) {
278                 return null; // TODO
279         } // getTreeCellEditorComponent()
280
281         /**
282          * getTableCellEditorComponent
283          * @param tree TODO
284          * @param value TODO
285          * @param isSelected TODO
286          * @param row TODO
287          * @param column TODO
288          * @returns Component
289          */
290         public Component getTableCellEditorComponent(JTable tree, 
291                         Object value, boolean isSelected, int row, int column) {
292                 return null; // TODO
293         } // getTableCellEditorComponent()
294 }