1 4 package org.oddjob.monitor; 5 6 import java.awt.event.ActionEvent ; 7 import java.awt.event.KeyEvent ; 8 9 import javax.swing.KeyStroke ; 10 11 14 public class Standards { 15 16 public static final Integer NEW_MNEMONIC_KEY = new Integer (KeyEvent.VK_N); 18 public static final KeyStroke NEW_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK); 19 20 public static final Integer OPEN_MNEMONIC_KEY = new Integer (KeyEvent.VK_O); 21 public static final KeyStroke OPEN_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.CTRL_MASK); 22 23 public static final Integer CLOSE_MNEMONIC_KEY = new Integer (KeyEvent.VK_C); 24 public static final KeyStroke CLOSE_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_F4, ActionEvent.CTRL_MASK); 25 26 public static final Integer RELOAD_MNEMONIC_KEY = new Integer (KeyEvent.VK_R); 27 public static final KeyStroke RELOAD_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK); 28 29 public static final Integer SAVE_MNEMONIC_KEY = new Integer (KeyEvent.VK_S); 30 public static final KeyStroke SAVE_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK); 31 32 public static final Integer SAVEAS_MNEMONIC_KEY = new Integer (KeyEvent.VK_A); 33 public static final KeyStroke SAVEAS_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.CTRL_MASK); 34 35 public static final Integer EXPLORER_MNEMONIC_KEY = new Integer (KeyEvent.VK_E); 36 public static final KeyStroke EXPLORER_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_E, ActionEvent.CTRL_MASK); 37 38 public static final Integer DESIGNER_MNEMONIC_KEY = new Integer (KeyEvent.VK_G); 39 40 public static final Integer EXIT_MNEMONIC_KEY = new Integer (KeyEvent.VK_G); 41 42 public static final Integer RUN_MNEMONIC_KEY = new Integer (KeyEvent.VK_R); 44 public static final KeyStroke RUN_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_R, ActionEvent.CTRL_MASK); 45 46 public static final Integer SOFT_RESET_MNEMONIC_KEY = new Integer (KeyEvent.VK_S); 47 public static final KeyStroke SOFT_RESET_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_J, ActionEvent.CTRL_MASK); 48 49 public static final Integer HARD_RESET_MNEMONIC_KEY = new Integer (KeyEvent.VK_H); 50 public static final KeyStroke HARD_RESET_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK); 51 52 public static final Integer STOP_MNEMONIC_KEY = new Integer (KeyEvent.VK_T); 53 public static final KeyStroke STOP_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_T, ActionEvent.CTRL_MASK); 54 55 public static final Integer PROPERTY_MNEMONIC_KEY = new Integer (KeyEvent.VK_P); 56 public static final KeyStroke PROPERTY_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.CTRL_MASK); 57 58 public static final Integer VIEW_XML_MNEMONIC_KEY = new Integer (KeyEvent.VK_X); 60 public static final KeyStroke VIEW_XML_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.CTRL_MASK); 61 62 public static final Integer VIEW_COMP_MNEMONIC_KEY = new Integer (KeyEvent.VK_C); 63 public static final KeyStroke VIEW_COMP_ACCELERATOR_KEY = KeyStroke.getKeyStroke(KeyEvent.VK_K, ActionEvent.CTRL_MASK); 64 65 public static final Integer DELETE_MNEMONIC_KEY = new Integer (KeyEvent.VK_C); 66 } 67 | Popular Tags |