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 forPrecisionselection.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateGroup(Composite parent)Creates all controls for the group in the given parent.voiddispose()Disposes all created listeners.StringgetErrorMessage()Provides an error message if the selection is not valid.PrecisiongetPrecision()Provides an instance according to the selection.booleanisValid()Checks if the selection is valid.voidwidgetDefaultSelected(SelectionEvent e)voidwidgetSelected(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:
widgetSelectedin interfaceSelectionListener
-
widgetDefaultSelected
public void widgetDefaultSelected(SelectionEvent e)
- Specified by:
widgetDefaultSelectedin interfaceSelectionListener
-
isValid
public boolean isValid()
Checks if the selection is valid.- Returns:
trueif it is valid, false otherwise.
-
getErrorMessage
public String 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.
-
-