Class MenuItemDTO

java.lang.Object
org.broadleafcommerce.menu.dto.MenuItemDTO
All Implemented Interfaces:
Serializable

public class MenuItemDTO extends Object implements Serializable
A Generic DTO object that represents the information to display a Menu Item. Can be used on the front end as a way to easily iterate and display menu items of different types.
Author:
Elbert Bautista (elbertbautista)
See Also:
  • Field Details

    • label

      protected String label
    • url

      protected String url
    • imageUrl

      protected String imageUrl
    • altText

      protected String altText
    • customHtml

      protected String customHtml
    • categoryId

      protected Long categoryId
      not always set, only if the menu item represents a category.
  • Constructor Details

    • MenuItemDTO

      public MenuItemDTO()
  • Method Details

    • getLabel

      public String getLabel()
    • setLabel

      public void setLabel(String label)
    • getUrl

      public String getUrl()
    • setUrl

      public void setUrl(String url)
    • getImageUrl

      public String getImageUrl()
    • setImageUrl

      public void setImageUrl(String imageUrl)
    • getAltText

      public String getAltText()
    • setAltText

      public void setAltText(String altText)
    • getSubmenu

      public List<MenuItemDTO> getSubmenu()
    • setSubmenu

      public void setSubmenu(List<MenuItemDTO> submenu)
    • getCategoryId

      public Long getCategoryId()
    • setCategoryId

      public void setCategoryId(Long categoryId)
    • getSerialversionuid

      public static long getSerialversionuid()
    • getCustomHtml

      public String getCustomHtml()
    • setCustomHtml

      public void setCustomHtml(String customHtml)