Class IlxWCalendar

  • All Implemented Interfaces:
    IlxWConstants, IlxWCSSModelProvider, IlxWDependencyProvider, IlxWJSObject, Serializable

    @Deprecated
    public class IlxWCalendar
    extends IlxWComponent
    Deprecated.
    A calendar component that allows the user to view and edit a date.

    The calendar can be displayed in several modes, which can be set by changing the date-format CSS style. Available modes are:

    • date: only displays the day information (day,month,year) corresponding to the current date.
    • time: only displays the time information (hour,minutes,seconds) corresponding to the current date,
    • datetime: displays the time information (hour,minute,second) and the day information (day,month,year).
    By default, the date-format style is defined to "datetime" by the calendar user agent style sheet.

    To change the current date format to "date", you could write the following code:

     IlxWCalendar myCalendar = new IlxWCalendar();
     myCalendar.getStyle().set("dateFormat", "date");
     ...
     
    See Also:
    Serialized Form
    • Field Detail

      • firstYear

        public static int firstYear
        Deprecated.
      • lastYear

        public static int lastYear
        Deprecated.
      • CSS_RESOURCE_NAME

        public static final String CSS_RESOURCE_NAME
        Deprecated.
        Resource path to the user-agent CSS.
        See Also:
        Constant Field Values
    • Constructor Detail

      • IlxWCalendar

        public IlxWCalendar()
        Deprecated.
        Creates a calendar component initialized with the current date.
      • IlxWCalendar

        public IlxWCalendar​(Date date)
        Deprecated.
        Creates a calendar component initialized with the given date.
        Parameters:
        date - The date to display. Must not be null.
      • IlxWCalendar

        public IlxWCalendar​(com.ibm.icu.util.TimeZone timezone)
        Deprecated.
      • IlxWCalendar

        public IlxWCalendar​(Date date,
                            com.ibm.icu.util.TimeZone timezone)
        Deprecated.
        Creates a calendar component initialized with the given date.
        Parameters:
        date - The date to display. Must not be null.
    • Method Detail

      • setDate

        public void setDate​(Date date)
        Deprecated.
        Sets the date to display in the calendar.
        Parameters:
        date - The date to display. Must not be null.
      • getDate

        public Date getDate()
        Deprecated.
        Gets the date currently displayed in the calendar.

        Returns:
        The calendar current date.
      • addChangeListener

        public void addChangeListener​(ChangeListener l)
        Deprecated.
        Adds the specified change listener to receive change events from this calendar.

        A change event is fired when the date changes.

        Parameters:
        l - The change listener.
      • removeChangeListener

        public void removeChangeListener​(ChangeListener l)
        Deprecated.
        Removes the specified change listener so that it no longer receives change events from this calendar.
        Parameters:
        l - The change listener.
      • fireStateChanged

        protected void fireStateChanged()
        Deprecated.
        Notifies all listeners that have registered interest for notification on this event type.

        The event instance is lazily created using the parameters passed into the fire method. The listener list is processed in last to first order.