Class LocalTimeEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.LocalTimeEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
LocalTimeEditingSupport.ActionAfterPressOkBuilder<T,,E, R> LocalTimeEditingSupport.FinalBuilder<T,E, R>
- Enclosing class:
LocalTimeEditingSupport
public static class LocalTimeEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
extends Object
implements LocalTimeEditingSupport.ActionAfterPressOkBuilder<T,E,R>, LocalTimeEditingSupport.FinalBuilder<T,E,R>
A builder class to set up the properties of a LocalTime editing support.
Instances of this class are created by
EditableColumn objects.
The build() method is used to actually set the properties to the column.
-
Field Summary
Fields -
Constructor Summary
Constructors -
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 dialogstatic <T1,E1, R1 extends IEditableColumn<T1, E1, R1>>
LocalTimeEditingSupport.ActionAfterPressOkBuilder<T1, E1, R1> create(R1 columnDescriptor) handler(BiConsumer<T, LocalTime> listener) 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 shownnewLocalTimeCreator(Supplier<LocalTime> newLocalTimeCreator) Set function that returns a new LocalTime, if old value == null
-
Field Details
-
columnDescriptor
-
editingSupport
-
-
Constructor Details
-
Builder
-
-
Method Details
-
create
public static <T1,E1, LocalTimeEditingSupport.ActionAfterPressOkBuilder<T1,R1 extends IEditableColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
handler
Description copied from interface:LocalTimeEditingSupport.ActionAfterPressOkBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceLocalTimeEditingSupport.ActionAfterPressOkBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
listener-- Returns:
- builder object
-
clearExistButton
Description copied from interface:LocalTimeEditingSupport.FinalBuilderAdds a clear value button to the dialog- Specified by:
clearExistButtonin interfaceLocalTimeEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Returns:
- builder object
-
newLocalTimeCreator
public LocalTimeEditingSupport.FinalBuilder<T,E, newLocalTimeCreatorR> (Supplier<LocalTime> newLocalTimeCreator) Description copied from interface:LocalTimeEditingSupport.FinalBuilderSet function that returns a new LocalTime, if old value == null- Specified by:
newLocalTimeCreatorin interfaceLocalTimeEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
newLocalTimeCreator-- Returns:
- builder object
-
icon
Description copied from interface:LocalTimeEditingSupport.FinalBuilderSet image for button, if the image is set, the text is not shown- Specified by:
iconin interfaceLocalTimeEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
image-- Returns:
- builder object
-
buttonText
Description copied from interface:LocalTimeEditingSupport.FinalBuilderSet text for button, if the image is set, the text is not shown- Specified by:
buttonTextin interfaceLocalTimeEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
text-- Returns:
- builder object
-
canEdit
Description copied from interface:LocalTimeEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceLocalTimeEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
build
Description copied from interface:LocalTimeEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceLocalTimeEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>>
-