Class JCarouselMenu.MenuItem

  • Enclosing class:
    JCarouselMenu

    public static class JCarouselMenu.MenuItem
    extends java.lang.Object
    A menu item inside the carousel
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected javax.swing.Action action
      An associated action
      protected java.awt.Component carouselComponent
      The component inside the caroulse
      protected java.lang.String label
      The text label
    • Constructor Summary

      Constructors 
      Constructor Description
      MenuItem​(java.awt.Component component, java.lang.String label, javax.swing.Action action)
      Creates a new instance of the menu item
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.swing.Action getAction()
      Gets the action associated with the entry
      java.awt.Component getCarouselComponent()
      Gets the component in the carousel associated with the entry
      java.lang.String getLabel()
      Retreives the label associated with the entry
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • carouselComponent

        protected java.awt.Component carouselComponent
        The component inside the caroulse
      • label

        protected java.lang.String label
        The text label
      • action

        protected javax.swing.Action action
        An associated action
    • Constructor Detail

      • MenuItem

        public MenuItem​(java.awt.Component component,
                        java.lang.String label,
                        javax.swing.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 Detail

      • getLabel

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

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

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