package com.xt.hb.views
{
	[Bindable]
	public class TypeBase
	{
		public function TypeBase()
		{
		}
		
		public static function isNumberType(t:String):Boolean
		{
			return t!=null&&(t==DOUBLE||t==INT);
		}
		
		public static var DT_FMT_1:String="YYYY-MM-DD";
		public static var DT_RESTRICT_1:String="0-9\\-";
		
		//type
		public static var DOUBLE:String = "double";
		public static var INT:String = "int";
		public static var EMAIL:String="email";
		public static var EN:String="en";
		public static var CN:String="cn";
		
		public static var EN_RESTRICT:String="a-zA-Z0-9~!@#$%\\^&*()_+=\\-:;'<>,./?\\\&quot;`[]{}|' '";
		public static var INT_RESTRICT:String="0-9";
		public static var NUM_RESTRICT:String="0-9.";
		public static var EMAIL_RESTRICT:String="a-zA-Z0-9.@_\\-";
		
		public static var CHECKBOX:String = "checkbox";
		public static var LINKBUTTON:String = "linkbutton";
		public static var MULTIBUTTON:String = "multibutton";
	}
}