OSDN Git Service

initial commit
[xdf/git-repos.git] / xdf-swing / src / main / java / jp / ac / aiit / xdf / component / swing / event / SwingEventType.java
1 package jp.ac.aiit.xdf.component.swing.event;
2
3 import jp.ac.aiit.xdf.core.action.EventType;
4
5 /**
6  * @author Pin.Yuan
7  * Swingアクションのイベントタイプ定義
8  *
9  */
10 public enum SwingEventType implements EventType{
11         
12         /**
13          * SwingコンポーネントActionイベント
14          */
15         ACTIONED("click"),
16         /**
17          * マウスクリックイベント
18          */
19         CLICK("click"),
20         /**
21          * マウスダブルクリックイベント
22          */
23         DOUBLECLICK("doubleclick"),
24         /**
25          * タブ変わったイベント
26          */
27         TAB_CHANGE("tabchange"),
28         /**
29          * Tabキーイベント
30          */
31         KEY_ENTER_TAB("keyenter"),
32         /**
33          * キーボード入力イベント
34          */
35         KEY_TYPED("keytype"),
36         /**
37          * txtfield編集イベント
38          */
39         EDIT("edit"),
40         /**
41          * Enterキーイベント
42          */
43         PRESSENTER("press-enter"),
44         /**
45          * フォーカス当たるイベント
46          */
47         FOCUS("focus"),
48         /**
49          * フォーカスはずれたイベント
50          */
51         FOCUSLOSE("focuslose"),
52         /**
53          * checkbox, radioのチェックイベント
54          */
55         CHECK("check"),
56         /**
57          * checkbox, radioのチェックを外すイベント
58          */
59         UNCHECK("uncheck"),
60         /**
61          * listのチェンジイベント
62          */
63         CHANGE("change");
64         
65         private String attr;
66         private SwingEventType(String attr){
67                 this.attr = attr;
68         }
69         
70         public String toString(){
71                 return attr;
72         }
73 }