Class WizardModelManager
- java.lang.Object
-
- org.palladiosimulator.measurementsui.wizardmodel.WizardModelManager
-
public class WizardModelManager extends Object
This class manages all WizardModels used in the wizard
-
-
Constructor Summary
Constructors Constructor Description WizardModelManager()Creates a new empty monitor which will be edited in the wizard pagesWizardModelManager(org.palladiosimulator.monitorrepository.Monitor monitor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPropertyChangeListener(PropertyChangeListener listener)Adds the propertyChangeListener to the PropertyChangeSupportvoidcancel()Discards all changes madebooleancanFinish()voidfinish()Saves the changes made in the wizard pages in the Monitor and MeasuringPoint.WizardModelgetWizardModel(WizardModelType wizardModelType)
-
-
-
Constructor Detail
-
WizardModelManager
public WizardModelManager()
Creates a new empty monitor which will be edited in the wizard pages
-
WizardModelManager
public WizardModelManager(org.palladiosimulator.monitorrepository.Monitor monitor)
- Parameters:
monitor- an existing monitor which will be edited in the wizard pages
-
-
Method Detail
-
addPropertyChangeListener
public void addPropertyChangeListener(PropertyChangeListener listener)
Adds the propertyChangeListener to the PropertyChangeSupport- Parameters:
listener- the PropertyChangeListener
-
cancel
public void cancel()
Discards all changes made
-
finish
public void finish()
Saves the changes made in the wizard pages in the Monitor and MeasuringPoint.
-
canFinish
public boolean canFinish()
- Returns:
- true if all necessary attributes of the monitor are set and the wizard can finish
-
getWizardModel
public WizardModel getWizardModel(WizardModelType wizardModelType)
- Parameters:
wizardModelType- an enum which indicates which wizardmodel should be returned- Returns:
- a wizardmodel which allows to use data methods for a specific wizardpage
-
-