Class EMFLocalTimeDialog<T>
java.lang.Object
com.amalgamasimulation.desktop.binding.dialogs.ContainerLocalTimeDialog<T>
com.amalgamasimulation.desktop.binding.dialogs.EMFLocalTimeDialog<T>
- Type Parameters:
T- the type of object in which the LocalTime is stored
The class is used to create and open a dialog for time editing.
Used only with EMF (EObject)
- 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
ConstructorsConstructorDescriptionEMFLocalTimeDialog(org.eclipse.swt.widgets.Shell shell, T owner, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature) -
Method Summary
Modifier and TypeMethodDescriptionvoidopen()Open dialog with date\time editors.com.amalgamasimulation.desktop.binding.dialogs.AbstractLocalDateTimeDialog<LocalTime> setButtonClear(boolean clearButtonExist) Set flag clearButtonExistMethods inherited from class com.amalgamasimulation.desktop.binding.dialogs.ContainerLocalTimeDialog
doAction, getValue, handler, setNewLocalTimeCreator
-
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
-
EMFLocalTimeDialog
public EMFLocalTimeDialog(org.eclipse.swt.widgets.Shell shell, T owner, org.eclipse.emf.ecore.EStructuralFeature eStructuralFeature)
-
-
Method Details
-
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.
-