Class CalendarWidget

All Implemented Interfaces:
Drawable

public class CalendarWidget extends Composite
Widget for displaying and selecting an absolute date and time.
  • Constructor Details

    • CalendarWidget

      public CalendarWidget(Composite parent, int flags)
      Construct widget, initialized to the 'current' time.
      Parameters:
      parent - Widget parent.
      flags - SWT widget flags.
    • CalendarWidget

      public CalendarWidget(Composite parent, int flags, Calendar calendar)
      Construct widget, initialized to given time.
      Parameters:
      parent - Widget parent.
      flags - SWT widget flags.
  • Method Details

    • addListener

      public void addListener(CalendarWidgetListener listener)
      Add given listener.
    • removeListener

      public void removeListener(CalendarWidgetListener listener)
      Remove given listener.
    • setCalendar

      public void setCalendar(Calendar calendar)
      Set the widget to display the given time.
    • getCalendar

      public Calendar getCalendar()
      Returns:
      Returns the currently selected time.