MenuItem
- the GUI toolkit specific type for menu itemsToggleMenuItem
- the GUI toolkit specific type for toggle menu itemsF
- the sorting strategy specific menu item supplier factory typepublic class ToggleMenuEntryDescriptor<MenuItem,ToggleMenuItem extends MenuItem,F extends MenuItemSupplierFactory<MenuItem,F>> extends MenuEntryDescriptor<MenuItem,F>
Constructor and Description |
---|
ToggleMenuEntryDescriptor(String actionId,
String path,
F menuItemSupplierFactory)
Creates a new instance of this class.
|
ToggleMenuEntryDescriptor(String actionId,
String toggleGroupId,
String path,
F menuItemSupplierFactory)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
static <MenuItem,ToggleMenuItem extends MenuItem> |
createToggleMenuEntryDescriptor(ToggleMenuEntryType menuEntryType)
Creates an instance of a
ToggleMenuEntryDescriptor from a ToggleMenuEntryType unmarshalled from the application.xml. |
String |
getToggleGroupId()
Gets the toggle group id or null if the toggle menu entry should not be part of a toggle group.
|
createMenuEntryDescriptor, getActionId, toString
getMenuItemSupplierFactory, getPath
public ToggleMenuEntryDescriptor(String actionId, String toggleGroupId, String path, F menuItemSupplierFactory)
actionId
- the id of the toggle action for this toggle menu entrytoggleGroupId
- the toggle group id or null if the toggle menu entry should not be part of a toggle grouppath
- the pathmenuItemSupplierFactory
- the menu item supplier factorypublic ToggleMenuEntryDescriptor(String actionId, String path, F menuItemSupplierFactory)
actionId
- he id of the toggle action for this toggle menu entrypath
- the pathmenuItemSupplierFactory
- the menu item supplier factorypublic String getToggleGroupId()
public static <MenuItem,ToggleMenuItem extends MenuItem> ToggleMenuEntryDescriptor<MenuItem,ToggleMenuItem,PositionableMenuItemAdapterFactory<MenuItem>> createToggleMenuEntryDescriptor(ToggleMenuEntryType menuEntryType)
ToggleMenuEntryDescriptor
from a ToggleMenuEntryType
unmarshalled from the application.xml.MenuItem
- the GUI toolkit specific type for menu itemsToggleMenuItem
- the GUI toolkit specific type for toggle menu itemsmenuEntryType
- the unmarshalled MenuEntryTypeCopyright © 2012–2019 Drombler. All rights reserved.