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

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

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

revision 1.3 by mkoch, Fri Jan 9 10:19:16 2004 UTC revision 1.3.2.1 by gnu_andrew, Fri Jan 14 10:24:16 2005 UTC
# Line 42  import java.awt.event.ActionListener; Line 42  import java.awt.event.ActionListener;
42    
43  /**  /**
44   * ComboBoxEditor   * ComboBoxEditor
45   * @author      Andrew Selkirk   *
46   * @version     1.0   * @author Andrew Selkirk
47     * @author Olga Rodimina
48     * @version 1.0
49   */   */
50  public interface ComboBoxEditor {  public interface ComboBoxEditor
51    {
52          //-------------------------------------------------------------    /**
53          // Methods ----------------------------------------------------     * This method returns component that will be used by the combo box to
54          //-------------------------------------------------------------     * display/edit currently selected item in the combo box.
55       *
56          /**     * @return Component that will be used by the combo box to display/edit
57           * getEditorComponent     *         currently selected item
58           * @returns Component     */
59           */    Component getEditorComponent();
60          Component getEditorComponent();  
61      /**
62          /**     * Sets item that should be editted when any editting operation is performed
63           * setItem     * by the user. The value is always equal to the currently selected value
64           * @param item TODO     * in the combo box. Thus, whenever a different value is selected from the
65           */     * combo box list then this method should be called to change editting item
66          void setItem(Object item);     * to the new selected item.
67       *
68          /**     * @param selectedItem item that is currently selected in the combo box
69           * getItem     */
70           * @returns Object    void setItem(Object item);
71           */  
72          Object getItem();    /**
73       * This method returns item that is currently editable.
74          /**     *
75           * selectAll     * @return Item in the combo box that is currently editable
76           */     */
77          void selectAll();    Object getItem();
78    
79          /**    /**
80           * addActionListener     * selectAll
81           * @param listener TODO     */
82           */    void selectAll();
83          void addActionListener(ActionListener listener);  
84      /**
85          /**     * This method adds specified ActionListener to this ComboBoxEditor.
86           * removeActionListener     *
87           * @param listener TODO     * @param listener
88           */     */
89          void removeActionListener(ActionListener listener);    void addActionListener(ActionListener listener);
90    
91      /**
92       * This method removes given ActionListener from this ComboBoxEditor.
93       *
94       * @param listener TODO
95       */
96      void removeActionListener(ActionListener listener);
97  } // ComboBoxEditor  } // ComboBoxEditor

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