Class LocalTimeDialog
java.lang.Object
com.amalgamasimulation.desktop.binding.dialogs.LocalTimeDialog
The class is used to create and open a dialog for time editing.
- Author:
- Ionov Ivan
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFlag indicating whether the clear value button will be shownprotected com.amalgamasimulation.desktop.binding.dialogs.AbstractLocalDateTimeDialog.DialogTypeDialog type.protected org.eclipse.swt.widgets.Shell -
Constructor Summary
ConstructorsConstructorDescriptionLocalTimeDialog(org.eclipse.swt.widgets.Shell shell, Supplier<LocalTime> getter, Consumer<LocalTime> handler) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoAction(LocalDateTime newValue) protected LocalDateTimegetValue()voidopen()Open dialog with date\time editors.com.amalgamasimulation.desktop.binding.dialogs.AbstractLocalDateTimeDialog<LocalTime> setButtonClear(boolean clearButtonExist) Set flag clearButtonExistsetNewLocalTimeCreator(Supplier<LocalTime> newLocalTimeCreator) Set function to get a new LocalTime
-
Field Details
-
currentType
protected com.amalgamasimulation.desktop.binding.dialogs.AbstractLocalDateTimeDialog.DialogType currentTypeDialog type. Depending on this dialog type, time and/or date editor(s) will be shown in the dialog -
clearButtonExist
protected boolean clearButtonExistFlag indicating whether the clear value button will be shown -
shell
protected org.eclipse.swt.widgets.Shell shell
-
-
Constructor Details
-
LocalTimeDialog
-
-
Method Details
-
getValue
-
doAction
-
setNewLocalTimeCreator
Set function to get a new LocalTime- Parameters:
newLocalTimeCreator- - Function to get a new LocalTime if the container object is empty- Returns:
- this object
-
setButtonClear
public com.amalgamasimulation.desktop.binding.dialogs.AbstractLocalDateTimeDialog<LocalTime> 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.
-