//#############################################################################
//#                                                                           #
//#  Copyright (C) <2014>  <IMS MAXIMS>                                       #
//#                                                                           #
//#  This program is free software: you can redistribute it and/or modify     #
//#  it under the terms of the GNU Affero General Public License as           #
//#  published by the Free Software Foundation, either version 3 of the       #
//#  License, or (at your option) any later version.                          # 
//#                                                                           #
//#  This program is distributed in the hope that it will be useful,          #
//#  but WITHOUT ANY WARRANTY; without even the implied warranty of           #
//#  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the            #
//#  GNU Affero General Public License for more details.                      #
//#                                                                           #
//#  You should have received a copy of the GNU Affero General Public License #
//#  along with this program.  If not, see <http://www.gnu.org/licenses/>.    #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5007.25751)
// Copyright (C) 1995-2014 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.emergency.forms.systemreviewnotesdialog;

import ims.framework.delegates.*;

abstract public class Handlers implements ims.framework.UILogic, IFormUILogicCode
{
	abstract protected void onFormOpen(Object[] args) throws ims.framework.exceptions.PresentationLogicException;
	abstract protected void onBtnCancelClick() throws ims.framework.exceptions.PresentationLogicException;
	abstract protected void onBtnSaveClick() throws ims.framework.exceptions.PresentationLogicException;

	public final void setContext(ims.framework.UIEngine engine, GenForm form)
	{
		this.engine = engine;
		this.form = form;

		this.form.setFormOpenEvent(new FormOpen()
		{
			private static final long serialVersionUID = 1L;
			public void handle(Object[] args) throws ims.framework.exceptions.PresentationLogicException
			{
				onFormOpen(args);
			}
		});
		this.form.btnCancel().setClickEvent(new Click()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onBtnCancelClick();
			}
		});
		this.form.btnSave().setClickEvent(new Click()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onBtnSaveClick();
			}
		});
		this.form.lyrSystemReview().tab1().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab1Activated();
			}
		});
		this.form.lyrSystemReview().tab2().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab2Activated();
			}
		});
		this.form.lyrSystemReview().tab3().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab3Activated();
			}
		});
		this.form.lyrSystemReview().tab4().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab4Activated();
			}
		});
		this.form.lyrSystemReview().tab5().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab5Activated();
			}
		});
		this.form.lyrSystemReview().tab6().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab6Activated();
			}
		});
		this.form.lyrSystemReview().tab7().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab7Activated();
			}
		});
		this.form.lyrSystemReview().tab8().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab8Activated();
			}
		});
		this.form.lyrSystemReview().tab9().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab9Activated();
			}
		});
		this.form.lyrSystemReview().tab10().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab10Activated();
			}
		});
		this.form.lyrSystemReview().tab11().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab11Activated();
			}
		});
		this.form.lyrSystemReview().tab12().setTabActivatedEvent(new ims.framework.delegates.TabActivated()
		{
			private static final long serialVersionUID = 1L;
			public void handle() throws ims.framework.exceptions.PresentationLogicException
			{
				onlyrSystemReviewtab12Activated();
			}
		});
	}
	private void onlyrSystemReviewtab1Activated()
	{
		this.form.lyrSystemReview().showtab1();
	}
	private void onlyrSystemReviewtab2Activated()
	{
		this.form.lyrSystemReview().showtab2();
	}
	private void onlyrSystemReviewtab3Activated()
	{
		this.form.lyrSystemReview().showtab3();
	}
	private void onlyrSystemReviewtab4Activated()
	{
		this.form.lyrSystemReview().showtab4();
	}
	private void onlyrSystemReviewtab5Activated()
	{
		this.form.lyrSystemReview().showtab5();
	}
	private void onlyrSystemReviewtab6Activated()
	{
		this.form.lyrSystemReview().showtab6();
	}
	private void onlyrSystemReviewtab7Activated()
	{
		this.form.lyrSystemReview().showtab7();
	}
	private void onlyrSystemReviewtab8Activated()
	{
		this.form.lyrSystemReview().showtab8();
	}
	private void onlyrSystemReviewtab9Activated()
	{
		this.form.lyrSystemReview().showtab9();
	}
	private void onlyrSystemReviewtab10Activated()
	{
		this.form.lyrSystemReview().showtab10();
	}
	private void onlyrSystemReviewtab11Activated()
	{
		this.form.lyrSystemReview().showtab11();
	}
	private void onlyrSystemReviewtab12Activated()
	{
		this.form.lyrSystemReview().showtab12();
	}

	public void free()
	{
		this.engine = null;
		this.form = null;
	}
	protected ims.framework.UIEngine engine;
	protected GenForm form;
}
