Class WizardModelManager
java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.WizardModelManager
This class manages all WizardModels used in the wizard
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new empty monitor which will be edited in the wizard pagesWizardModelManager(org.palladiosimulator.monitorrepository.Monitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds the propertyChangeListener to the PropertyChangeSupportvoidcancel()Discards all changes madebooleanvoidfinish()Saves the changes made in the wizard pages in the Monitor and MeasuringPoint.getWizardModel(WizardModelType wizardModelType)
-
Constructor Details
-
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 Details
-
addPropertyChangeListener
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
- Parameters:
wizardModelType- an enum which indicates which wizardmodel should be returned- Returns:
- a wizardmodel which allows to use data methods for a specific wizardpage
-