-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPopMenuFieldTypes.as
More file actions
42 lines (31 loc) · 901 Bytes
/
PopMenuFieldTypes.as
File metadata and controls
42 lines (31 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
package popForm
{
public class PopMenuFieldTypes
{
public static const STRING:uint= 0 ;
public static const DATE:uint = 1 ;
public static const TIME:uint = 2 ;
/**This type is same as string value but user cannot edit the text but when he clicek, it will dispatch an event*/
public static const CLICK:uint = 3 ;
public static const PHONE:uint = 4 ;
public static const RadioButton:uint = 5 ;
public static const BOOLEAN:uint = 6 ;
public var type:uint ;
public function PopMenuFieldTypes(myType:uint=STRING)
{
type = myType ;
}
public static function stringType():PopMenuFieldTypes
{
return new PopMenuFieldTypes(STRING);
}
public static function dateType():PopMenuFieldTypes
{
return new PopMenuFieldTypes(DATE);
}
public static function timeType():PopMenuFieldTypes
{
return new PopMenuFieldTypes(TIME);
}
}
}