package com.github.sbugat.rundeckmonitor.wizard;

import java.awt.Component;

import com.github.sbugat.rundeckmonitor.configuration.RundeckMonitorConfiguration;

/**
 * Generic wizard panel with a next and previous step
 *
 * @author Sylvain bugat
 *
 */
public abstract class WizardPanelDescriptor {

	private final ConfigurationWizardStep panelIdentifier;

	private final ConfigurationWizardStep back;

	private final ConfigurationWizardStep next;

	protected RundeckMonitorConfiguration rundeckMonitorConfiguration;

	public WizardPanelDescriptor( final ConfigurationWizardStep panelIdentifierArg, final ConfigurationWizardStep backArg, final ConfigurationWizardStep nextArg, final RundeckMonitorConfiguration rundeckMonitorConfigurationArg ) {
		panelIdentifier = panelIdentifierArg;
		back = backArg;
		next = nextArg;
		rundeckMonitorConfiguration = rundeckMonitorConfigurationArg;
	}

	public abstract Component getPanelComponent();

	public ConfigurationWizardStep getPanelDescriptorIdentifier() {
		return panelIdentifier;
	}

	/**
	 * Return the next wizard panel or null
	 * @return
	 */
	public ConfigurationWizardStep getNext() {
		return next;
	}

	/**
	 * Return the previous wizard panel or null
	 */
	public ConfigurationWizardStep getBack() {
		return back;
	}

	/**
	 * Method called before diplaying a panel for dynamic content update
	 */
	public void aboutToDisplayPanel() {
		//Default: nothing to do
	}

	/**
	 * Default method to validate the wizard step, default return true
	 *
	 * @return true by default
	 */
	public boolean validate() {
		//Default: return OK
		return true;
	}
}

@@ -1086,16 +1086,27 @@
  @return
+ next panel
 %0A%09 */%0A%09p
@@ -1216,16 +1216,43 @@
 or null%0A
+%09 * @return previous panel%0A
 %09 */%0A%09pu

Fix javadoc tags