Uses of Class
com.thecoderscorner.menu.domain.MenuItem
Packages that use MenuItem
Package
Description
-
Uses of MenuItem in com.thecoderscorner.menu.domain
Classes in com.thecoderscorner.menu.domain with type parameters of type MenuItemModifier and TypeClassDescriptionclassMenuItemBuilder<T extends MenuItemBuilder,M extends MenuItem>Subclasses of MenuItem in com.thecoderscorner.menu.domainModifier and TypeClassDescriptionclassActionMenuItem represents a menu item that is a one shot action, in that when triggered it just runs the callback on the embedded side.classRepresents an analog (numeric) menu item, it is always a zero based integer when retrieved from storage, but it can have an offset and divisor, so therefore is able to represent decimal values.classA menu item that can only hold boolean values (true or false).classA menu item that corresponds to the large number type on the device.classAn implementation of menu item that can store text strings.classA menu item implementation that represents one of a known set of choices, the choices are stored as an integer value, but each choice has a string representation as well.classFloatMenuItem represents a menu item that uses a floating point value.classA menu item that represents a colour in the RGB domain with optional Alpha channel.classclassRepresents a more configurable and more extensible version of enum that should be used when the number of choices is larger, the choices are in eeprom, or you need more control at runtime of the choices.classSubMenuItem represents a menu item that has children. -
Uses of MenuItem in com.thecoderscorner.menu.domain.state
Methods in com.thecoderscorner.menu.domain.state that return MenuItemModifier and TypeMethodDescriptionMenuState.getItem()Gets the menu item associated with this state.Methods in com.thecoderscorner.menu.domain.state that return types with arguments of type MenuItemModifier and TypeMethodDescriptionMenuTree.getAllMenuItems()Gets every menu item held in this menu tree, will be uniqueMenuTree.getAllSubMenus()Returns all the submenus that are currently storedMenuTree.getMenuById(int id)Gets the menu item with the specified ID, finding the submenu if needed.MenuTree.getMenuItems(MenuItem item)Get a list of all menu items for a given submenuMethods in com.thecoderscorner.menu.domain.state with parameters of type MenuItemModifier and TypeMethodDescriptionvoidMenuTree.addMenuItem(SubMenuItem parent, MenuItem item)add a new menu item to a sub menu, for the top level menu use ROOT.voidMenuTree.addOrUpdateItem(int parentId, MenuItem item)This will either add or update an existing item, depending if the ID is already present.<T> voidMenuTree.changeItem(MenuItem<T> item, MenuState<T> menuState)Change the value that's associated with a menu item.MenuTree.findParent(MenuItem toFind)Finds the submenu that the provided object belongs to.MenuTree.getMenuItems(MenuItem item)Get a list of all menu items for a given submenu<T> MenuState<T>MenuTree.getMenuState(MenuItem<T> item)Gets the menu state that's associated with a given menu item.voidMenuTree.moveItem(SubMenuItem parent, MenuItem newItem, MenuTree.MoveType moveType)Moves the item either up or down in the list for that submenuvoidMenuTree.removeMenuItem(MenuItem toRemove)Remove the menu item using this menu item as a prototype (Uses the ID for comparison)voidMenuTree.removeMenuItem(SubMenuItem parent, MenuItem item)Remove the menu item for the provided menu item in the provided sub menu.voidMenuTree.replaceMenuById(MenuItem toReplace)Replace a menu item with the given ID.voidMenuTree.replaceMenuById(SubMenuItem subMenu, MenuItem toReplace)Replace the menu item that has a given parent with the one provided.Constructors in com.thecoderscorner.menu.domain.state with parameters of type MenuItemModifierConstructorDescriptionBigDecimalMenuState(MenuItem<BigDecimal> item, boolean changed, boolean active, BigDecimal value)Creates a state that can store a big decimalBooleanMenuState(MenuItem<Boolean> item, boolean changed, boolean active, boolean value)CurrentScrollPositionMenuState(MenuItem<CurrentScrollPosition> item, boolean changed, boolean active, CurrentScrollPosition value)FloatMenuState(MenuItem<Float> item, boolean changed, boolean active, Float value)IntegerMenuState(MenuItem<Integer> item, boolean changed, boolean active, Integer value)normally these states are created from the menu item, instead of directlyPortableColorMenuState(MenuItem<PortableColor> item, boolean changed, boolean active, PortableColor value)StringListMenuState(MenuItem<List<String>> item, boolean changed, boolean active, String... value)StringListMenuState(MenuItem<List<String>> item, boolean changed, boolean active, List<String> value)StringMenuState(MenuItem<String> item, boolean changed, boolean active, String value) -
Uses of MenuItem in com.thecoderscorner.menu.domain.util
Methods in com.thecoderscorner.menu.domain.util that return MenuItemModifier and TypeMethodDescriptionstatic MenuItemMenuItemHelper.createFromExistingWithId(MenuItem selected, int newId)creates a copy of the menu item chosen, with the ID changed to newIdMethods in com.thecoderscorner.menu.domain.util with parameters of type MenuItemModifier and TypeMethodDescriptionvoidWhenever a visit method is not implemented, then anyItem is called instead.static SubMenuItemReturns the menu item as a sub menu or nullstatic MenuItemMenuItemHelper.createFromExistingWithId(MenuItem selected, int newId)creates a copy of the menu item chosen, with the ID changed to newIdstatic intMenuItemHelper.eepromSizeForItem(MenuItem item)Gets the size of the eeprom storage for a given element typestatic booleanMenuItemHelper.isRuntimeStructureNeeded(MenuItem item)Check if the item is based on a runtime itemstatic <T> Optional<T>MenuItemHelper.visitWithResult(MenuItem item, AbstractMenuItemVisitor<T> visitor)Visits a menu item calling the appropriate function for the type and collects the result that is set by calling your visitor's `setResult` method. -
Uses of MenuItem in com.thecoderscorner.menu.remote
Methods in com.thecoderscorner.menu.remote with parameters of type MenuItemModifier and TypeMethodDescriptionvoidRemoteControllerListener.ackReceived(CorrelationId key, MenuItem item, AckStatus status)Indicates that an acknowledgment has been received from the embedded device.voidRemoteControllerListener.menuItemChanged(MenuItem item, boolean valueOnly)Called when a menu item has either been added or changed, the valueOnly indicates if the change is just in the latest value, or also in the MenuItem structure too.RemoteMenuController.sendAbsoluteUpdate(MenuItem item, Object newValue)Send an asbolute change for the given itemRemoteMenuController.sendDeltaUpdate(MenuItem item, int deltaChange)Send a delta change for the given menuitem -
Uses of MenuItem in com.thecoderscorner.menu.remote.commands
Classes in com.thecoderscorner.menu.remote.commands with type parameters of type MenuItemMethods in com.thecoderscorner.menu.remote.commands with parameters of type MenuItemModifier and TypeMethodDescriptionstatic MenuChangeCommandCommandFactory.newAbsoluteMenuChangeCommand(CorrelationId correlation, MenuItem item, Object value)Creates a new absolute change command given the menu item and the absolute change in value.static MenuChangeCommandCommandFactory.newDeltaChangeCommand(CorrelationId correlation, MenuItem item, int value)Creates a new delta change command given the menu item and the delta change in value.