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 TypeMethodDescriptionvoid
createGroup
(Composite parent) Creates all controls for the group in the given parent.void
dispose()
Disposes all created listeners.Provides an error message if the selection is not valid.Provides an instance according to the selection.boolean
isValid()
Checks if the selection is valid.void
void
-
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:
widgetSelected
in interfaceSelectionListener
-
widgetDefaultSelected
- Specified by:
widgetDefaultSelected
in interfaceSelectionListener
-
isValid
public boolean isValid()Checks if the selection is valid.- Returns:
true
if it is valid, false otherwise.
-
getErrorMessage
Provides an error message if the selection is not valid.- Returns:
- Error message or
null
if there is no error.
-
dispose
public void dispose()Disposes all created listeners.
-