Class LocalDateDialog

java.lang.Object
com.amalgamasimulation.desktop.binding.dialogs.LocalDateDialog

public class LocalDateDialog extends Object
The class is used to create and open a dialog for date editing.
Author:
Ionov Ivan
  • Field Details

    • currentType

      protected com.amalgamasimulation.desktop.binding.dialogs.AbstractLocalDateTimeDialog.DialogType currentType
      Dialog type. Depending on this dialog type, time and/or date editor(s) will be shown in the dialog
    • clearButtonExist

      protected boolean clearButtonExist
      Flag indicating whether the clear value button will be shown
    • shell

      protected org.eclipse.swt.widgets.Shell shell
  • Constructor Details

  • Method Details

    • getValue

      protected LocalDateTime getValue()
    • doAction

      protected void doAction(LocalDateTime newValue)
    • setNewLocalDateCreator

      public LocalDateDialog setNewLocalDateCreator(Supplier<LocalDate> newLocalDateCreator)
      Set function to get a new LocalDate
      Parameters:
      newLocalDateCreator - - Function to get a new LocalDate if the container object is empty
      Returns:
      this object
    • setButtonClear

      public com.amalgamasimulation.desktop.binding.dialogs.AbstractLocalDateTimeDialog<LocalDate> setButtonClear(boolean clearButtonExist)
      Set flag clearButtonExist
      Parameters:
      clearButtonExist - Flag indicating whether the clear value button will be shown
      Returns:
      this object
    • open

      public void open()
      Open dialog with date\time editors.