Class TablesUIProvider
- java.lang.Object
-
- org.palladiosimulator.pcmtx.pcmtxviews.ui.AbstractUIProvider
-
- org.palladiosimulator.pcmtx.pcmtxviews.ui.TablesUIProvider
-
- All Implemented Interfaces:
Disposable,UIProvider
public class TablesUIProvider extends AbstractUIProvider
This class provides the GUI elements for theTablesView.
-
-
Field Summary
-
Fields inherited from class org.palladiosimulator.pcmtx.pcmtxviews.ui.AbstractUIProvider
viewer
-
-
Constructor Summary
Constructors Constructor Description TablesUIProvider(DataRepositoryManager drManager)Creates a newTablesUIProviderwith the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddButtonSelected()This method is called when the add button is selected.protected voidcreateAndInitList(Composite parent)Creates and initializes theListViewer.protected DetailsUIcreateDetailsUI(Composite parent)Creates theDetailsUIand returns it.protected voidcreateLabelComposite(Composite parent)Creates the elements of the label area.protected StringgetModelExtension()Returns a string representation of the extension of model files that can be modified by the elements in the provided UIprotected voidremoveButtonSelected()This method is called when the remove button is selected.voidsetEnabled(boolean enabled)Sets the enabled state of the UI to the given state.voidupdateUI()Updates the UI.-
Methods inherited from class org.palladiosimulator.pcmtx.pcmtxviews.ui.AbstractUIProvider
clearUI, createUI, dispose, setFocus
-
-
-
-
Constructor Detail
-
TablesUIProvider
public TablesUIProvider(DataRepositoryManager drManager)
Creates a newTablesUIProviderwith the given parameters.- Parameters:
drManager- theDataRepositoryManagerto access the pcmtx model resource
-
-
Method Detail
-
createLabelComposite
protected void createLabelComposite(Composite parent)
Description copied from class:AbstractUIProviderCreates the elements of the label area.- Specified by:
createLabelCompositein classAbstractUIProvider- Parameters:
parent- the parentComposite
-
createDetailsUI
protected DetailsUI createDetailsUI(Composite parent)
Description copied from class:AbstractUIProviderCreates theDetailsUIand returns it.- Specified by:
createDetailsUIin classAbstractUIProvider- Parameters:
parent- the parentComposite- Returns:
- the created
DetailsUI
-
createAndInitList
protected void createAndInitList(Composite parent)
Description copied from class:AbstractUIProviderCreates and initializes theListViewer.- Specified by:
createAndInitListin classAbstractUIProvider- Parameters:
parent- the parentComposite
-
updateUI
public void updateUI()
Description copied from interface:UIProviderUpdates the UI.- Specified by:
updateUIin interfaceUIProvider- Specified by:
updateUIin classAbstractUIProvider
-
setEnabled
public void setEnabled(boolean enabled)
Description copied from interface:UIProviderSets the enabled state of the UI to the given state.- Specified by:
setEnabledin interfaceUIProvider- Overrides:
setEnabledin classAbstractUIProvider- Parameters:
enabled- the new enabled state
-
addButtonSelected
protected void addButtonSelected()
Description copied from class:AbstractUIProviderThis method is called when the add button is selected.- Specified by:
addButtonSelectedin classAbstractUIProvider
-
removeButtonSelected
protected void removeButtonSelected()
Description copied from class:AbstractUIProviderThis method is called when the remove button is selected.- Specified by:
removeButtonSelectedin classAbstractUIProvider
-
getModelExtension
protected String getModelExtension()
Description copied from class:AbstractUIProviderReturns a string representation of the extension of model files that can be modified by the elements in the provided UI- Specified by:
getModelExtensionin classAbstractUIProvider- Returns:
- the extension of model files that can be modified by the provided UI
-
-