MenuItem
- the GUI toolkit specific type for menu itemsF
- the sorting strategy specific menu item supplier factory typepublic class MenuItemSupplierFactoryEntry<MenuItem,F extends MenuItemSupplierFactory<MenuItem>> extends Object
MenuItemSupplierFactory
with a menu item.MenuItemSortingStrategy
Constructor and Description |
---|
MenuItemSupplierFactoryEntry(F supplierFactory,
MenuItem menuItem,
boolean separator)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
MenuItem |
getMenuItem()
Gets the menu item-
|
MenuItemSupplier<MenuItem> |
getMenuItemSupplier()
Gets the
MenuItemSupplier . |
F |
getSupplierFactory()
Gets the
MenuItemSupplierFactory . |
boolean |
isSeparator()
Indicates if the menu item is a separator or not.
|
public MenuItemSupplierFactoryEntry(F supplierFactory, MenuItem menuItem, boolean separator)
supplierFactory
- the MenuItemSupplierFactorymenuItem
- the menu itemseparator
- true, if the provided menu item is a separator, else falsepublic F getSupplierFactory()
MenuItemSupplierFactory
.public MenuItem getMenuItem()
public MenuItemSupplier<MenuItem> getMenuItemSupplier()
MenuItemSupplier
.public boolean isSeparator()
Copyright © 2012–2017 Drombler. All rights reserved.