1 7 package javax.swing.text; 8 9 import javax.swing.Action ; 10 import javax.swing.KeyStroke ; 11 12 20 public interface Keymap { 21 22 27 public String getName(); 28 29 39 public Action getDefaultAction(); 40 41 46 public void setDefaultAction(Action a); 47 48 59 public Action getAction(KeyStroke key); 60 61 67 public KeyStroke [] getBoundKeyStrokes(); 68 69 74 public Action [] getBoundActions(); 75 76 83 public KeyStroke [] getKeyStrokesForAction(Action a); 84 85 91 public boolean isLocallyDefined(KeyStroke key); 92 93 99 public void addActionForKeyStroke(KeyStroke key, Action a); 100 101 106 public void removeKeyStrokeBinding(KeyStroke keys); 107 108 111 public void removeBindings(); 112 113 118 public Keymap getResolveParent(); 119 120 126 public void setResolveParent(Keymap parent); 127 128 } 129 | Popular Tags |