classpath-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[cp-patches] FYI: documented javax.swing.AbstractCellEditor


From: Roman Kennke
Subject: [cp-patches] FYI: documented javax.swing.AbstractCellEditor
Date: Wed, 11 May 2005 15:22:11 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021204

I documented javax.swing.AbstractCellEditor.

2005-05-11  Roman Kennke  <address@hidden>

       * javax/swing/AbstractCellEditor.java:
       Documented this class.


/Roman
Index: javax/swing/AbstractCellEditor.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/AbstractCellEditor.java,v
retrieving revision 1.8
diff -u -r1.8 AbstractCellEditor.java
--- javax/swing/AbstractCellEditor.java 11 May 2005 13:07:15 -0000      1.8
+++ javax/swing/AbstractCellEditor.java 11 May 2005 13:20:21 -0000
@@ -46,7 +46,9 @@
 import javax.swing.event.EventListenerList;
 
 /**
- * AbstractCellEditor
+ * The abstract superclass for table and tree cells. This provides some
+ * common shared functionality.
+ *
  * @author     Andrew Selkirk
  * @version    1.0
  */
@@ -56,59 +58,74 @@
   private static final long serialVersionUID = -1048006551406220959L;
 
   /**
-   * listenerList
+   * Our Swing event listeners.
    */
   protected EventListenerList listenerList;
 
   /**
-   * changeEvent
+   * The cached ChangeEvent.
    */
   protected transient ChangeEvent changeEvent;
 
   /**
-   * Constructor AbstractCellEditor
+   * Creates a new instance of AbstractCellEditor.
    */
   public AbstractCellEditor() {
-    // TODO
   } // AbstractCellEditor()
 
   /**
-   * isCellEditable
-   * @param event TODO
-   * @returns boolean
+   * Returns <code>true</code> if the cell is editable using
+   * <code>event</code>, <code>false</code>
+   * if it's not. The default behaviour is to return <code>true</code>.
+   *
+   * @param event an event
+   *
+   * @return <code>true</code> if the cell is editable using
+   *     <code>event</code>, <code>false</code> if it's not
    */
   public boolean isCellEditable(EventObject event) {
     return false; // TODO
   } // isCellEditable()
 
   /**
-   * shouldSelectCell
-   * @param event TODO
-   * @returns boolean
+   * Returns <code>true</code> if the editing cell should be selected,
+   * <code>false</code> otherwise. This is usually returning <code>true</code>,
+   * but in some special cases it might be useful not to switch cell selection
+   * when editing one cell.
+   *
+   * @param event an event
+   *
+   * @return <code>true</code> if the editing cell should be selected,
+   *     <code>false</code> otherwise
    */
   public boolean shouldSelectCell(EventObject event) {
     return false; // TODO
   } // shouldSelectCell()
 
   /**
-   * stopCellEditing
-   * @returns boolean
+   * Stop editing the cell and accept any partial value that has been entered
+   * into the cell.
+   *
+   * @returns <code>true</code> if editing has been stopped successfully,
+   *     <code>false</code>otherwise
    */
   public boolean stopCellEditing() {
     return false; // TODO
   } // stopCellEditing()
 
   /**
-   * cancelCellEditing
+   * Stop editing the cell and do not accept any partial value that has
+   * been entered into the cell.
    */
   public void cancelCellEditing() {
     // TODO
   } // cancelCellEditing()
 
   /**
-   * addCellEditorListener
+   * Adds a CellEditorListener to the list of CellEditorListeners of this
+   * CellEditor.
    *
-   * @param listener The listener to add
+   * @param listener the CellEditorListener to add
    */
   public void addCellEditorListener (CellEditorListener listener)
   {
@@ -116,9 +133,10 @@
   }
 
   /**
-   * removeCellEditorListener
+   * Removes the specified CellEditorListener from the list of the
+   * CellEditorListeners of this CellEditor.
    *
-   * @param listener The listener to remove
+   * @param listener the CellEditorListener to remove
    */
   public void removeCellEditorListener (CellEditorListener listener)
   {
@@ -126,7 +144,11 @@
   }
        
   /**
-   * getCellEditorListeners
+   * Returns the list of CellEditorListeners that have been registered
+   * in this CellEditor.
+   *
+   * @return the list of CellEditorListeners that have been registered
+   *     in this CellEditor
    *
    * @since 1.4
    */
@@ -136,7 +158,8 @@
   }
 
   /**
-   * fireEditingStopped
+   * Notifies all registered listeners that the editing of the cell has
+   * has been stopped.
    */
   protected void fireEditingStopped()
   {
@@ -149,7 +172,8 @@
   }
 
   /**
-   * fireEditingCanceled
+   * Notifies all registered listeners that the editing of the cell has
+   * has been cancelled.
    */
   protected void fireEditingCanceled()
   {

reply via email to

[Prev in Thread] Current Thread [Next in Thread]