38 |
package javax.swing; |
package javax.swing; |
39 |
|
|
40 |
/** |
/** |
41 |
* MutableComboBoxModel |
* MutableComboBoxModel is interface for data model that keeps track of the |
42 |
* @author Andrew Selkirk |
* components data and provides methods to insert and remove elements from |
43 |
* @version 1.0 |
* it. The Classes implementing this interface should fire appropriate |
44 |
|
* events indicating the undergoing change in the data model. |
45 |
|
* |
46 |
|
* @author Andrew Selkirk |
47 |
|
* @author Olga Rodimina |
48 |
|
* @version 1.0 |
49 |
*/ |
*/ |
50 |
public interface MutableComboBoxModel extends ComboBoxModel { |
public interface MutableComboBoxModel extends ComboBoxModel |
51 |
|
{ |
52 |
//------------------------------------------------------------- |
/** |
53 |
// Methods ---------------------------------------------------- |
* This method adds given object to its data model. |
54 |
//------------------------------------------------------------- |
* |
55 |
|
* @param object element to add to the data model. |
56 |
/** |
*/ |
57 |
* addElement |
void addElement(Object object); |
58 |
* @param object TODO |
|
59 |
*/ |
/** |
60 |
void addElement(Object object); |
* This method removes elements located at the given index in the data |
61 |
|
* model. |
62 |
/** |
* |
63 |
* removeElementAt |
* @param index index specifying location of the element to remove. |
64 |
* @param index TODO |
*/ |
65 |
*/ |
void removeElementAt(int index); |
66 |
void removeElementAt(int index); |
|
67 |
|
/** |
68 |
/** |
* This method inserts givent element to the data model, at the specified |
69 |
* insertElementAt |
* index. |
70 |
* @param object TODO |
* |
71 |
* @param index TODO |
* @param object element to insert |
72 |
*/ |
* @param index index specifying the position in the data model where the |
73 |
void insertElementAt(Object object, int index); |
* given element should be inserted. |
74 |
|
*/ |
75 |
/** |
void insertElementAt(Object object, int index); |
76 |
* removeElement |
|
77 |
* @param object TODO |
/** |
78 |
*/ |
* This method removes given element from the data model |
79 |
void removeElement(Object object); |
* |
80 |
|
* @param element to remove. |
81 |
|
*/ |
82 |
|
void removeElement(Object object); |
83 |
} // MutableComboBoxModel |
} // MutableComboBoxModel |