Class SLODialogSpecifiySLOThresholdsPage
- java.lang.Object
-
- org.eclipse.jface.dialogs.DialogPage
-
- org.eclipse.jface.wizard.WizardPage
-
- org.palladiosimulator.servicelevelobjective.edp2.visualization.wizards.SLODialogSpecifiySLOThresholdsPage
-
- All Implemented Interfaces:
EventListener
,IDialogPage
,IMessageProvider
,IWizardPage
,SelectionListener
,SWTEventListener
public class SLODialogSpecifiySLOThresholdsPage extends WizardPage implements SelectionListener
AWizardPage
prompting the user to enter upper, lower and if necessary, soft upper and soft lower thresholds for a selectedServiceLevelObjective
. All inputs are checked for correctness.
-
-
Field Summary
-
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SLODialogSpecifiySLOThresholdsPage(String pageName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createControl(Composite parent)
protected void
setMaxSimulationTime(double max)
void
setSelectedSLO(ServiceLevelObjective selectedSLO)
Sets the selectedSLO and updates the UI accordingly, i.e.IStatus
updatePageStatus()
Method which handles the status of the wholeWizardPage
based on the different states resulting from inputs.void
widgetDefaultSelected(SelectionEvent e)
void
widgetSelected(SelectionEvent e)
-
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getContainer, getDialogSettings, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isCurrentPage, isPageComplete, setDescription, setErrorMessage, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
-
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, dispose, getControl, getDescription, getDialogFontName, getErrorMessage, getFont, getMessage, getMessageType, getTitle, getToolTipText, initializeDialogUnits, isControlCreated, performHelp, setButtonLayoutData, setControl, setMessage, setVisible
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
dispose, getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
-
-
-
-
Constructor Detail
-
SLODialogSpecifiySLOThresholdsPage
protected SLODialogSpecifiySLOThresholdsPage(String pageName)
Constructor.- Parameters:
pageName
-
-
-
Method Detail
-
createControl
public void createControl(Composite parent)
- Specified by:
createControl
in interfaceIDialogPage
-
updatePageStatus
public IStatus updatePageStatus()
Method which handles the status of the wholeWizardPage
based on the different states resulting from inputs.- Returns:
- the page Status
-
setSelectedSLO
public void setSelectedSLO(ServiceLevelObjective selectedSLO)
Sets the selectedSLO and updates the UI accordingly, i.e. sets threshold input fields visible or invisible and inserts default values.- Parameters:
selectedSLO
-
-
setMaxSimulationTime
protected void setMaxSimulationTime(double max)
-
widgetSelected
public void widgetSelected(SelectionEvent e)
- Specified by:
widgetSelected
in interfaceSelectionListener
-
widgetDefaultSelected
public void widgetDefaultSelected(SelectionEvent e)
- Specified by:
widgetDefaultSelected
in interfaceSelectionListener
-
-