Class ObjectSelectionDialogEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.builders.ObjectSelectionDialogEditingSupport.Builder<T,E,R>
- Type Parameters:
T- type of row valueE- type of column value (cell value)R- column type
- All Implemented Interfaces:
ObjectSelectionDialogEditingSupport.ActionAfterPressOkBuilder<T,,E, R> ObjectSelectionDialogEditingSupport.ColumnsBuilder<T,,E, R> ObjectSelectionDialogEditingSupport.ElementsBuilder<T,,E, R> ObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R>
- Enclosing class:
ObjectSelectionDialogEditingSupport
public static class ObjectSelectionDialogEditingSupport.Builder<T,E,R extends IEditableColumn<T,E,R>>
extends Object
implements ObjectSelectionDialogEditingSupport.ElementsBuilder<T,E,R>, ObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E,R>, ObjectSelectionDialogEditingSupport.FinalBuilder<T,E,R>, ObjectSelectionDialogEditingSupport.ActionAfterPressOkBuilder<T,E,R>
A builder class to set up the properties of a object selection dialog 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 editedcolumns(BiConsumer<T, Table<E>> columns) Set function that create columns in table in dialogSet function that create columns in table in dialogstatic <T1,E1, R1 extends IEditableColumn<T1, E1, R1>>
ObjectSelectionDialogEditingSupport.ElementsBuilder<T1, E1, R1> create(R1 columnDescriptor) dialogSubTitle(String subTitle) Set sub title for the dialogdialogTitle(String title) Set title for the dialogSet the elements to be shown in the selection dialoghandler(BiConsumer<T, E> 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 shown
-
Field Details
-
columnDescriptor
-
editingSupport
-
-
Constructor Details
-
Builder
-
-
Method Details
-
create
public static <T1,E1, ObjectSelectionDialogEditingSupport.ElementsBuilder<T1,R1 extends IEditableColumn<T1, E1, R1>> E1, createR1> (R1 columnDescriptor) -
elements
public ObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E, elementsR> (org.eclipse.core.databinding.observable.list.IObservableList<E> elements) Description copied from interface:ObjectSelectionDialogEditingSupport.ElementsBuilderSet the elements to be shown in the selection dialog- Specified by:
elementsin interfaceObjectSelectionDialogEditingSupport.ElementsBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
elements- list of elements- Returns:
- builder object
-
columns
public ObjectSelectionDialogEditingSupport.ActionAfterPressOkBuilder<T,E, columnsR> (Consumer<Table<E>> columns) Description copied from interface:ObjectSelectionDialogEditingSupport.ColumnsBuilderSet function that create columns in table in dialog- Specified by:
columnsin interfaceObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
columns-- Returns:
- builder object
-
columns
public ObjectSelectionDialogEditingSupport.ActionAfterPressOkBuilder<T,E, columnsR> (BiConsumer<T, Table<E>> columns) Description copied from interface:ObjectSelectionDialogEditingSupport.ColumnsBuilderSet function that create columns in table in dialog- Specified by:
columnsin interfaceObjectSelectionDialogEditingSupport.ColumnsBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
columns-- Returns:
- builder object
-
handler
Description copied from interface:ObjectSelectionDialogEditingSupport.ActionAfterPressOkBuilderSet function that will be executed after losing focus on the combo box editor or after pressing the Enter button- Specified by:
handlerin interfaceObjectSelectionDialogEditingSupport.ActionAfterPressOkBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
handler- function to be executed- Returns:
- builder object
-
dialogTitle
Description copied from interface:ObjectSelectionDialogEditingSupport.FinalBuilderSet title for the dialog- Specified by:
dialogTitlein interfaceObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
title- dialog title- Returns:
- builder object
-
dialogSubTitle
Description copied from interface:ObjectSelectionDialogEditingSupport.FinalBuilderSet sub title for the dialog- Specified by:
dialogSubTitlein interfaceObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
subTitle- dialog sub title- Returns:
- builder object
-
icon
public ObjectSelectionDialogEditingSupport.FinalBuilder<T,E, iconR> (org.eclipse.swt.graphics.Image image) Description copied from interface:ObjectSelectionDialogEditingSupport.FinalBuilderSet image for button, if the image is set, the text is not shown- Specified by:
iconin interfaceObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
image-- Returns:
- builder object
-
buttonText
Description copied from interface:ObjectSelectionDialogEditingSupport.FinalBuilderSet text for button, if the image is set, the text is not shown- Specified by:
buttonTextin interfaceObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
text-- Returns:
- builder object
-
canEdit
Description copied from interface:ObjectSelectionDialogEditingSupport.FinalBuilderSet function that returns a value that indicates whether the cell can be edited- Specified by:
canEditin interfaceObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>> - Parameters:
canEdit-- Returns:
- builder object
-
build
Description copied from interface:ObjectSelectionDialogEditingSupport.FinalBuilderThis is the finalization method. Call this method to install the auto-complete combobox editing support on a table column.- Specified by:
buildin interfaceObjectSelectionDialogEditingSupport.FinalBuilder<T,E, R extends IEditableColumn<T, E, R>>
-