/[classpath]/classpath/javax/swing/tree/DefaultTreeCellEditor.java
ViewVC logotype

Diff of /classpath/javax/swing/tree/DefaultTreeCellEditor.java

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

revision 1.3 by mkoch, Thu Apr 29 07:00:34 2004 UTC revision 1.3.2.1 by gnu_andrew, Sat Jan 15 17:02:21 2005 UTC
# Line 56  import javax.swing.JTextField; Line 56  import javax.swing.JTextField;
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    
# Line 63  import javax.swing.event.TreeSelectionLi Line 64  import javax.swing.event.TreeSelectionLi
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          // Classes ----------------------------------------------------    /**
71          //-------------------------------------------------------------     * EditorContainer
72       */
73          /**    public class EditorContainer extends Container
74           * EditorContainer    {
75           */      /**
76          public class EditorContainer extends Container {       * Creates an <code>EditorContainer</code> object.
77         */
78                  //-------------------------------------------------------------      public EditorContainer()
79                  // Variables --------------------------------------------------      {
80                  //-------------------------------------------------------------        // Do nothing here.
81        }
82    
83                  //-------------------------------------------------------------      /**
84                  // Initialization ---------------------------------------------       * This method only exists for API compatibility and is useless as it does
85                  //-------------------------------------------------------------       * nothing. It got probably introduced by accident.
86         */
87                  /**      public void EditorContainer()
88                   * Constructor EditorContainer      {
89                   * @param value0 TODO        // Do nothing here.
90                   */      }
91                  public EditorContainer(DefaultTreeCellEditor value0) {  
92                          // TODO      /**
93                  } // EditorContainer()       * getPreferredSize
94         * @return Dimension
95         */
96                  //-------------------------------------------------------------      public Dimension getPreferredSize()
97                  // Methods ----------------------------------------------------      {
98                  //-------------------------------------------------------------        return null; // TODO
99        }
100                  /**  
101                   * getPreferredSize      /**
102                   * @returns Dimension       * paint
103                   */       * @param value0 TODO
104                  public Dimension getPreferredSize() {       */
105                          return null; // TODO      public void paint(Graphics value0)
106                  } // getPreferredSize()      {
107          // TODO
108                  /**      }
109                   * paint  
110                   * @param value0 TODO      /**
111                   */       * doLayout
112                  public void paint(Graphics value0) {       */
113                          // TODO      public void doLayout()
114                  } // paint()      {
115          // TODO
116                  /**      }
117                   * doLayout    }
118                   */  
119                  public void doLayout() {    /**
120                          // TODO     * DefaultTextField
121                  } // doLayout()     */
122      public class DefaultTextField extends JTextField
123      {
124          } // EditorContainer      /**
125         * border
126          /**       */
127           * DefaultTextField      protected Border border;
128           */  
129          public class DefaultTextField extends JTextField {      /**
130         * Creates a <code>DefaultTextField</code> object.
131                  //-------------------------------------------------------------       *
132                  // Variables --------------------------------------------------       * @param border the border to use
133                  //-------------------------------------------------------------       */
134        public DefaultTextField(Border border)
135                  /**      {
136                   * border        this.border = border;
137                   */      }
138                  protected Border border;  
139        /**
140         * getFont
141                  //-------------------------------------------------------------       * @return Font
142                  // Initialization ---------------------------------------------       */
143                  //-------------------------------------------------------------      public Font getFont()
144        {
145                  /**        return null; // TODO
146                   * Constructor DefaultTextField      }
147                   * @param value0 TODO  
148                   * @param value1 TODO      /**
149                   */       * Returns the border of the text field.
150                  public DefaultTextField(DefaultTreeCellEditor value0, Border value1) {       *
151                          // TODO       * @return the border
152                  } // DefaultTextField()       */
153        public Border getBorder()
154        {
155                  //-------------------------------------------------------------        return border;
156                  // Methods ----------------------------------------------------      }
157                  //-------------------------------------------------------------  
158        /**
159                  /**       * getPreferredSize
160                   * getFont       * @return Dimension
161                   * @returns Font       */
162                   */      public Dimension getPreferredSize()
163                  public Font getFont() {      {
164                          return null; // TODO        return null; // TODO
165                  } // getFont()      }
166      }
167                  /**  
168                   * getBorder    private EventListenerList listenerList = new EventListenerList();
169                   * @returns Border  
170                   */    /**
171                  public Border getBorder() {     * realEditor
172                          return null; // TODO     */
173                  } // getBorder()    protected TreeCellEditor realEditor;
174    
175                  /**    /**
176                   * getPreferredSize     * renderer
177                   * @returns Dimension     */
178                   */    protected DefaultTreeCellRenderer renderer;
179                  public Dimension getPreferredSize() {  
180                          return null; // TODO    /**
181                  } // getPreferredSize()     * editingContainer
182       */
183      protected Container editingContainer;
184          } // DefaultTextField  
185      /**
186       * editingComponent
187          //-------------------------------------------------------------     */
188          // Variables --------------------------------------------------    protected transient Component editingComponent;
189          //-------------------------------------------------------------  
190      /**
191          /**     * canEdit
192           * realEditor     */
193           */    protected boolean canEdit;
194          protected TreeCellEditor realEditor;  
195      /**
196          /**     * offset
197           * renderer     */
198           */    protected transient int offset;
199          protected DefaultTreeCellRenderer renderer;  
200      /**
201          /**     * tree
202           * editingContainer     */
203           */    protected transient JTree tree;
204          protected Container editingContainer;  
205      /**
206          /**     * lastPath
207           * editingComponent     */
208           */    protected transient TreePath lastPath;
209          protected transient Component editingComponent;  
210      /**
211          /**     * timer
212           * canEdit     */
213           */    protected transient javax.swing.Timer timer; // TODO
214          protected boolean canEdit;  
215      /**
216          /**     * lastRow
217           * offset     */
218           */    protected transient int lastRow;
219          protected transient int offset;  
220      /**
221          /**     * borderSelectionColor
222           * tree     */
223           */    protected Color borderSelectionColor;
224          protected transient JTree tree;  
225      /**
226          /**     * editingIcon
227           * lastPath     */
228           */    protected transient Icon editingIcon;
229          protected transient TreePath lastPath;  
230      /**
231          /**     * font
232           * timer     */
233           */    protected Font font;
234          protected transient javax.swing.Timer timer; // TODO  
235      /**
236          /**     * Constructor DefaultTreeCellEditor
237           * lastRow     * @param value0 TODO
238           */     * @param value1 TODO
239          protected transient int lastRow;     */
240      public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1)
241          /**    {
242           * borderSelectionColor      // TODO
243           */    }
244          protected Color borderSelectionColor;  
245      /**
246          /**     * Constructor DefaultTreeCellEditor
247           * editingIcon     * @param value0 TODO
248           */     * @param value1 TODO
249          protected transient Icon editingIcon;     * @param value2 TODO
250       */
251          /**    public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1,
252           * font                                 TreeCellEditor value2)
253           */    {
254          protected Font font;      // TODO
255      }
256    
257          //-------------------------------------------------------------    /**
258          // Initialization ---------------------------------------------     * writeObject
259          //-------------------------------------------------------------     * @param value0 TODO
260       * @exception IOException TODO
261          /**     */
262           * Constructor DefaultTreeCellEditor    private void writeObject(ObjectOutputStream value0) throws IOException
263           * @param value0 TODO    {
264           * @param value1 TODO      // TODO
265           */    }
266          public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1) {  
267                  // TODO    /**
268          } // DefaultTreeCellEditor()     * readObject
269       * @param value0 TODO
270          /**     * @exception IOException TODO
271           * Constructor DefaultTreeCellEditor     * @exception ClassNotFoundException TODO
272           * @param value0 TODO     */
273           * @param value1 TODO    private void readObject(ObjectInputStream value0)
274           * @param value2 TODO      throws IOException, ClassNotFoundException
275           */    {
276          public DefaultTreeCellEditor(JTree value0, DefaultTreeCellRenderer value1, TreeCellEditor value2) {      // TODO
277                  // TODO    }
278          } // DefaultTreeCellEditor()  
279      /**
280       * setBorderSelectionColor
281          //-------------------------------------------------------------     * @param value0 TODO
282          // Methods ----------------------------------------------------     */
283          //-------------------------------------------------------------    public void setBorderSelectionColor(Color value0)
284      {
285          /**      // TODO
286           * writeObject    }
287           * @param value0 TODO  
288           * @exception IOException TODO    /**
289           */     * getBorderSelectionColor
290          private void writeObject(ObjectOutputStream value0) throws IOException {     * @return Color
291                  // TODO     */
292          } // writeObject()    public Color getBorderSelectionColor()
293      {
294          /**      return null; // TODO
295           * readObject    }
296           * @param value0 TODO  
297           * @exception IOException TODO    /**
298           * @exception ClassNotFoundException TODO     * setFont
299           */     * @param value0 TODO
300          private void readObject(ObjectInputStream value0) throws IOException, ClassNotFoundException {     */
301                  // TODO    public void setFont(Font value0)
302          } // readObject()    {
303        // TODO
304          /**    }
305           * setBorderSelectionColor  
306           * @param value0 TODO    /**
307           */     * getFont
308          public void setBorderSelectionColor(Color value0) {     * @return Font
309                  // TODO     */
310          } // setBorderSelectionColor()    public Font getFont()
311      {
312          /**      return null; // TODO
313           * getBorderSelectionColor    }
314           * @returns Color  
315           */    /**
316          public Color getBorderSelectionColor() {     * getTreeCellEditorComponent
317                  return null; // TODO     * @param value0 TODO
318          } // getBorderSelectionColor()     * @param value1 TODO
319       * @param value2 TODO
320          /**     * @param value3 TODO
321           * setFont     * @param value4 TODO
322           * @param value0 TODO     * @param value5 TODO
323           */     * @return Component
324          public void setFont(Font value0) {     */
325                  // TODO    public Component getTreeCellEditorComponent(JTree value0, Object value1,
326          } // setFont()                                                boolean value2, boolean value3,
327                                                  boolean value4, int value5)
328          /**    {
329           * getFont      return null; // TODO
330           * @returns Font    }
331           */  
332          public Font getFont() {    /**
333                  return null; // TODO     * getCellEditorValue
334          } // getFont()     * @return Object
335       */
336          /**    public Object getCellEditorValue()
337           * getTreeCellEditorComponent    {
338           * @param value0 TODO      return null; // TODO
339           * @param value1 TODO    }
340           * @param value2 TODO  
341           * @param value3 TODO    /**
342           * @param value4 TODO     * isCellEditable
343           * @param value5 TODO     * @param value0 TODO
344           * @returns Component     * @return boolean
345           */     */
346          public Component getTreeCellEditorComponent(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) {    public boolean isCellEditable(EventObject value0)
347                  return null; // TODO    {
348          } // getTreeCellEditorComponent()      return false; // TODO
349      }
350          /**  
351           * getCellEditorValue    /**
352           * @returns Object     * shouldSelectCell
353           */     * @param value0 TODO
354          public Object getCellEditorValue() {     * @return boolean
355                  return null; // TODO     */
356          } // getCellEditorValue()    public boolean shouldSelectCell(EventObject value0)
357      {
358          /**      return false; // TODO
359           * isCellEditable    }
360           * @param value0 TODO  
361           * @returns boolean    /**
362           */     * stopCellEditing
363          public boolean isCellEditable(EventObject value0) {     * @return boolean
364                  return false; // TODO     */
365          } // isCellEditable()    public boolean stopCellEditing()
366      {
367          /**      return false; // TODO
368           * shouldSelectCell    }
369           * @param value0 TODO  
370           * @returns boolean    /**
371           */     * cancelCellEditing
372          public boolean shouldSelectCell(EventObject value0) {     */
373                  return false; // TODO    public void cancelCellEditing()
374          } // shouldSelectCell()    {
375        // TODO
376          /**    }
377           * stopCellEditing  
378           * @returns boolean    /**
379           */     * Adds a <code>CellEditorListener</code> object to this editor.
380          public boolean stopCellEditing() {     *
381                  return false; // TODO     * @param listener the listener to add
382          } // stopCellEditing()     */
383      public void addCellEditorListener(CellEditorListener listener)
384          /**    {
385           * cancelCellEditing      listenerList.add(CellEditorListener.class, listener);
386           */    }
387          public void cancelCellEditing() {  
388                  // TODO    /**
389          } // cancelCellEditing()     * Removes a <code>CellEditorListener</code> object.
390       *
391          /**     * @param listener the listener to remove
392           * addCellEditorListener     */
393           * @param value0 TODO    public void removeCellEditorListener(CellEditorListener listener)
394           */    {
395          public void addCellEditorListener(CellEditorListener value0) {      listenerList.remove(CellEditorListener.class, listener);
396                  // TODO    }
397          } // addCellEditorListener()  
398      /**
399          /**     * Returns all added <code>CellEditorListener</code> objects to this editor.
400           * removeCellEditorListener     *
401           * @param value0 TODO     * @return an array of listeners
402           */     *
403          public void removeCellEditorListener(CellEditorListener value0) {     * @since 1.4
404                  // TODO     */
405          } // removeCellEditorListener()    public CellEditorListener[] getCellEditorListeners()
406      {
407          /**      return (CellEditorListener[]) listenerList.getListeners(CellEditorListener.class);
408           * valueChanged    }
409           * @param value0 TODO  
410           */    /**
411          public void valueChanged(TreeSelectionEvent value0) {     * valueChanged
412                  // TODO     * @param value0 TODO
413          } // valueChanged()     */
414      public void valueChanged(TreeSelectionEvent value0)
415          /**    {
416           * actionPerformed      // TODO
417           * @param value0 TODO    }
418           */  
419          public void actionPerformed(ActionEvent value0) {    /**
420                  // TODO     * actionPerformed
421          } // actionPerformed()     * @param value0 TODO
422       */
423          /**    public void actionPerformed(ActionEvent value0)
424           * setTree    {
425           * @param value0 TODO      // TODO
426           */    }
427          protected void setTree(JTree value0) {  
428                  // TODO    /**
429          } // setTree()     * setTree
430       * @param value0 TODO
431          /**     */
432           * shouldStartEditingTimer    protected void setTree(JTree value0)
433           * @param value0 TODO    {
434           * @returns boolean      // TODO
435           */    }
436          protected boolean shouldStartEditingTimer(EventObject value0) {  
437                  return false; // TODO    /**
438          } // shouldStartEditingTimer()     * shouldStartEditingTimer
439       * @param value0 TODO
440          /**     * @return boolean
441           * startEditingTimer     */
442           */    protected boolean shouldStartEditingTimer(EventObject value0)
443          protected void startEditingTimer() {    {
444                  // TODO      return false; // TODO
445          } // startEditingTimer()    }
446    
447          /**    /**
448           * canEditImmediately     * startEditingTimer
449           * @param value0 TODO     */
450           * @returns boolean    protected void startEditingTimer()
451           */    {
452          protected boolean canEditImmediately(EventObject value0) {      // TODO
453                  return false; // TODO    }
454          } // canEditImmediately()  
455      /**
456          /**     * canEditImmediately
457           * inHitRegion     * @param value0 TODO
458           * @param value0 TODO     * @return boolean
459           * @param value1 TODO     */
460           * @returns boolean    protected boolean canEditImmediately(EventObject value0)
461           */    {
462          protected boolean inHitRegion(int value0, int value1) {      return false; // TODO
463                  return false; // TODO    }
464          } // inHitRegion()  
465      /**
466          /**     * inHitRegion
467           * determineOffset     * @param value0 TODO
468           * @param value0 TODO     * @param value1 TODO
469           * @param value1 TODO     * @return boolean
470           * @param value2 TODO     */
471           * @param value3 TODO    protected boolean inHitRegion(int value0, int value1)
472           * @param value4 TODO    {
473           * @param value5 TODO      return false; // TODO
474           */    }
475          protected void determineOffset(JTree value0, Object value1, boolean value2, boolean value3, boolean value4, int value5) {  
476                  // TODO    /**
477          } // determineOffset()     * determineOffset
478       * @param value0 TODO
479          /**     * @param value1 TODO
480           * prepareForEditing     * @param value2 TODO
481           */     * @param value3 TODO
482          protected void prepareForEditing() {     * @param value4 TODO
483                  // TODO     * @param value5 TODO
484          } // prepareForEditing()     */
485      protected void determineOffset(JTree value0, Object value1, boolean value2,
486          /**                                   boolean value3, boolean value4, int value5)
487           * createContainer    {
488           * @returns Container      // TODO
489           */    }
490          protected Container createContainer() {  
491                  return null; // TODO    /**
492          } // createContainer()     * prepareForEditing
493       */
494          /**    protected void prepareForEditing()
495           * createTreeCellEditor    {
496           * @returns TreeCellEditor      // TODO
497           */    }
498          protected TreeCellEditor createTreeCellEditor() {  
499                  return null; // TODO    /**
500          } // createTreeCellEditor()     * createContainer
501       * @return Container
502       */
503  } // DefaultTreeCellEditor    protected Container createContainer()
504      {
505        return null; // TODO
506      }
507    
508      /**
509       * createTreeCellEditor
510       * @return TreeCellEditor
511       */
512      protected TreeCellEditor createTreeCellEditor()
513      {
514        return null; // TODO
515      }
516    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.2.1

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