org.apache.batik.util.gui
public static class DropDownComponent.ScrollablePopupMenu extends JPopupMenu
Constructor Summary | |
---|---|
ScrollablePopupMenu(JComponent owner)
Constructor.
|
Method Summary | |
---|---|
void | add(DropDownComponent.ScrollablePopupMenuItem menuItem, int index, int oldSize, int newSize)
Adds the item to this component at the specified location.
|
void | addListener(DropDownComponent.ScrollablePopupMenuListener listener)
Adds the listener to the listener list.
|
void | fireItemsWereAdded(DropDownComponent.ScrollablePopupMenuEvent event)
Fires the itemsWereAdded event, when the items are added to this pop
up menu.
|
void | fireItemsWereRemoved(DropDownComponent.ScrollablePopupMenuEvent event)
Fires the itemsWereRemove event, when the items are removed from this
pop up menu.
|
DropDownComponent.ScrollablePopupMenuItem | getFooter()
Gets the footer item. |
DropDownComponent.ScrollablePopupMenuModel | getModel()
Gets the ScrollablePopupMenuModel
|
JComponent | getOwner()
Gets the owner component. |
Dimension | getPreferredSize() |
int | getSelectedItemsCount()
Gets the number of the selected items.
|
void | processItemClicked()
Processes click on the pop up menu item. |
void | remove(DropDownComponent.ScrollablePopupMenuItem menuItem, int oldSize, int newSize)
Removes the item from this component.
|
void | selectionChanged(DropDownComponent.ScrollablePopupMenuItem targetItem, boolean wasSelected)
Invoked when item selection changes. |
void | setModel(DropDownComponent.ScrollablePopupMenuModel model)
Sets the ScrollablePopupMenuModel.
|
void | showMenu(Component invoker, Component refComponent)
Shows this popup menu.
|
Parameters: owner The owner component
Parameters: menuItem the item to add
Parameters: listener The listener to add
Parameters: event The associated ScrollablePopupMenuEvent event
Parameters: event The associated ScrollablePopupMenuEvent event
Returns: the footer
Returns: the ScrollablePopupMenuModel model
Returns: the owner component
Returns: number of selected items
Parameters: menuItem the item to remove
Parameters: model the model to set
Parameters: invoker The popup menu invoker component refComponent The dropdown component that containts this menu