Class BaseSpinner

All Implemented Interfaces:
Animation, Editable, StyleListener, Iterable<Component>
Direct Known Subclasses:
DateSpinner, GenericSpinner, NumericSpinner, TimeSpinner

public abstract class BaseSpinner extends Container
Base class for spinners
  • Constructor Details

    • BaseSpinner

      public BaseSpinner()
      Default constructor
  • Method Details

    • calcPreferredSize

      protected Dimension calcPreferredSize()

      Calculates the preferred size based on component content. This method is invoked lazily by getPreferred size.

      Returns

      the calculated preferred size based on component content

      Overrides:
      calcPreferredSize in class Container
    • initComponent

      protected void initComponent()
      Default constructor
      Overrides:
      initComponent in class Component
    • refreshTheme

      public void refreshTheme(boolean merge)

      Makes sure the component is up to date with the current theme, ONLY INVOKE THIS METHOD IF YOU CHANGED THE THEME!

      Parameters
      • merge: indicates if the current styles should be merged with the new styles
      Overrides:
      refreshTheme in class Container
    • paintGlass

      protected void paintGlass(Graphics g)

      This method can be overriden by a component to draw on top of itself or its children after the component or the children finished drawing in a similar way to the glass pane but more refined per component

      Parameters
      • g: the graphics context
      Overrides:
      paintGlass in class Container