Class DefaultMonthSelector

All Implemented Interfaces:
HasAttachHandlers, HasHandlers, EventListener, HasVisibility, IsRenderable, IsWidget

public final class DefaultMonthSelector extends MonthSelector
A simple MonthSelector used for the default date picker. It allows to select months and years but the name is not changed for backward compatibility. Also not extensible as we wish to evolve it freely over time.
  • Constructor Details

    • DefaultMonthSelector

      public DefaultMonthSelector()
  • Method Details

    • getBackwardButtonElement

      public Element getBackwardButtonElement()
      Returns the button for moving to the previous month.
    • getForwardButtonElement

      public Element getForwardButtonElement()
      Returns the button for moving to the next month.
    • getYearBackwardButtonElement

      public Element getYearBackwardButtonElement()
      Returns the button for moving to the previous year.
    • getYearForwardButtonElement

      public Element getYearForwardButtonElement()
      Returns the button for moving to the next year.
    • getMonthSelectListBox

      public ListBox getMonthSelectListBox()
      Returns the ListBox for selecting the month
    • getYearSelectListBox

      public ListBox getYearSelectListBox()
      Returns the ListBox for selecting the year
    • refresh

      protected void refresh()
      Description copied from class: DatePickerComponent
      Refresh the component. Usually called because the model's current date has changed. In general, only should be called by DatePicker. Use refreshAll() if you need to refresh all components.
      Specified by:
      refresh in class DatePickerComponent
    • setup

      protected void setup()
      Description copied from class: DatePickerComponent
      Set up the component.
      Specified by:
      setup in class DatePickerComponent