Class PrecisionGroup
java.lang.Object
org.palladiosimulator.analyzer.quality.presentation.PrecisionGroup
- All Implemented Interfaces:
EventListener,SelectionListener,SWTEventListener
Creates a SWT Group for
Precision selection.-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateGroup(Composite parent) Creates all controls for the group in the given parent.voiddispose()Disposes all created listeners.Provides an error message if the selection is not valid.Provides an instance according to the selection.booleanisValid()Checks if the selection is valid.voidvoid
-
Method Details
-
createGroup
Creates all controls for the group in the given parent.- Parameters:
parent- Parent control.
-
getPrecision
Provides an instance according to the selection.- Returns:
- Selected
Precision
-
widgetSelected
- Specified by:
widgetSelectedin interfaceSelectionListener
-
widgetDefaultSelected
- Specified by:
widgetDefaultSelectedin interfaceSelectionListener
-
isValid
public boolean isValid()Checks if the selection is valid.- Returns:
trueif it is valid, false otherwise.
-
getErrorMessage
Provides an error message if the selection is not valid.- Returns:
- Error message or
nullif there is no error.
-
dispose
public void dispose()Disposes all created listeners.
-