package com.tcl.factory.view;
import android.view.KeyEvent;

import com.tcl.factory.bsp.TVDefine;

public class ParamSettingLightSensor extends SubMenu {
	
	public static  String MenuInfos_ParamSettingLightSensor[][]={
		{"ADC MAX",""},
		{"ADC MIN",""},
		{"Bright Low",""}
	};
	
	public ParamSettingLightSensor() {
		super.menuInfos=MenuInfos_ParamSettingLightSensor;
		super.menuLabel = "Main\\Param Setting\\LightSensor";
		super.setTAG();
		updateMenuInfos();
	}

	@Override
	public void updateMenuInfos() {
		// TODO Auto-generated method stub
		super.updateValueInfo(TVDefine.ADC_MAX, 0);
		super.updateValueInfo(TVDefine.ADC_MIN, 1);
		super.updateValueInfo(TVDefine.RATIO_MIN, 2);
	}

	@Override
	public void KeyEvent(int keyCode, int pos) {
		switch(keyCode)
		{
		case KeyEvent.KEYCODE_DPAD_LEFT:
		case KeyEvent.KEYCODE_DPAD_RIGHT:
		{
			switch(pos)
			{
				case 0: super.ValueHandler(TVDefine.ADC_MAX, keyCode) ;break;
				case 1: super.ValueHandler(TVDefine.ADC_MIN, keyCode) ;break;
				case 2: super.ValueHandler(TVDefine.RATIO_MIN, keyCode) ;break;
			}
		}
		break;
		default:
			break;
		}
	}

}
