58 |
import javax.swing.event.ListDataEvent; |
import javax.swing.event.ListDataEvent; |
59 |
import javax.swing.event.ListDataListener; |
import javax.swing.event.ListDataListener; |
60 |
import javax.swing.event.PopupMenuListener; |
import javax.swing.event.PopupMenuListener; |
61 |
|
import javax.swing.event.PopupMenuEvent; |
62 |
import javax.swing.plaf.ComboBoxUI; |
import javax.swing.plaf.ComboBoxUI; |
63 |
|
|
64 |
/** |
/** |
844 |
} |
} |
845 |
|
|
846 |
/** |
/** |
847 |
|
* Fires a popupMenuCanceled() event to all <code>PopupMenuListeners</code>. |
848 |
|
* |
849 |
|
* Note: This method is intended for use by plaf classes only. |
850 |
|
*/ |
851 |
|
public void firePopupMenuCanceled() |
852 |
|
{ |
853 |
|
PopupMenuListener[] listeners = getPopupMenuListeners(); |
854 |
|
PopupMenuEvent e = new PopupMenuEvent(this); |
855 |
|
for(int i = 0; i < listeners.length; i++) |
856 |
|
listeners[i].popupMenuCanceled(e); |
857 |
|
} |
858 |
|
|
859 |
|
/** |
860 |
|
* Fires a popupMenuWillBecomeInvisible() event to all |
861 |
|
* <code>PopupMenuListeners</code>. |
862 |
|
* |
863 |
|
* Note: This method is intended for use by plaf classes only. |
864 |
|
*/ |
865 |
|
public void firePopupMenuWillBecomeInvisible() |
866 |
|
{ |
867 |
|
PopupMenuListener[] listeners = getPopupMenuListeners(); |
868 |
|
PopupMenuEvent e = new PopupMenuEvent(this); |
869 |
|
for(int i = 0; i < listeners.length; i++) |
870 |
|
listeners[i].popupMenuWillBecomeInvisible(e); |
871 |
|
} |
872 |
|
|
873 |
|
/** |
874 |
|
* Fires a popupMenuWillBecomeVisible() event to all |
875 |
|
* <code>PopupMenuListeners</code>. |
876 |
|
* |
877 |
|
* Note: This method is intended for use by plaf classes only. |
878 |
|
*/ |
879 |
|
public void firePopupMenuWillBecomeVisible() |
880 |
|
{ |
881 |
|
PopupMenuListener[] listeners = getPopupMenuListeners(); |
882 |
|
PopupMenuEvent e = new PopupMenuEvent(this); |
883 |
|
for(int i = 0; i < listeners.length; i++) |
884 |
|
listeners[i].popupMenuWillBecomeVisible(e); |
885 |
|
} |
886 |
|
|
887 |
|
/** |
888 |
* This method is invoked whenever selected item changes in the combo box's |
* This method is invoked whenever selected item changes in the combo box's |
889 |
* data model. It fires ItemEvent and ActionEvent to all registered |
* data model. It fires ItemEvent and ActionEvent to all registered |
890 |
* ComboBox's ItemListeners and ActionListeners respectively, indicating |
* ComboBox's ItemListeners and ActionListeners respectively, indicating |