//#############################################################################
//#                                                                           #
//#  Copyright (C) <2015>  <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/>.    #
//#                                                                           #
//#  IMS MAXIMS provides absolutely NO GUARANTEE OF THE CLINICAL SAFTEY of    #
//#  this program.  Users of this software do so entirely at their own risk.  #
//#  IMS MAXIMS only ensures the Clinical Safety of unaltered run-time        #
//#  software that it builds, deploys and maintains.                          #
//#                                                                           #
//#############################################################################
//#EOH
// This code was generated by Barbara Worwood using IMS Development Environment (version 1.80 build 5589.25814)
// Copyright (C) 1995-2015 IMS MAXIMS. All rights reserved.
// WARNING: DO NOT MODIFY the content of this file

package ims.admin.forms.gpsearch;

import ims.framework.enumerations.FormMode;

public interface IComponent
{
	public void setMode(FormMode mode);
	public FormMode getMode();
	/**
	* sets the Context menu to be visible or not
	*/
	public void setVisibleContextMenu(Boolean value);

	/**
	* get an instance of an object implementing IGPValue interface
	*/
	public ims.vo.ValueObject getValue();

	/**
	* sets/adds the value in the GP grid (using GpLiteVo)
	*/
	public void setValue(ims.core.vo.GpLiteVo value);

	/**
	* clears search criteria and grid
	*/
	public void clear();

	/**
	* sets teh Control Status
	*/
	public void setEnabled(Boolean value);

	/**
	* returns an instance of the Admin.GPActions enumeration (New, Edit, Search, Clear) when selecting New/Edit in the Context Menu or pressing Search or Clear buttons
	*/
	public ims.admin.vo.enums.GPAction getActionEvent();

	/**
	* sets the search Criteria to be displayed on screen
	*/
	public void setSearchCriteria(ims.admin.vo.GPSearchCriteriaVo criteria);

	/**
	* performs a search
	*/
	public void search();

	/**
	* sets/adds the value in the GP grid (using GpRefVo)
	*/
	public void setValue(ims.core.resource.people.vo.GpRefVo gpRefVo);

	/**
	* get the Full GP vo
	*/
	public ims.core.vo.GP getFullGpVo();

	/**
	* getSearchCriteria - returns new GpShortVo populated from Search Criteria fields
	*/
	public ims.core.vo.GpShortVo getNewGpBasedOnSearchCriteria();

	public void setSearchButtonAsDefault();

	public void showStatus(Boolean bShow);

	public void initialize(Boolean isStatusSearchCriteriaVisible, Boolean areDistinctRecRetrieved);

	public ims.admin.vo.enums.GPSelectedRecordType getComponentGridSelectedRecordType();
}
