32 * |
32 * |
33 * @author Arnaud Weber |
33 * @author Arnaud Weber |
34 */ |
34 */ |
35 public interface ComboBoxEditor { |
35 public interface ComboBoxEditor { |
36 |
36 |
37 /** Return the component that should be added to the tree hierarchy for |
37 /** |
38 * this editor |
38 * Returns the component that should be added to the tree hierarchy for |
39 */ |
39 * this editor |
|
40 * |
|
41 * @return the component |
|
42 */ |
40 public Component getEditorComponent(); |
43 public Component getEditorComponent(); |
41 |
44 |
42 /** Set the item that should be edited. Cancel any editing if necessary **/ |
45 /** |
|
46 * Set the item that should be edited. Cancel any editing if necessary |
|
47 * |
|
48 * @param anObject an item |
|
49 */ |
43 public void setItem(Object anObject); |
50 public void setItem(Object anObject); |
44 |
51 |
45 /** Return the edited item **/ |
52 /** |
|
53 * Returns the edited item |
|
54 * |
|
55 * @return the edited item |
|
56 */ |
46 public Object getItem(); |
57 public Object getItem(); |
47 |
58 |
48 /** Ask the editor to start editing and to select everything **/ |
59 /** |
|
60 * Ask the editor to start editing and to select everything |
|
61 */ |
49 public void selectAll(); |
62 public void selectAll(); |
50 |
63 |
51 /** Add an ActionListener. An action event is generated when the edited item changes **/ |
64 /** |
|
65 * Add an ActionListener. An action event is generated when the edited item changes |
|
66 * |
|
67 * @param l an {@code ActionListener} |
|
68 */ |
52 public void addActionListener(ActionListener l); |
69 public void addActionListener(ActionListener l); |
53 |
70 |
54 /** Remove an ActionListener **/ |
71 /** |
|
72 * Remove an ActionListener |
|
73 * |
|
74 * @param l an {@code ActionListener} |
|
75 */ |
55 public void removeActionListener(ActionListener l); |
76 public void removeActionListener(ActionListener l); |
56 } |
77 } |