Interface EMFLocalDateTimeEditingSupport.FinalBuilder<T,E,R>
- All Known Implementing Classes:
EMFLocalDateTimeEditingSupport.Builder
- Enclosing class:
EMFLocalDateTimeEditingSupport
public static interface EMFLocalDateTimeEditingSupport.FinalBuilder<T,E,R>
-
Method Summary
Modifier and TypeMethodDescriptionbuild()This is the finalization method.buttonText(String text) Set text for button, if the image is set, the text is not shownSet function that returns a value that indicates whether the cell can be editedAdds a clear value button to the dialoghandler(BiConsumer<T, LocalDateTime> handler) Set function that will be executed after losing focus on the combo box editor or after pressing the Enter buttonicon(org.eclipse.swt.graphics.Image image) Set image for button, if the image is set, the text is not shownnewDateCreator(Supplier<LocalDateTime> newLocalDateTimeCreator) Set function that returns a new LocalDateTime, if old value == nullProvides an API for selecting the type of dialog
-
Method Details
-
build
R build()This is the finalization method. Call this method to install the auto-complete combobox editing support on a table column. -
clearExistButton
EMFLocalDateTimeEditingSupport.FinalBuilder<T,E, clearExistButton()R> Adds a clear value button to the dialog- Returns:
- builder object
-
newDateCreator
EMFLocalDateTimeEditingSupport.FinalBuilder<T,E, newDateCreatorR> (Supplier<LocalDateTime> newLocalDateTimeCreator) Set function that returns a new LocalDateTime, if old value == null- Parameters:
newLocalDateTimeCreator-- Returns:
- builder object
-
canEdit
Set function that returns a value that indicates whether the cell can be edited- Parameters:
canEdit-- Returns:
- builder object
-
icon
Set image for button, if the image is set, the text is not shown- Parameters:
image-- Returns:
- builder object
-
buttonText
Set text for button, if the image is set, the text is not shown- Parameters:
text-- Returns:
- builder object
-
typeDialog
EMFLocalDateTimeEditingSupport.TypeDialogBuilder<T,E, typeDialog()R> Provides an API for selecting the type of dialog- Returns:
- builder object
-
handler
Set function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Parameters:
handler- function to be executed- Returns:
- builder object
-