56 |
import javax.swing.JTree; |
import javax.swing.JTree; |
57 |
import javax.swing.border.Border; |
import javax.swing.border.Border; |
58 |
import javax.swing.event.CellEditorListener; |
import javax.swing.event.CellEditorListener; |
59 |
|
import javax.swing.event.EventListenerList; |
60 |
import javax.swing.event.TreeSelectionEvent; |
import javax.swing.event.TreeSelectionEvent; |
61 |
import javax.swing.event.TreeSelectionListener; |
import javax.swing.event.TreeSelectionListener; |
62 |
|
|
64 |
* DefaultTreeCellEditor |
* DefaultTreeCellEditor |
65 |
* @author Andrew Selkirk |
* @author Andrew Selkirk |
66 |
*/ |
*/ |
67 |
public class DefaultTreeCellEditor implements ActionListener, TreeCellEditor, TreeSelectionListener { |
public class DefaultTreeCellEditor |
68 |
|
implements ActionListener, TreeCellEditor, TreeSelectionListener |
69 |
|
{ |
70 |
|
|
71 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
72 |
// Classes ---------------------------------------------------- |
// Classes ---------------------------------------------------- |
86 |
// Initialization --------------------------------------------- |
// Initialization --------------------------------------------- |
87 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
88 |
|
|
89 |
/** |
/** |
90 |
* Constructor EditorContainer |
* Creates an <code>EditorContainer</code> object. |
91 |
* @param value0 TODO |
*/ |
92 |
*/ |
public EditorContainer() |
93 |
public EditorContainer(DefaultTreeCellEditor value0) { |
{ |
94 |
// TODO |
// Do nothing here. |
95 |
} // EditorContainer() |
} |
96 |
|
|
97 |
|
|
98 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
99 |
// Methods ---------------------------------------------------- |
// Methods ---------------------------------------------------- |
100 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
101 |
|
|
102 |
|
/** |
103 |
|
* This method only exists for API compatibility and is useless as it does |
104 |
|
* nothing. It got probably introduced by accident. |
105 |
|
*/ |
106 |
|
public void EditorContainer() |
107 |
|
{ |
108 |
|
// Do nothing here. |
109 |
|
} |
110 |
|
|
111 |
/** |
/** |
112 |
* getPreferredSize |
* getPreferredSize |
113 |
* @returns Dimension |
* @returns Dimension |
153 |
// Initialization --------------------------------------------- |
// Initialization --------------------------------------------- |
154 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
155 |
|
|
|
/** |
|
|
* Constructor DefaultTextField |
|
|
* @param value0 TODO |
|
|
* @param value1 TODO |
|
|
*/ |
|
|
public DefaultTextField(DefaultTreeCellEditor value0, Border value1) { |
|
|
// TODO |
|
|
} // DefaultTextField() |
|
|
|
|
156 |
|
|
157 |
|
/** |
158 |
|
* Creates a <code>DefaultTextField</code> object. |
159 |
|
* |
160 |
|
* @param border the border to use |
161 |
|
*/ |
162 |
|
public DefaultTextField(Border border) |
163 |
|
{ |
164 |
|
this.border = border; |
165 |
|
} |
166 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
167 |
// Methods ---------------------------------------------------- |
// Methods ---------------------------------------------------- |
168 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
175 |
return null; // TODO |
return null; // TODO |
176 |
} // getFont() |
} // getFont() |
177 |
|
|
178 |
/** |
/** |
179 |
* getBorder |
* Returns the border of the text field. |
180 |
* @returns Border |
* |
181 |
*/ |
* @return the border |
182 |
public Border getBorder() { |
*/ |
183 |
return null; // TODO |
public Border getBorder() |
184 |
} // getBorder() |
{ |
185 |
|
return border; |
186 |
|
} |
187 |
|
|
188 |
/** |
/** |
189 |
* getPreferredSize |
* getPreferredSize |
201 |
// Variables -------------------------------------------------- |
// Variables -------------------------------------------------- |
202 |
//------------------------------------------------------------- |
//------------------------------------------------------------- |
203 |
|
|
204 |
|
private EventListenerList listenerList = new EventListenerList(); |
205 |
|
|
206 |
/** |
/** |
207 |
* realEditor |
* realEditor |
208 |
*/ |
*/ |
403 |
// TODO |
// TODO |
404 |
} // cancelCellEditing() |
} // cancelCellEditing() |
405 |
|
|
406 |
/** |
/** |
407 |
* addCellEditorListener |
* Adds a <code>CellEditorListener</code> object to this editor. |
408 |
* @param value0 TODO |
* |
409 |
*/ |
* @param listener the listener to add |
410 |
public void addCellEditorListener(CellEditorListener value0) { |
*/ |
411 |
// TODO |
public void addCellEditorListener(CellEditorListener listener) |
412 |
} // addCellEditorListener() |
{ |
413 |
|
listenerList.add(CellEditorListener.class, listener); |
414 |
/** |
} |
415 |
* removeCellEditorListener |
|
416 |
* @param value0 TODO |
/** |
417 |
*/ |
* Removes a <code>CellEditorListener</code> object. |
418 |
public void removeCellEditorListener(CellEditorListener value0) { |
* |
419 |
// TODO |
* @param listener the listener to remove |
420 |
} // removeCellEditorListener() |
*/ |
421 |
|
public void removeCellEditorListener(CellEditorListener listener) |
422 |
|
{ |
423 |
|
listenerList.remove(CellEditorListener.class, listener); |
424 |
|
} |
425 |
|
|
426 |
|
/** |
427 |
|
* Returns all added <code>CellEditorListener</code> objects to this editor. |
428 |
|
* |
429 |
|
* @return an array of listeners |
430 |
|
* |
431 |
|
* @since 1.4 |
432 |
|
*/ |
433 |
|
public CellEditorListener[] getCellEditorListeners() |
434 |
|
{ |
435 |
|
return (CellEditorListener[]) |
436 |
|
listenerList.getListeners(CellEditorListener.class); |
437 |
|
} |
438 |
|
|
439 |
/** |
/** |
440 |
* valueChanged |
* valueChanged |