Class MaterialSpinnerUI


  • public class MaterialSpinnerUI
    extends javax.swing.plaf.basic.BasicSpinnerUI
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      protected class  MaterialSpinnerUI.ArrowButtonSpinner
      This class use the MaterialButtonUI API to create the custom button for the icon
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.swing.JButton configureLocalButton​(javax.swing.Icon icon)  
      protected java.awt.Component createNextButton()  
      protected java.awt.Component createPreviousButton()  
      static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)  
      void installUI​(javax.swing.JComponent c)  
      void paint​(java.awt.Graphics g, javax.swing.JComponent c)  
      void uninstallUI​(javax.swing.JComponent c)  
      • Methods inherited from class javax.swing.plaf.basic.BasicSpinnerUI

        createEditor, createLayout, createPropertyChangeListener, getBaseline, getBaselineResizeBehavior, installDefaults, installKeyboardActions, installListeners, installNextButtonListeners, installPreviousButtonListeners, replaceEditor, uninstallDefaults, uninstallListeners
      • Methods inherited from class javax.swing.plaf.ComponentUI

        contains, getAccessibleChild, getAccessibleChildrenCount, getMaximumSize, getMinimumSize, getPreferredSize, update
      • Methods inherited from class java.lang.Object

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

      • upArrowButton

        protected javax.swing.JButton upArrowButton
      • downArrowButton

        protected javax.swing.JButton downArrowButton
      • spinnerDisableBackground

        protected java.awt.Color spinnerDisableBackground
      • spinnerBackground

        protected java.awt.Color spinnerBackground
    • Constructor Detail

      • MaterialSpinnerUI

        public MaterialSpinnerUI()
    • Method Detail

      • createUI

        public static javax.swing.plaf.ComponentUI createUI​(javax.swing.JComponent c)
      • installUI

        public void installUI​(javax.swing.JComponent c)
        Overrides:
        installUI in class javax.swing.plaf.basic.BasicSpinnerUI
      • uninstallUI

        public void uninstallUI​(javax.swing.JComponent c)
        Overrides:
        uninstallUI in class javax.swing.plaf.basic.BasicSpinnerUI
      • paint

        public void paint​(java.awt.Graphics g,
                          javax.swing.JComponent c)
        Overrides:
        paint in class javax.swing.plaf.ComponentUI
      • createNextButton

        protected java.awt.Component createNextButton()
        Overrides:
        createNextButton in class javax.swing.plaf.basic.BasicSpinnerUI
      • createPreviousButton

        protected java.awt.Component createPreviousButton()
        Overrides:
        createPreviousButton in class javax.swing.plaf.basic.BasicSpinnerUI
      • configureLocalButton

        protected javax.swing.JButton configureLocalButton​(javax.swing.Icon icon)