Class DateTimeSpinner

All Implemented Interfaces:
Animation, Editable, StyleListener, Iterable<Component>

public class DateTimeSpinner extends TimeSpinner
The date and time spinner extends the time spinner by allowing to pick a specific day as well
  • Constructor Details

    • DateTimeSpinner

      public DateTimeSpinner()
      Default constructor
  • Method Details

    • getCurrentDate

      public Date getCurrentDate()
      Returns

      the currentDate

    • setCurrentDate

      public void setCurrentDate(Date currentDate)
      Parameters
      • currentDate: the currentDate to set
    • getStartDate

      public Date getStartDate()
      Returns

      the startDate

    • setStartDate

      public void setStartDate(Date startDate)
      Parameters
      • startDate: the startDate to set
    • getEndDate

      public Date getEndDate()
      Returns

      the endDate

    • setEndDate

      public void setEndDate(Date endDate)
      Parameters
      • endDate: the endDate to set
    • isMarkToday

      public boolean isMarkToday()
      Returns

      the markToday

    • setMarkToday

      public void setMarkToday(boolean markToday)
      Parameters
      • markToday: the markToday to set
    • isIncludeYear

      public boolean isIncludeYear()
      Returns

      the includeYear

    • setIncludeYear

      public void setIncludeYear(boolean includeYear)
      Parameters
      • includeYear: the includeYear to set
    • getPropertyNames

      public String[] getPropertyNames()

      A component may expose mutable property names for a UI designer to manipulate, this API is designed for usage internally by the GUI builder code

      Returns

      the property names allowing mutation

      Overrides:
      getPropertyNames in class TimeSpinner
    • getPropertyTypes

      public Class[] getPropertyTypes()

      Matches the property names method (see that method for further details).

      Returns

      the types of the properties

      Overrides:
      getPropertyTypes in class TimeSpinner
    • getPropertyValue

      public Object getPropertyValue(String name)

      Returns the current value of the property name, this method is used by the GUI builder

      Parameters
      • name: the name of the property
      Returns

      the value of said property

      Overrides:
      getPropertyValue in class TimeSpinner
    • setPropertyValue

      public String setPropertyValue(String name, Object value)

      Sets a new value to the given property, returns an error message if failed and null if successful. Notice that some builtin properties such as "$designMode" might be sent to components to indicate application state.

      Parameters
      • name: the name of the property

      • value: new value for the property

      Returns

      error message or null

      Overrides:
      setPropertyValue in class TimeSpinner