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

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

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

revision 1.19 by trebligd, Tue Sep 13 13:32:52 2005 UTC revision 1.20 by smarothy, Tue Sep 27 05:55:26 2005 UTC
# Line 58  import javax.accessibility.AccessibleSel Line 58  import javax.accessibility.AccessibleSel
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  /**  /**
# Line 843  public class JComboBox extends JComponen Line 844  public class JComboBox extends JComponen
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

Legend:
Removed from v.1.19  
changed lines
  Added in v.1.20

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26