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 for Precision selection.
  • Method Details

    • 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 interface SelectionListener
    • widgetDefaultSelected

      public void widgetDefaultSelected(SelectionEvent e)
      Specified by:
      widgetDefaultSelected in interface SelectionListener
    • 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.