Class DateSpinner

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

public class DateSpinner extends BaseSpinner
A date spinner allows selecting a date value within the given date range
  • Constructor Details

    • DateSpinner

      public DateSpinner()
      Default constructor
  • Method Details

    • getStartYear

      public int getStartYear()
      Returns

      the startYear

    • setStartYear

      public void setStartYear(int startYear)
      Parameters
      • startYear: the startYear to set
    • getEndYear

      public int getEndYear()
      Returns

      the endYear

    • setEndYear

      public void setEndYear(int endYear)
      Parameters
      • endYear: the endYear to set
    • getCurrentYear

      public int getCurrentYear()
      Returns

      the currentYear

    • setCurrentYear

      public void setCurrentYear(int currentYear)
      Parameters
      • currentYear: the currentYear to set
    • getCurrentDay

      public int getCurrentDay()
      Returns

      the currentDay

    • setCurrentDay

      public void setCurrentDay(int currentDay)
      Parameters
      • currentDay: the currentDay to set
    • getCurrentMonth

      public int getCurrentMonth()
      Returns

      the currentMonth

    • setCurrentMonth

      public void setCurrentMonth(int currentMonth)
      Parameters
      • currentMonth: the currentMonth to set
    • isMonthDayYear

      public boolean isMonthDayYear()
      Returns

      the monthDayYear

    • setMonthDayYear

      public void setMonthDayYear(boolean monthDayYear)
      Parameters
      • monthDayYear: the monthDayYear to set
    • isNumericMonths

      public boolean isNumericMonths()
      Returns

      the numericMonths

    • setNumericMonths

      public void setNumericMonths(boolean numericMonths)
      Parameters
      • numericMonths: the numericMonths 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 Component
    • 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 Component
    • 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 Component
    • 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 Component
    • setMonthRenderingPrototype

      public void setMonthRenderingPrototype(String monthPrototype)

      Sets the Month Rendering Prototype to be used, useful when the language is changed and you need the month spinner to be wider.

      Parameters
      • monthPrototype: a prototype to be used to calc the month cell size