< prev index next >

src/java.desktop/share/classes/javax/swing/text/Keymap.java

Print this page




  54      * @return the default action
  55      */
  56     public Action getDefaultAction();
  57 
  58     /**
  59      * Set the default action to fire if a key is typed.
  60      *
  61      * @param a the action
  62      */
  63     public void setDefaultAction(Action a);
  64 
  65     /**
  66      * Fetches the action appropriate for the given symbolic
  67      * event sequence.  This is used by JTextController to
  68      * determine how to interpret key sequences.  If the
  69      * binding is not resolved locally, an attempt is made
  70      * to resolve through the parent keymap, if one is set.
  71      *
  72      * @param key the key sequence
  73      * @return  the action associated with the key
  74      *  sequence if one is defined, otherwise <code>null</code>
  75      */
  76     public Action getAction(KeyStroke key);
  77 
  78     /**
  79      * Fetches all of the keystrokes in this map that
  80      * are bound to some action.
  81      *
  82      * @return the list of keystrokes
  83      */
  84     public KeyStroke[] getBoundKeyStrokes();
  85 
  86     /**
  87      * Fetches all of the actions defined in this keymap.
  88      *
  89      * @return the list of actions
  90      */
  91     public Action[] getBoundActions();
  92 
  93     /**
  94      * Fetches the keystrokes that will result in




  54      * @return the default action
  55      */
  56     public Action getDefaultAction();
  57 
  58     /**
  59      * Set the default action to fire if a key is typed.
  60      *
  61      * @param a the action
  62      */
  63     public void setDefaultAction(Action a);
  64 
  65     /**
  66      * Fetches the action appropriate for the given symbolic
  67      * event sequence.  This is used by JTextController to
  68      * determine how to interpret key sequences.  If the
  69      * binding is not resolved locally, an attempt is made
  70      * to resolve through the parent keymap, if one is set.
  71      *
  72      * @param key the key sequence
  73      * @return  the action associated with the key
  74      *  sequence if one is defined, otherwise {@code null}
  75      */
  76     public Action getAction(KeyStroke key);
  77 
  78     /**
  79      * Fetches all of the keystrokes in this map that
  80      * are bound to some action.
  81      *
  82      * @return the list of keystrokes
  83      */
  84     public KeyStroke[] getBoundKeyStrokes();
  85 
  86     /**
  87      * Fetches all of the actions defined in this keymap.
  88      *
  89      * @return the list of actions
  90      */
  91     public Action[] getBoundActions();
  92 
  93     /**
  94      * Fetches the keystrokes that will result in


< prev index next >