java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JLabel
org.pushingpixels.radiance.theming.extras.internal.contrib.blogofbug.swing.components.JCarouselMenu.UpDownButton
All Implemented Interfaces:
MouseListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, SwingConstants
Enclosing class:
JCarouselMenu

private class JCarouselMenu.UpDownButton extends JLabel implements MouseListener
This class represents the up and down buttons that allow the scrolling through the menu when it is too big to fit in the avaiable space
  • Field Details

    • doPaint

      private boolean doPaint
      True if they should be painted
  • Constructor Details

    • UpDownButton

      public UpDownButton(String text)
      Creates the up down button
      Parameters:
      text - Test, ignored
  • Method Details

    • setDoPaint

      public void setDoPaint(boolean shouldPaint)
      Controls if the button should paint itself or not
      Parameters:
      shouldPaint - True if it should, false if it shouldn't
    • paintComponent

      public void paintComponent(Graphics g)
      Paint the component
      Overrides:
      paintComponent in class JComponent
      Parameters:
      g - The graphics context
    • mouseClicked

      public void mouseClicked(MouseEvent mouseEvent)
      Listens for a mouse click and scroll up or down in the menu when it gets one
      Specified by:
      mouseClicked in interface MouseListener
      Parameters:
      mouseEvent - The mouse event
    • mousePressed

      public void mousePressed(MouseEvent mouseEvent)
      Don't care
      Specified by:
      mousePressed in interface MouseListener
      Parameters:
      mouseEvent - The mouse event
    • mouseReleased

      public void mouseReleased(MouseEvent mouseEvent)
      Don't care
      Specified by:
      mouseReleased in interface MouseListener
      Parameters:
      mouseEvent - The mouse event
    • mouseEntered

      public void mouseEntered(MouseEvent mouseEvent)
      Don't care
      Specified by:
      mouseEntered in interface MouseListener
      Parameters:
      mouseEvent - The mouse event
    • mouseExited

      public void mouseExited(MouseEvent mouseEvent)
      Don't care
      Specified by:
      mouseExited in interface MouseListener
      Parameters:
      mouseEvent - The mouse event