Class CalendarBase<A extends CalendarActivity>

    • Constructor Detail

      • CalendarBase

        protected CalendarBase​(String name)
        Constructs a new calendar.
        Parameters:
        name - the name of the calendar
        Since:
        1.0
    • Method Detail

      • nameProperty

        public final StringProperty nameProperty()
        Description copied from interface: Calendar
        Returns the property used to store the name of the calendar. The name might be displayed by the UI (e.g. in a context menu).
        Specified by:
        nameProperty in interface Calendar<A extends CalendarActivity>
        Returns:
        the name of the calendar, for example ("Weekends")
      • getName

        public final String getName()
        Returns the value of the nameProperty().
        Returns:
        the calendar name
        Since:
        1.0
      • setName

        public final void setName​(String name)
        Sets the value of the nameProperty().
        Parameters:
        name - the calendar name
        Since:
        1.0
      • visibleProperty

        public final BooleanProperty visibleProperty()
        Description copied from interface: Calendar
        Returns the property used to store the visibility flag of the calendar. Calendars can be shown / hidden by the user.
        Specified by:
        visibleProperty in interface Calendar<A extends CalendarActivity>
        Returns:
        the calendar's visibility
      • isVisible

        public final boolean isVisible()
        Returns the value of the visibleProperty().
        Returns:
        the calendar visibility
        Since:
        1.0
      • setVisible

        public final void setVisible​(boolean visible)
        Sets the value of the visibleProperty().
        Parameters:
        visible - the calendar visibility
        Since:
        1.0