KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > monitor > Standards


1 /*
2  * (c) Rob Gordon 2005
3  */

4 package org.oddjob.monitor;
5
6 import java.awt.event.ActionEvent JavaDoc;
7 import java.awt.event.KeyEvent JavaDoc;
8
9 import javax.swing.KeyStroke JavaDoc;
10
11 /**
12  *
13  */

14 public class Standards {
15
16     // file actions
17
public static final Integer JavaDoc NEW_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_N);
18     public static final KeyStroke JavaDoc NEW_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK);
19         
20     public static final Integer JavaDoc OPEN_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_O);
21     public static final KeyStroke JavaDoc OPEN_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK);
22
23     public static final Integer JavaDoc CLOSE_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_C);
24     public static final KeyStroke JavaDoc CLOSE_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_F4, ActionEvent.CTRL_MASK);
25
26     public static final Integer JavaDoc RELOAD_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_R);
27     public static final KeyStroke JavaDoc RELOAD_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK);
28
29     public static final Integer JavaDoc SAVE_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_S);
30     public static final KeyStroke JavaDoc SAVE_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK);
31
32     public static final Integer JavaDoc SAVEAS_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_A);
33     public static final KeyStroke JavaDoc SAVEAS_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.CTRL_MASK);
34     
35     public static final Integer JavaDoc EXPLORER_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_E);
36     public static final KeyStroke JavaDoc EXPLORER_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_E, ActionEvent.CTRL_MASK);
37     
38     public static final Integer JavaDoc DESIGNER_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_G);
39     
40     public static final Integer JavaDoc EXIT_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_G);
41     
42     // explorer job actions
43
public static final Integer JavaDoc RUN_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_R);
44     public static final KeyStroke JavaDoc RUN_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.CTRL_MASK);
45     
46     public static final Integer JavaDoc SOFT_RESET_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_S);
47     public static final KeyStroke JavaDoc SOFT_RESET_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_J, ActionEvent.CTRL_MASK);
48     
49     public static final Integer JavaDoc HARD_RESET_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_H);
50     public static final KeyStroke JavaDoc HARD_RESET_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK);
51     
52     public static final Integer JavaDoc STOP_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_T);
53     public static final KeyStroke JavaDoc STOP_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_T, ActionEvent.CTRL_MASK);
54
55     public static final Integer JavaDoc PROPERTY_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_P);
56     public static final KeyStroke JavaDoc PROPERTY_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.CTRL_MASK);
57     
58     // designer component actions
59
public static final Integer JavaDoc VIEW_XML_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_X);
60     public static final KeyStroke JavaDoc VIEW_XML_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK);
61
62     public static final Integer JavaDoc VIEW_COMP_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_C);
63     public static final KeyStroke JavaDoc VIEW_COMP_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_K, ActionEvent.CTRL_MASK);
64     
65     public static final Integer JavaDoc DELETE_MNEMONIC_KEY = new Integer JavaDoc(KeyEvent.VK_C);
66 }
67
Popular Tags