GNU Classpath (0.17) | ||
Frames | No Frames |
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., 51 Franklin Street, Fifth Floor, Boston, MA 19: 02110-1301 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: * 79: * @param value0 TODO 80: */ 81: protected EditorDelegate() 82: { 83: } 84: 85: /** 86: * setValue 87: * 88: * @param event TODO 89: */ 90: public void setValue(Object event) 91: { 92: } 93: 94: /** 95: * getCellEditorValue 96: * 97: * @returns Object 98: */ 99: public Object getCellEditorValue() 100: { 101: return null; // TODO 102: } // getCellEditorValue() 103: 104: /** 105: * isCellEditable 106: * 107: * @param event TODO 108: * 109: * @returns boolean 110: */ 111: public boolean isCellEditable(EventObject event) 112: { 113: return false; // TODO 114: } // isCellEditable() 115: 116: /** 117: * shouldSelectCell 118: * 119: * @param event TODO 120: * 121: * @returns boolean 122: */ 123: public boolean shouldSelectCell(EventObject event) 124: { 125: return false; // TODO 126: } // shouldSelectCell() 127: 128: /** 129: * stopCellEditing 130: * 131: * @returns boolean 132: */ 133: public boolean stopCellEditing() 134: { 135: return false; // TODO 136: } // stopCellEditing() 137: 138: /** 139: * cancelCellEditing 140: */ 141: public void cancelCellEditing() 142: { 143: // TODO 144: } // cancelCellEditing() 145: 146: /** 147: * startCellEditing 148: * 149: * @param event TODO 150: * 151: * @returns boolean 152: */ 153: public boolean startCellEditing(EventObject event) 154: { 155: return false; // TODO 156: } // startCellEditing() 157: 158: /** 159: * actionPerformed 160: * 161: * @param event TODO 162: */ 163: public void actionPerformed(ActionEvent event) 164: { 165: // TODO 166: } // actionPerformed() 167: 168: /** 169: * itemStateChanged 170: * 171: * @param event TODO 172: */ 173: public void itemStateChanged(ItemEvent event) 174: { 175: // TODO 176: } // itemStateChanged() 177: 178: } // EditorDelegate 179: 180: /** 181: * editorComponent 182: */ 183: protected JComponent editorComponent; 184: 185: /** 186: * delegate 187: */ 188: protected EditorDelegate delegate; 189: 190: /** 191: * clickCountToStart 192: */ 193: protected int clickCountToStart; 194: 195: /** 196: * Constructor DefaultCellEditor 197: * 198: * @param textfield TODO 199: */ 200: public DefaultCellEditor(JTextField textfield) 201: { 202: // TODO 203: } // DefaultCellEditor() 204: 205: /** 206: * Constructor DefaultCellEditor 207: * 208: * @param checkbox TODO 209: */ 210: public DefaultCellEditor(JCheckBox checkbox) 211: { 212: // TODO 213: } // DefaultCellEditor() 214: 215: /** 216: * Constructor DefaultCellEditor 217: * 218: * @param combobox TODO 219: */ 220: public DefaultCellEditor(JComboBox combobox) 221: { 222: // TODO 223: } // DefaultCellEditor() 224: 225: /** 226: * getComponent 227: * 228: * @returns Component 229: */ 230: public Component getComponent() 231: { 232: return null; // TODO 233: } // getComponent() 234: 235: /** 236: * getClickCountToStart 237: * 238: * @returns int 239: */ 240: public int getClickCountToStart() 241: { 242: return 0; // TODO 243: } // getClickCountToStart() 244: 245: /** 246: * setClickCountToStart 247: * 248: * @param count TODO 249: */ 250: public void setClickCountToStart(int count) 251: { 252: // TODO 253: } // setClickCountToStart() 254: 255: /** 256: * getCellEditorValue 257: * 258: * @returns Object 259: */ 260: public Object getCellEditorValue() 261: { 262: return null; // TODO 263: } // getCellEditorValue() 264: 265: /** 266: * isCellEditable 267: * 268: * @param event TODO 269: * 270: * @returns boolean 271: */ 272: public boolean isCellEditable(EventObject event) 273: { 274: return false; // TODO 275: } // isCellEditable() 276: 277: /** 278: * shouldSelectCell 279: * 280: * @param event TODO 281: * 282: * @returns boolean 283: */ 284: public boolean shouldSelectCell(EventObject event) 285: { 286: return false; // TODO 287: } // shouldSelectCell() 288: 289: /** 290: * stopCellEditing 291: * 292: * @returns boolean 293: */ 294: public boolean stopCellEditing() 295: { 296: return false; // TODO 297: } // stopCellEditing() 298: 299: /** 300: * cancelCellEditing 301: */ 302: public void cancelCellEditing() 303: { 304: // TODO 305: } // cancelCellEditing() 306: 307: /** 308: * getTreeCellEditorComponent 309: * 310: * @param tree TODO 311: * @param value TODO 312: * @param isSelected TODO 313: * @param expanded TODO 314: * @param leaf TODO 315: * @param row TODO 316: * 317: * @returns Component 318: */ 319: public Component getTreeCellEditorComponent(JTree tree, Object value, 320: boolean isSelected, 321: boolean expanded, boolean leaf, 322: int row) 323: { 324: return null; // TODO 325: } // getTreeCellEditorComponent() 326: 327: /** 328: * getTableCellEditorComponent 329: * 330: * @param tree TODO 331: * @param value TODO 332: * @param isSelected TODO 333: * @param row TODO 334: * @param column TODO 335: * 336: * @returns Component 337: */ 338: public Component getTableCellEditorComponent(JTable tree, Object value, 339: boolean isSelected, int row, 340: int column) 341: { 342: return null; // TODO 343: } // getTableCellEditorComponent() 344: }
GNU Classpath (0.17) |