Class SpinningCalendarHeaderHandler.SpinningCalendarHeader

    • Constructor Detail

      • SpinningCalendarHeader

        public SpinningCalendarHeader()
    • Method Detail

      • setActions

        public void setActions​(Action prev,
                               Action next,
                               SpinnerModel model)
        Installs the actions and models to be used by this component.
        Parameters:
        prev - the action to use for the previous button
        next - the action to use for the next button
        model - the spinner model to use for the spinner.
      • setSpinnerFocusable

        public void setSpinnerFocusable​(boolean focusable)
        Sets the focusable property of the spinner's editor's text field. The default value is false.
        Parameters:
        focusable - the focusable property of the spinner's editor.
      • setArrowsSurroundMonth

        public void setArrowsSurroundMonth​(boolean surroundMonth)
        The default value is false.
        Parameters:
        surroundMonth -
      • setMonthText

        public void setMonthText​(String text)
        Sets the text to use for the month label.
        Parameters:
        text - the text to use for the month label.
      • setFont

        public void setFont​(Font font)

        Overridden to set the font of its child components.

        Overrides:
        setFont in class JComponent
      • setBackground

        public void setBackground​(Color bg)
        Sets the background color for this component by

        Overridden to set the background of its child compenents.

        Overrides:
        setBackground in class JXPanel
        Parameters:
        bg - the desired background Color
        See Also:
        java.swing.JComponent#getBackground, JComponent.setOpaque(boolean)