Class BootstrapDateTimePicker


  • public class BootstrapDateTimePicker
    extends BaseElement
    Represents the actions possible on the Bootstrap-based date-time picker widget.
    Since:
    11.7RC1
    Version:
    $Id: 03f36b40975025fb48d385e1c5786e7bb3b15091 $
    • Constructor Detail

      • BootstrapDateTimePicker

        public BootstrapDateTimePicker()
    • Method Detail

      • getSelectedDay

        public String getSelectedDay()
        Returns:
        the selected day
      • getSelectedMonth

        public String getSelectedMonth()
        Returns:
        the selected month
      • getSelectedYear

        public String getSelectedYear()
        Returns:
        the selected year
      • showNextMonth

        public BootstrapDateTimePicker showNextMonth()
        Show the next month.
        Returns:
        this date and time picker
      • showPreviousMonth

        public BootstrapDateTimePicker showPreviousMonth()
        Show the previous month.
        Returns:
        this date and time picker
      • changeMonthAndYear

        public BootstrapDateTimePicker changeMonthAndYear()
        Opens the month and year picker.
        Returns:
        this date and time picker
      • selectMonth

        public BootstrapDateTimePicker selectMonth​(String month)
        Parameters:
        month - the month to select
        Returns:
        this date and time picker
      • showNextYear

        public BootstrapDateTimePicker showNextYear()
        Show the next year.
        Returns:
        this date and time picker
      • showPreviousYear

        public BootstrapDateTimePicker showPreviousYear()
        Show the previous year.
        Returns:
        this date and time picker
      • changeYear

        public BootstrapDateTimePicker changeYear()
        Open the year picker.
        Returns:
        this date and time picker
      • showNextDecade

        public BootstrapDateTimePicker showNextDecade()
        Show the next decade.
        Returns:
        this date and time picker
      • showPreviousDecade

        public BootstrapDateTimePicker showPreviousDecade()
        Show the previous decade.
        Returns:
        this date and time picker
      • selectYear

        public BootstrapDateTimePicker selectYear​(String year)
        Parameters:
        year - the year to select
        Returns:
        this date and time picker
      • changeDecade

        public BootstrapDateTimePicker changeDecade()
        Open the decade picker.
        Returns:
        this date and time picker
      • selectDecade

        public BootstrapDateTimePicker selectDecade​(String decade)
        Parameters:
        decade - the decade to select
        Returns:
        this date and time picker
      • showNextCentury

        public BootstrapDateTimePicker showNextCentury()
        Show the next century.
        Returns:
        this date and time picker
      • showPreviousCentury

        public BootstrapDateTimePicker showPreviousCentury()
        Show the previous century.
        Returns:
        this date and time picker
      • toggleTimePicker

        public BootstrapDateTimePicker toggleTimePicker()
        Switch between date and time picker.
        Returns:
        this date and time picker
      • hasTimePicker

        public boolean hasTimePicker()
        Returns:
        true if the time picker is available
      • changeHour

        public BootstrapDateTimePicker changeHour()
        Open the hour picker.
        Returns:
        this date and time picker
      • changeMinute

        public BootstrapDateTimePicker changeMinute()
        Open the minute picker.
        Returns:
        this date and time picker
      • changeSecond

        public BootstrapDateTimePicker changeSecond()
        Open the second picker.
        Returns:
        this date and time picker
      • selectHour

        public BootstrapDateTimePicker selectHour​(String hour)
        Parameters:
        hour - the hour to select
        Returns:
        this date and time picker
      • selectMinute

        public BootstrapDateTimePicker selectMinute​(String minute)
        Parameters:
        minute - the minute to select
        Returns:
        this date and time picker
      • selectSecond

        public BootstrapDateTimePicker selectSecond​(String second)
        Parameters:
        second - the second to select
        Returns:
        this date and time picker
      • incrementHour

        public BootstrapDateTimePicker incrementHour()
        Increments the hour.
        Returns:
        this date and time picker
      • incrementMinute

        public BootstrapDateTimePicker incrementMinute()
        Increments the minutes.
        Returns:
        this date and time picker
      • incrementSecond

        public BootstrapDateTimePicker incrementSecond()
        Increments the seconds.
        Returns:
        this date and time picker
      • decrementHour

        public BootstrapDateTimePicker decrementHour()
        Decrements the hours.
        Returns:
        this date and time picker
      • decrementMinute

        public BootstrapDateTimePicker decrementMinute()
        Decrements the minutes.
        Returns:
        this date and time picker
      • decrementSecond

        public BootstrapDateTimePicker decrementSecond()
        Decrements the seconds.
        Returns:
        this date and time picker
      • getSelectedHour

        public String getSelectedHour()
        Returns:
        the selected hour
      • getSelectedMinute

        public String getSelectedMinute()
        Returns:
        the selected minute
      • getSelectedSecond

        public String getSelectedSecond()
        Returns:
        the selected second
      • close

        public void close()
        Closes the date time picker.