java.lang.Object
org.pushingpixels.lafwidget.contrib.blogofbug.swing.components.JCarouselMenu.MenuItem
Enclosing class:
JCarouselMenu

public class JCarouselMenu.MenuItem extends Object
A menu item inside the carousel
  • Field Details

    • carouselComponent

      protected Component carouselComponent
      The component inside the caroulse
    • label

      protected String label
      The text label
    • action

      protected Action action
      An associated action
  • Constructor Details

    • MenuItem

      public MenuItem(Component component, String label, Action action)
      Creates a new instance of the menu item
      Parameters:
      component - The component to use
      label - The text label
      action - The associated action
  • Method Details

    • getLabel

      public String getLabel()
      Retreives the label associated with the entry
      Returns:
      The label
    • getAction

      public Action getAction()
      Gets the action associated with the entry
      Returns:
      The action associated with the entry
    • getCarouselComponent

      public Component getCarouselComponent()
      Gets the component in the carousel associated with the entry
      Returns:
      The component