Merge from mainline (gomp-merge-2005-02-26).
[official-gcc.git] / libjava / javax / swing / DefaultCellEditor.java
blob26bf708be2d1864724ac9349ab95b668e5937940
1 /* DefaultCellEditor.java --
2 Copyright (C) 2002, 2004 Free Software Foundation, Inc.
4 This file is part of GNU Classpath.
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.
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.
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.
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.
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. */
39 package javax.swing;
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;
49 import javax.swing.table.TableCellEditor;
50 import javax.swing.tree.TreeCellEditor;
52 /**
53 * DefaultCellEditor
54 * @author Andrew Selkirk
55 * @version 1.0
57 public class DefaultCellEditor
58 extends AbstractCellEditor
59 implements TableCellEditor, TreeCellEditor
61 private static final long serialVersionUID = 3564035141373880027L;
63 /**
64 * EditorDelegate
66 protected class EditorDelegate
67 implements ActionListener, ItemListener, Serializable
69 private static final long serialVersionUID = -1420007406015481933L;
71 /**
72 * value
74 protected Object value;
76 /**
77 * Constructor EditorDelegate
78 * @param value0 TODO
80 protected EditorDelegate()
84 /**
85 * setValue
86 * @param event TODO
88 public void setValue(Object event)
92 /**
93 * getCellEditorValue
94 * @returns Object
96 public Object getCellEditorValue() {
97 return null; // TODO
98 } // getCellEditorValue()
101 * isCellEditable
102 * @param event TODO
103 * @returns boolean
105 public boolean isCellEditable(EventObject event) {
106 return false; // TODO
107 } // isCellEditable()
110 * shouldSelectCell
111 * @param event TODO
112 * @returns boolean
114 public boolean shouldSelectCell(EventObject event) {
115 return false; // TODO
116 } // shouldSelectCell()
119 * stopCellEditing
120 * @returns boolean
122 public boolean stopCellEditing() {
123 return false; // TODO
124 } // stopCellEditing()
127 * cancelCellEditing
129 public void cancelCellEditing() {
130 // TODO
131 } // cancelCellEditing()
134 * startCellEditing
135 * @param event TODO
136 * @returns boolean
138 public boolean startCellEditing(EventObject event) {
139 return false; // TODO
140 } // startCellEditing()
143 * actionPerformed
144 * @param event TODO
146 public void actionPerformed(ActionEvent event) {
147 // TODO
148 } // actionPerformed()
151 * itemStateChanged
152 * @param event TODO
154 public void itemStateChanged(ItemEvent event) {
155 // TODO
156 } // itemStateChanged()
159 } // EditorDelegate
162 * editorComponent
164 protected JComponent editorComponent;
167 * delegate
169 protected EditorDelegate delegate;
172 * clickCountToStart
174 protected int clickCountToStart;
177 * Constructor DefaultCellEditor
178 * @param textfield TODO
180 public DefaultCellEditor(JTextField textfield) {
181 // TODO
182 } // DefaultCellEditor()
185 * Constructor DefaultCellEditor
186 * @param checkbox TODO
188 public DefaultCellEditor(JCheckBox checkbox) {
189 // TODO
190 } // DefaultCellEditor()
193 * Constructor DefaultCellEditor
194 * @param combobox TODO
196 public DefaultCellEditor(JComboBox combobox) {
197 // TODO
198 } // DefaultCellEditor()
201 * getComponent
202 * @returns Component
204 public Component getComponent() {
205 return null; // TODO
206 } // getComponent()
209 * getClickCountToStart
210 * @returns int
212 public int getClickCountToStart() {
213 return 0; // TODO
214 } // getClickCountToStart()
217 * setClickCountToStart
218 * @param count TODO
220 public void setClickCountToStart(int count) {
221 // TODO
222 } // setClickCountToStart()
225 * getCellEditorValue
226 * @returns Object
228 public Object getCellEditorValue() {
229 return null; // TODO
230 } // getCellEditorValue()
233 * isCellEditable
234 * @param event TODO
235 * @returns boolean
237 public boolean isCellEditable(EventObject event) {
238 return false; // TODO
239 } // isCellEditable()
242 * shouldSelectCell
243 * @param event TODO
244 * @returns boolean
246 public boolean shouldSelectCell(EventObject event) {
247 return false; // TODO
248 } // shouldSelectCell()
251 * stopCellEditing
252 * @returns boolean
254 public boolean stopCellEditing() {
255 return false; // TODO
256 } // stopCellEditing()
259 * cancelCellEditing
261 public void cancelCellEditing() {
262 // TODO
263 } // cancelCellEditing()
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
275 public Component getTreeCellEditorComponent(JTree tree,
276 Object value, boolean isSelected, boolean expanded,
277 boolean leaf, int row) {
278 return null; // TODO
279 } // getTreeCellEditorComponent()
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
290 public Component getTableCellEditorComponent(JTable tree,
291 Object value, boolean isSelected, int row, int column) {
292 return null; // TODO
293 } // getTableCellEditorComponent()