Class CheckBoxEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.CheckBoxEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
CheckBoxEditingSupport.ButtonListenerBuilder<T,,E, R> CheckBoxEditingSupport.FinalBuilder<T,E, R>
- Enclosing class:
CheckBoxEditingSupport
public static class CheckBoxEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
extends Object
implements CheckBoxEditingSupport.FinalBuilder<T,E,R>, CheckBoxEditingSupport.ButtonListenerBuilder<T,E,R>
A builder class to set up the properties of an checkbox editing support.
Instances of this class are created by
EditableColumn objects.
The build() method is used to actually set the properties to the column.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()This is the finalization method.Set function that returns a value that indicates whether the cell can be editedstatic <T1,E1, R1 extends IEditableColumn<T1, E1, R1>>
CheckBoxEditingSupport.ButtonListenerBuilder<T1, E1, R1> create(R1 columnDescriptor) Set up the checkbox naming.handler(BiConsumer<T, E> listener) Set function that will be executed after losing focus on the combo box editor or after pressing the Enter button
-
Constructor Details
-
Builder
-
-
Method Details
-
create
public static <T1,E1, CheckBoxEditingSupport.ButtonListenerBuilder<T1,R1 extends IEditableColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
handler
Description copied from interface:CheckBoxEditingSupport.ButtonListenerBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceCheckBoxEditingSupport.ButtonListenerBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
listener-- Returns:
- builder object
-
canEdit
Description copied from interface:CheckBoxEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceCheckBoxEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
format
Description copied from interface:CheckBoxEditingSupport.FinalBuilderSet up the checkbox naming. The label extractor. By default, the value equal to TRUE has the designation '✓'- Specified by:
formatin interfaceCheckBoxEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
labelExtractor- function that converts a checkbox element(TRUE or FALSE) to a String displayed in the checkbox- Returns:
- builder object
-
build
Description copied from interface:CheckBoxEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceCheckBoxEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>>
-