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

import com.tcl.factory.bsp.TVDefine;
 
public class DModeNonstandard extends SubMenu
{
	public static  String MenuInfos_DModeNonstandard[][]={
		{"DescramblerBox",""},
		{"AreaAndCity",""},

	};	
	public DModeNonstandard()
	{	
		super.menuInfos=MenuInfos_DModeNonstandard;
		super.menuLabel = "Main menu\\Server\\Nonstandard";
		super.setTAG();
		updateMenuInfos();
	}
	
	public void KeyEvent(int keyCode,int pos)
	{
		switch(keyCode)
		{
		case KeyEvent.KEYCODE_DPAD_LEFT:
		case KeyEvent.KEYCODE_DPAD_RIGHT:
		{
			switch(pos)
			{
			case 1: super.ValueHandler(TVDefine.CityID, keyCode) ;break;
			}
		}
		break;
		default:
			break;
		}
	}

	/* (non-Javadoc)
	 * Factory
	 */
	@Override
	public void updateMenuInfos() {
		// TODO Auto-generated method stub
		super.updateValueInfo(TVDefine.CityID, 1);

	}
	/* (non-Javadoc)
	 * Factory
	 */
	@Override
	public void enterSubMenu(int pos) {
		// TODO Auto-generated method stub
		super.enterSubMenu(pos);
		
		if(pos==0)MainMenu.mSubMenu=new DmodeDescramblerBox();
	}
}

