35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
|
|
|
38 |
package javax.swing.plaf.basic; |
package javax.swing.plaf.basic; |
39 |
|
|
40 |
|
import java.awt.event.KeyListener; |
41 |
|
import java.awt.event.MouseEvent; |
42 |
|
import java.awt.event.MouseListener; |
43 |
|
import java.awt.event.MouseMotionListener; |
44 |
|
import javax.swing.JList; |
45 |
|
|
46 |
|
|
47 |
public interface ComboPopup |
public interface ComboPopup |
48 |
{ |
{ |
49 |
void hide(); |
/** |
50 |
|
* This method display popup menu containing list of JComboBox's items to |
51 |
|
* the screen |
52 |
|
*/ |
53 |
void show(); |
void show(); |
54 |
|
|
55 |
|
/** |
56 |
|
* This method hides popup menu with list of JComboBox's item from the |
57 |
|
* screen |
58 |
|
*/ |
59 |
|
void hide(); |
60 |
|
|
61 |
|
/** |
62 |
|
* Retursn true if popup menu with JComboBOx's item is currently visible on |
63 |
|
* the screen and false otherwise |
64 |
|
* |
65 |
|
* @return true if JComboBox's popup menu with list of items is currently |
66 |
|
* visible on the screen and false otherwise. |
67 |
|
*/ |
68 |
boolean isVisible(); |
boolean isVisible(); |
69 |
|
|
70 |
|
/** |
71 |
|
* Return JList that is used to draw cells of the JComboBox. |
72 |
|
* |
73 |
|
* @return JList that is used to draw cells of the JcomboBox |
74 |
|
*/ |
75 |
|
JList getList(); |
76 |
|
|
77 |
|
/** |
78 |
|
* This method returns MouseListener that listen's to mouse events occuring |
79 |
|
* in the combo box |
80 |
|
* |
81 |
|
* @return MouseListenere |
82 |
|
*/ |
83 |
|
MouseListener getMouseListener(); |
84 |
|
|
85 |
|
/** |
86 |
|
* This method returns MouseListener that listen's to mouse events occuring |
87 |
|
* in the combo box. |
88 |
|
* |
89 |
|
* @return MouseMotionListener |
90 |
|
*/ |
91 |
|
MouseMotionListener getMouseMotionListener(); |
92 |
|
|
93 |
|
/** |
94 |
|
* This method returns KeyListener that listen's to key events occuring in |
95 |
|
* the combo box. |
96 |
|
* |
97 |
|
* @return KeyListener |
98 |
|
*/ |
99 |
|
KeyListener getKeyListener(); |
100 |
|
|
101 |
|
/* This method removes any listeners that were installed */ |
102 |
|
void uninstallingUI(); |
103 |
} |
} |