Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The XdevPopupDateField is a date selector that displays an XdevInlineDateField when you click on the calendar icon and select a specific date. With the help of the control bar, you can navigate back and forth by month and year. The selected date is then displayed in the XdevPopupDateField.

...

  • Allocate date - Allocates the date to the XdevPopupDateField. This triggers a valueChange event.

    Code Block
    languagejava
    themeConfluence
    // Creates a date object
    Date dateOfBirth = new Date(79,6,5);
    
    // Sets the date to the popupDateField
    popupDateField.setValue(dateOfBirth);


  • Read date  

    Code Block
    languagejava
    themeConfluence
    Date date = popupDateField.getValue();


  • Reset selection - Sets the selection to the initial state. This triggers a valueChange event.

    Code Block
    languagejava
    themeConfluence
    popupDateField.clear();


  • Set focus : Allocates - Allocates the focus to the XdevInlineDateField. This can trigger a focus event, if necessary.

    Code Block
    languagejava
    themeConfluence
    popupDateField.focus();


...