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 |
/** |
/** |
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 |
/** |
/** |
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 |
/** |
/** |
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 |
/** |
/** |
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 |
/** |
/** |
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 |
/** |
/** |
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 |
{ |
{ |