Class TextEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.TextEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
TextEditingSupport.ButtonListenerBuilder<T,,E, R> TextEditingSupport.FinalBuilder<T,,E, R> TextEditingSupport.StrategyBuilder<T,E, R>
- Enclosing class:
TextEditingSupport
public static class TextEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
extends Object
implements TextEditingSupport.StrategyBuilder<T,E,R>, TextEditingSupport.FinalBuilder<T,E,R>, TextEditingSupport.ButtonListenerBuilder<T,E,R>
A builder class to set up the properties of a text 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.Set function that returns a value that indicates whether the cell can be editedstatic <T1,E1, R1 extends IEditableColumn<T1, E1, R1>>
TextEditingSupport.StrategyBuilder<T1, E1, R1> create(R1 columnDescriptor) handler(BiConsumer<T, E> listener) Set function that will be executed after losing focus on the combo box editor or after pressing the Enter buttonstrategy(ValidationStrategy<E, String> strategy) Set a strategy that firstly validates the entered value before placing it in the object, and secondly processes the value from the object before displaying it in the editor.
-
Field Details
-
columnDescriptor
-
editingSupport
-
-
Constructor Details
-
Builder
-
-
Method Details
-
create
public static <T1,E1, TextEditingSupport.StrategyBuilder<T1,R1 extends IEditableColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
strategy
public TextEditingSupport.ButtonListenerBuilder<T,E, strategyR> (ValidationStrategy<E, String> strategy) Description copied from interface:TextEditingSupport.StrategyBuilderSet a strategy that firstly validates the entered value before placing it in the object, and secondly processes the value from the object before displaying it in the editor.- Specified by:
strategyin interfaceTextEditingSupport.StrategyBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
strategy-- Returns:
- builder object
-
handler
Description copied from interface:TextEditingSupport.ButtonListenerBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceTextEditingSupport.ButtonListenerBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
listener-- Returns:
- builder object
-
canEdit
Description copied from interface:TextEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceTextEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
build
Description copied from interface:TextEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceTextEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>>
-