MenuItem
- the GUI toolkit specific type for menu itemspublic class PositionableMenuItemAdapterFactory<MenuItem> extends Object implements MenuItemSupplierFactory<MenuItem>
MenuItemSupplierFactory
knows the position to associate with the according menu item. The position is passed to the PositionableMenuItemAdapter
and is needed by the
PositionSortingStrategy
.PositionSortingStrategy
Constructor and Description |
---|
PositionableMenuItemAdapterFactory(int position)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
<T extends MenuItem> |
createMenuItemSupplier(T menuItem)
Creates a MenuItemSupplier for the according menu item.
|
public PositionableMenuItemAdapterFactory(int position)
position
- the position to associate with the according menu item.public <T extends MenuItem> PositionableMenuItemAdapter<T> createMenuItemSupplier(T menuItem)
createMenuItemSupplier
in interface MenuItemSupplierFactory<MenuItem>
T
- the type of the menu itemmenuItem
- the according menu itemCopyright © 2012–2017 Drombler. All rights reserved.