Class TimePanel

    • Field Detail

      • m_SpinnerHour

        protected JSpinner m_SpinnerHour
        the spinner for the hours.
      • m_SpinnerMinute

        protected JSpinner m_SpinnerMinute
        the spinner for the minutes.
      • m_SpinnerSecond

        protected JSpinner m_SpinnerSecond
        the spinner for the seconds.
    • Constructor Detail

      • TimePanel

        public TimePanel()
    • Method Detail

      • initialize

        protected void initialize()
        Initializes the members.
        Overrides:
        initialize in class BasePanel
      • initGUI

        protected void initGUI()
        Initializes the widgets.
        Overrides:
        initGUI in class BasePanel
      • finishInit

        protected void finishInit()
        Sets the current time.
        Overrides:
        finishInit in class BasePanel
      • setDate

        public void setDate​(Date value)
        Sets the current date.
        Specified by:
        setDate in interface DateProvider
        Parameters:
        value - the date to use
      • getDate

        public Date getDate()
        Returns the current date.
        Specified by:
        getDate in interface DateProvider
        Returns:
        the date in use
      • addChangeListener

        public void addChangeListener​(ChangeListener l)
        Adds the listener to the internal list.
        Parameters:
        l - the listener to add
      • removeChangeListener

        public void removeChangeListener​(ChangeListener l)
        Removes the listener from the internal list.
        Parameters:
        l - the listener to remove
      • notifyChangeListeners

        protected void notifyChangeListeners()
        Notifies all change listeners.
      • setEnabled

        public void setEnabled​(boolean b)
        Sets the enabled state.
        Overrides:
        setEnabled in class JComponent
        Parameters:
        b - if true then the panel is enabled