Class DropDownComponent.ScrollablePopupMenuEvent

  • All Implemented Interfaces:
    java.io.Serializable
    Enclosing class:
    DropDownComponent

    public static class DropDownComponent.ScrollablePopupMenuEvent
    extends java.util.EventObject
    Event to pass to listener.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String details
      The details about the event.
      private int itemNumber
      The number of items that were added / removed.
      static int ITEMS_ADDED  
      static int ITEMS_REMOVED  
      private int type
      The event type.
      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      ScrollablePopupMenuEvent​(java.lang.Object source, int type, int itemNumber, java.lang.String details)
      Creates the ScrollablePopupMenuEvent.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getDetails()
      Gets the event details.
      int getItemNumber()
      Gets the item number.
      int getType()
      Gets the event type.
      void initEvent​(int type, int itemNumber, java.lang.String details)
      Initializes this event.
      • Methods inherited from class java.util.EventObject

        getSource, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • type

        private int type
        The event type.
      • itemNumber

        private int itemNumber
        The number of items that were added / removed.
      • details

        private java.lang.String details
        The details about the event.
    • Constructor Detail

      • ScrollablePopupMenuEvent

        public ScrollablePopupMenuEvent​(java.lang.Object source,
                                        int type,
                                        int itemNumber,
                                        java.lang.String details)
        Creates the ScrollablePopupMenuEvent.
        Parameters:
        source - The source component
        type - The event type
        itemNumber - The item number
        details - The event details
    • Method Detail

      • initEvent

        public void initEvent​(int type,
                              int itemNumber,
                              java.lang.String details)
        Initializes this event.
      • getDetails

        public java.lang.String getDetails()
        Gets the event details.
        Returns:
        the details
      • getItemNumber

        public int getItemNumber()
        Gets the item number.
        Returns:
        the item number
      • getType

        public int getType()
        Gets the event type.
        Returns:
        the type