/[classpath]/classpath/javax/swing/AbstractCellEditor.java
ViewVC logotype

Diff of /classpath/javax/swing/AbstractCellEditor.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by rabbit78, Wed May 11 13:21:25 2005 UTC revision 1.10 by rabbit78, Wed May 11 13:33:18 2005 UTC
# Line 71  public abstract class AbstractCellEditor Line 71  public abstract class AbstractCellEditor
71     * Creates a new instance of AbstractCellEditor.     * Creates a new instance of AbstractCellEditor.
72     */     */
73    public AbstractCellEditor() {    public AbstractCellEditor() {
74        listenerList = new EventListenerList();
75        changeEvent = new ChangeEvent(this);
76    } // AbstractCellEditor()    } // AbstractCellEditor()
77    
78    /**    /**
# Line 84  public abstract class AbstractCellEditor Line 86  public abstract class AbstractCellEditor
86     *     <code>event</code>, <code>false</code> if it's not     *     <code>event</code>, <code>false</code> if it's not
87     */     */
88    public boolean isCellEditable(EventObject event) {    public boolean isCellEditable(EventObject event) {
89      return false; // TODO      return true;
90    } // isCellEditable()    } // isCellEditable()
91    
92    /**    /**
# Line 99  public abstract class AbstractCellEditor Line 101  public abstract class AbstractCellEditor
101     *     <code>false</code> otherwise     *     <code>false</code> otherwise
102     */     */
103    public boolean shouldSelectCell(EventObject event) {    public boolean shouldSelectCell(EventObject event) {
104      return false; // TODO      return true;
105    } // shouldSelectCell()    } // shouldSelectCell()
106    
107    /**    /**
# Line 110  public abstract class AbstractCellEditor Line 112  public abstract class AbstractCellEditor
112     *     <code>false</code>otherwise     *     <code>false</code>otherwise
113     */     */
114    public boolean stopCellEditing() {    public boolean stopCellEditing() {
115      return false; // TODO      fireEditingStopped();
116        return true;
117    } // stopCellEditing()    } // stopCellEditing()
118    
119    /**    /**
# Line 118  public abstract class AbstractCellEditor Line 121  public abstract class AbstractCellEditor
121     * been entered into the cell.     * been entered into the cell.
122     */     */
123    public void cancelCellEditing() {    public void cancelCellEditing() {
124      // TODO      fireEditingCanceled();
125    } // cancelCellEditing()    } // cancelCellEditing()
126    
127    /**    /**
# Line 154  public abstract class AbstractCellEditor Line 157  public abstract class AbstractCellEditor
157     */     */
158    public CellEditorListener[] getCellEditorListeners()    public CellEditorListener[] getCellEditorListeners()
159    {    {
160      return (CellEditorListener[]) listenerList.getListeners (CellEditorListener.class);      return (CellEditorListener[]) listenerList.getListeners
161          (CellEditorListener.class);
162    }    }
163    
164    /**    /**
# Line 173  public abstract class AbstractCellEditor Line 177  public abstract class AbstractCellEditor
177    
178    /**    /**
179     * Notifies all registered listeners that the editing of the cell has     * Notifies all registered listeners that the editing of the cell has
180     * has been cancelled.     * has been canceled.
181     */     */
182    protected void fireEditingCanceled()    protected void fireEditingCanceled()
183    {    {

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26