Package org.apache.batik.util.gui
Class DropDownComponent.ScrollablePopupMenuEvent
- java.lang.Object
-
- java.util.EventObject
-
- org.apache.batik.util.gui.DropDownComponent.ScrollablePopupMenuEvent
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- DropDownComponent
public static class DropDownComponent.ScrollablePopupMenuEvent extends java.util.EventObjectEvent to pass to listener.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringdetailsThe details about the event.private intitemNumberThe number of items that were added / removed.static intITEMS_ADDEDstatic intITEMS_REMOVEDprivate inttypeThe event type.
-
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.StringgetDetails()Gets the event details.intgetItemNumber()Gets the item number.intgetType()Gets the event type.voidinitEvent(int type, int itemNumber, java.lang.String details)Initializes this event.
-
-
-
Field Detail
-
ITEMS_ADDED
public static final int ITEMS_ADDED
- See Also:
- Constant Field Values
-
ITEMS_REMOVED
public static final int ITEMS_REMOVED
- See Also:
- Constant Field Values
-
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 componenttype- The event typeitemNumber- The item numberdetails- 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
-
-