Class WizardModelManager
java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.WizardModelManager
This class manages all WizardModels used in the wizard
-
Constructor Summary
ConstructorDescriptionCreates a new empty monitor which will be edited in the wizard pagesWizardModelManager
(org.palladiosimulator.monitorrepository.Monitor monitor) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds the propertyChangeListener to the PropertyChangeSupportvoid
cancel()
Discards all changes madeboolean
void
finish()
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
-