Class EditableColumn<T,V,R extends IEditableColumn<T,V,R>>
java.lang.Object
com.amalgamasimulation.desktop.ui.columndescriptors.Column<T,V,R>
com.amalgamasimulation.desktop.ui.columndescriptors.EditableColumn<T,V,R>
- All Implemented Interfaces:
IColumn<T,,V, R> IEditableColumn<T,V, R>
- Direct Known Subclasses:
EmfColumn
public abstract class EditableColumn<T,V,R extends IEditableColumn<T,V,R>>
extends Column<T,V,R>
implements IEditableColumn<T,V,R>
Class that implements a set of functions for editing data
- Author:
- Ionov Ivan
-
Nested Class Summary
Nested classes/interfaces inherited from class com.amalgamasimulation.desktop.ui.columndescriptors.Column
Column.ContextMenuHandler<T,V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.amalgamasimulation.desktop.ui.internal.ButtonOnTopManager<T, ? extends org.eclipse.swt.custom.ControlEditor, ? extends org.eclipse.swt.widgets.Item> protected org.eclipse.jface.viewers.EditingSupportFields inherited from class com.amalgamasimulation.desktop.ui.columndescriptors.Column
backgroundColorExtractor, columnViewer, comparator, contextMenuHanlers, doubleClickHandler, fontColorExtractor, fontExtractor, formatValue, iconExtractor, labelForNullValue, name, parent, pseudoHistogramColorExtractor, toolTipText, valueExtractor, viewerColumn, visibility, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a builder object that can be used to install auto complete combobox-based editing onto a column.Returns a builder object that can be used to install auto complete text-based editing onto a column.Returns a builder object that can be used to install button action editing onto a column.Returns a builder object that can be used to install button on top cell onto a column.Returns a builder object that can be used to install checkbox-based editing onto a column.Returns a builder object that can be used to install color editing onto a column.Returns a builder object that can be used to install combobox-based editing onto a column.Returns a builder object that can be used to install dynamic auto complete combobox-based editing onto a column.Returns a builder object that can be used to install enum combobox-based editing onto a column.org.eclipse.jface.viewers.EditingSupportReturn the current EditingSupportvoidUpdates buttons created on top of the table if they existReturns a builder object that can be used to install LocalDateTime editing onto a column.Returns a builder object that can be used to install LocalTime editing onto a column.Returns a builder object that can be used to install multi objects selection dialog editing onto a column.Returns a builder object that can be used to install object selection dialog editing onto a column.setEditingSupport(org.eclipse.jface.viewers.EditingSupport editingSupport) Set the EditingSupportReturns a builder object that can be used to install text-based editing onto a column.Methods inherited from class com.amalgamasimulation.desktop.ui.columndescriptors.Column
addContextMenuHandler, backgroundColor, backgroundColor, backgroundColor, comparator, font, font, font, fontColor, fontColor, fontColor, format, format, format, getBackgroundColor, getColumnViewer, getComparator, getContextMenuHandlers, getDoubleClickHandler, getFont, getFontColor, getFormat, getIcon, getName, getNullValueText, getParent, getPseudoHistogramColor, getThis, getToolTipText, getValueExtractor, getWidth, icon, icon, icon, initLabelProvider, isVisible, nullValueText, pseudoHistogramColor, pseudoHistogramColor, pseudoHistogramColor, removeContextMenuHandler, removeDoubleClickHandler, setDoubleClickHandler, setViewerColumn, visibleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.amalgamasimulation.desktop.ui.columndescriptors.IColumn
addContextMenuHandler, backgroundColor, backgroundColor, backgroundColor, comparator, font, font, font, fontColor, fontColor, fontColor, format, format, format, getActualWidth, getBackgroundColor, getColumnIndex, getColumnViewer, getComparator, getContextMenuHandlers, getDoubleClickHandler, getFont, getFontColor, getFormat, getIcon, getName, getNullValueText, getParent, getPseudoHistogramColor, getToolTipText, getValueExtractor, getViewerColumn, getWidth, headerIcon, icon, icon, icon, isVisible, name, nullValueText, pseudoHistogramColor, pseudoHistogramColor, pseudoHistogramColor, removeContextMenuHandler, removeDoubleClickHandler, setDoubleClickHandler, setViewerColumn, tooltip, visible, width
-
Field Details
-
editingSupport
protected org.eclipse.jface.viewers.EditingSupport editingSupport -
buttonOnTopManager
protected com.amalgamasimulation.desktop.ui.internal.ButtonOnTopManager<T,? extends org.eclipse.swt.custom.ControlEditor, buttonOnTopManager? extends org.eclipse.swt.widgets.Item>
-
-
Constructor Details
-
EditableColumn
-
-
Method Details
-
buttonOnTop
Description copied from interface:IEditableColumnReturns a builder object that can be used to install button on top cell onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
buttonOnTopin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
invalidateEditors
public void invalidateEditors()Description copied from interface:IColumnUpdates buttons created on top of the table if they exist- Specified by:
invalidateEditorsin interfaceIColumn<T,V, R extends IEditableColumn<T, V, R>>
-
setEditingSupport
Description copied from interface:IEditableColumnSet the EditingSupport- Specified by:
setEditingSupportin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- this column
-
getEditingSupport
public org.eclipse.jface.viewers.EditingSupport getEditingSupport()Description copied from interface:IEditableColumnReturn the current EditingSupport- Specified by:
getEditingSupportin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- EditingSupport
-
autoCompleteComboEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install auto complete combobox-based editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
autoCompleteComboEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
autoCompleteTextEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install auto complete text-based editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
autoCompleteTextEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
comboEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install combobox-based editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
comboEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
checkBoxEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install checkbox-based editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
checkBoxEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
dynamicAutoCompleteComboEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install dynamic auto complete combobox-based editing onto a column.
If the number of values in the combo box exceeds a certain specified value, the combo box will be hidden and text will be shown instead. The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
dynamicAutoCompleteComboEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
enumComboEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install enum combobox-based editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
enumComboEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
textEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install text-based editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
textEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
buttonActionEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install button action editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
buttonActionEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
objectSelectionDialogEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install object selection dialog editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
objectSelectionDialogEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
colorEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install color editing onto a column.
By default, the label in this cell will always be an empty string. Also, by default, the color value in this cell will be set to the background. The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
colorEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
localDateTimeEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install LocalDateTime editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
localDateTimeEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
localTimeEditor
Description copied from interface:IEditableColumnReturns a builder object that can be used to install LocalTime editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
localTimeEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-
multiObjectsSelectionDialogEditor
public <W> MultiObjectsSelectionDialogEditingSupport.ElementsBuilder<T,V, multiObjectsSelectionDialogEditor()W, R> Description copied from interface:IEditableColumnReturns a builder object that can be used to install multi objects selection dialog editing onto a column.
The returned object is a builder. Call its methods to tune field editing settings. In the end, call the builder's 'build()' method.- Specified by:
multiObjectsSelectionDialogEditorin interfaceIEditableColumn<T,V, R extends IEditableColumn<T, V, R>> - Returns:
- a builder object
-