Class PrecisionGroup
- java.lang.Object
-
- org.palladiosimulator.analyzer.quality.presentation.PrecisionGroup
-
- All Implemented Interfaces:
EventListener
,SelectionListener
,SWTEventListener
public class PrecisionGroup extends Object implements SelectionListener
Creates a SWT Group forPrecision
selection.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createGroup(Composite parent)
Creates all controls for the group in the given parent.void
dispose()
Disposes all created listeners.String
getErrorMessage()
Provides an error message if the selection is not valid.Precision
getPrecision()
Provides an instance according to the selection.boolean
isValid()
Checks if the selection is valid.void
widgetDefaultSelected(SelectionEvent e)
void
widgetSelected(SelectionEvent e)
-
-
-
Method Detail
-
createGroup
public void createGroup(Composite parent)
Creates all controls for the group in the given parent.- Parameters:
parent
- Parent control.
-
getPrecision
public Precision getPrecision()
Provides an instance according to the selection.- Returns:
- Selected
Precision
-
widgetSelected
public void widgetSelected(SelectionEvent e)
- Specified by:
widgetSelected
in interfaceSelectionListener
-
widgetDefaultSelected
public void widgetDefaultSelected(SelectionEvent e)
- Specified by:
widgetDefaultSelected
in interfaceSelectionListener
-
isValid
public boolean isValid()
Checks if the selection is valid.- Returns:
true
if it is valid, false otherwise.
-
getErrorMessage
public String 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.
-
-