MenuItem
- the GUI toolkit specific type for menu itemsF
- the sorting strategy specific menu item supplier factory typepublic interface MenuItemSortingStrategy<MenuItem,F extends MenuItemSupplierFactory<MenuItem>>
PositionSortingStrategy
Modifier and Type | Method and Description |
---|---|
int |
getMenuItemInsertionPoint(List<? extends MenuItemSupplierFactoryEntry<MenuItem,F>> entryList,
MenuItemSupplierFactoryEntry<MenuItem,F> entry)
Gets the instertion point of the new menu entry.
|
Optional<Integer> |
getSeparatorInsertionPoint(int index,
List<? extends MenuItemSupplierFactoryEntry<MenuItem,F>> entryList,
MenuItemSupplierFactoryEntry<MenuItem,F> entry)
Gets the instertion point of a new separator.
|
int getMenuItemInsertionPoint(List<? extends MenuItemSupplierFactoryEntry<MenuItem,F>> entryList, MenuItemSupplierFactoryEntry<MenuItem,F> entry)
entryList
- the existing menu entriesentry
- the new entryOptional<Integer> getSeparatorInsertionPoint(int index, List<? extends MenuItemSupplierFactoryEntry<MenuItem,F>> entryList, MenuItemSupplierFactoryEntry<MenuItem,F> entry)
getMenuItemInsertionPoint(java.util.List, org.drombler.acp.core.action.MenuItemSupplierFactoryEntry)
.index
- the index of the new menu entry which was added to the listentryList
- the existing menu entries including the new menu entryentry
- the new menu entry which was added to the listCopyright © 2012–2017 Drombler. All rights reserved.