Class EmfTableProperties<T,V>
java.lang.Object
com.amalgamasimulation.desktop.ui.editor.sections.descriptors.TableProperties<T,V,EMFTable<V>>
com.amalgamasimulation.desktop.ui.editor.sections.descriptors.EmfTableProperties<T,V>
- Type Parameters:
T- the type of the container holding table dataV- the type of elements displayed in the table (typically EMF objects)
A specialized builder class for configuring properties of EMF-based SWT Table controls.
Extends TableProperties to add EMF-specific functionality including EStructuralFeature
binding, observable lists, and double-click message handling.
Note: This class is not intended to be used directly by end users. It serves
as a specialized configuration class for internal framework components working
with EMF models.
- Author:
- Ionov Ivan
-
Field Summary
Fields inherited from class com.amalgamasimulation.desktop.ui.editor.sections.descriptors.TableProperties
checkBox, elementsExtractor, style, syncUpdate, virtual -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSets the observable list of elements for the table.elementsFeature(org.eclipse.emf.ecore.EStructuralFeature elementsFeature) Sets the EStructuralFeature used to extract elements from the container.org.eclipse.core.databinding.observable.list.IObservableList<V> Returns the observable list of elements for the table.org.eclipse.emf.ecore.EStructuralFeatureReturns the EStructuralFeature used to extract elements from the container.org.eclipse.emf.ecore.EStructuralFeature[]Returns the array of EStructuralFeatures that should be observed for changes.booleanReturns whether double-click events should send highlight messages.booleanReturns whether double-click events should send navigate messages.observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) Sets the EStructuralFeatures that should be observed for changes.voidsetSendHighlightMessageOnDoubleClick(boolean sendHighlightMessageOnDoubleClick) Sets whether double-click events should send highlight messages.voidsetSendNavigateMessageOnDoubleClick(boolean sendNavigateMessageOnDoubleClick) Sets whether double-click events should send navigate messages.Methods inherited from class com.amalgamasimulation.desktop.ui.editor.sections.descriptors.TableProperties
checkBox, columns, elementsExtractor, getColumns, getDefaultHeight, getElementsExtractor, getHeight, getStyle, getWidth, height, isCheckBox, isSyncUpdate, isVirtual, style, syncUpdate, virtual, width
-
Constructor Details
-
EmfTableProperties
public EmfTableProperties()
-
-
Method Details
-
getElementsFeature
public org.eclipse.emf.ecore.EStructuralFeature getElementsFeature()Returns the EStructuralFeature used to extract elements from the container.- Returns:
- the EStructuralFeature for element extraction
-
elementsFeature
public EmfTableProperties<T,V> elementsFeature(org.eclipse.emf.ecore.EStructuralFeature elementsFeature) Sets the EStructuralFeature used to extract elements from the container.- Parameters:
elementsFeature- the EStructuralFeature for element extraction- Returns:
- this EmfTableProperties instance for method chaining
-
getObservableFeatures
public org.eclipse.emf.ecore.EStructuralFeature[] getObservableFeatures()Returns the array of EStructuralFeatures that should be observed for changes.- Returns:
- an array of observable EStructuralFeatures
-
observableFeatures
public EmfTableProperties<T,V> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures) Sets the EStructuralFeatures that should be observed for changes.- Parameters:
observableFeatures- variable array of EStructuralFeatures to observe- Returns:
- this EmfTableProperties instance for method chaining
-
isSendHighlightMessageOnDoubleClick
public boolean isSendHighlightMessageOnDoubleClick()Returns whether double-click events should send highlight messages.- Returns:
- true if double-click should send highlight messages, false otherwise
-
setSendHighlightMessageOnDoubleClick
public void setSendHighlightMessageOnDoubleClick(boolean sendHighlightMessageOnDoubleClick) Sets whether double-click events should send highlight messages.- Parameters:
sendHighlightMessageOnDoubleClick- true to enable highlight messages on double-click
-
getElements
Returns the observable list of elements for the table.- Returns:
- the IObservableList containing table elements
-
elements
Sets the observable list of elements for the table.- Parameters:
elements- the IObservableList containing table elements
-