MenuItem
- the GUI toolkit specific type for menu itemspublic class PositionableMenuItemAdapterFactory<MenuItem> extends Object implements MenuItemSupplierFactory<MenuItem,PositionableMenuItemAdapterFactory<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.
|
PositionableMenuItemAdapterFactory<MenuItem> |
toNextSeparatorSupplierFactory() |
PositionableMenuItemAdapterFactory<MenuItem> |
toPreviousSeparatorSupplierFactory() |
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,PositionableMenuItemAdapterFactory<MenuItem>>
T
- the type of the menu itemmenuItem
- the according menu itempublic PositionableMenuItemAdapterFactory<MenuItem> toPreviousSeparatorSupplierFactory()
toPreviousSeparatorSupplierFactory
in interface MenuItemSupplierFactory<MenuItem,PositionableMenuItemAdapterFactory<MenuItem>>
public PositionableMenuItemAdapterFactory<MenuItem> toNextSeparatorSupplierFactory()
toNextSeparatorSupplierFactory
in interface MenuItemSupplierFactory<MenuItem,PositionableMenuItemAdapterFactory<MenuItem>>
Copyright © 2012–2018 Drombler. All rights reserved.