Geen cache-versie.

Caching uitgeschakeld. Standaardinstelling voor deze pagina:ingeschakeld (code LNG204)
Als het scherm te langzaam is, kunt u de gebruikersmodus uitschakelen om de cacheversie te bekijken.
javax.swing.text

Interface Keymap


  • public interface Keymap
    A collection of bindings of KeyStrokes to actions. The bindings are basically name-value pairs that potentially resolve in a hierarchy.
    • Method Detail

      • getName

        String getName()
        Fetches the name of the set of key-bindings.
        Returns:
        the name
      • getDefaultAction

        Action getDefaultAction()
        Fetches the default action to fire if a key is typed (i.e. a KEY_TYPED KeyEvent is received) and there is no binding for it. Typically this would be some action that inserts text so that the keymap doesn't require an action for each possible key.
        Returns:
        the default action
      • setDefaultAction

        void setDefaultAction(Action a)
        Set the default action to fire if a key is typed.
        Parameters:
        a - the action
      • getAction

        Action getAction(KeyStroke key)
        Fetches the action appropriate for the given symbolic event sequence. This is used by JTextController to determine how to interpret key sequences. If the binding is not resolved locally, an attempt is made to resolve through the parent keymap, if one is set.
        Parameters:
        key - the key sequence
        Returns:
        the action associated with the key sequence if one is defined, otherwise null
      • getBoundKeyStrokes

        KeyStroke[] getBoundKeyStrokes()
        Fetches all of the keystrokes in this map that are bound to some action.
        Returns:
        the list of keystrokes
      • getBoundActions

        Action[] getBoundActions()
        Fetches all of the actions defined in this keymap.
        Returns:
        the list of actions
      • getKeyStrokesForAction

        KeyStroke[] getKeyStrokesForAction(Action a)
        Fetches the keystrokes that will result in the given action.
        Parameters:
        a - the action
        Returns:
        the list of keystrokes
      • isLocallyDefined

        boolean isLocallyDefined(KeyStroke key)
        Determines if the given key sequence is locally defined.
        Parameters:
        key - the key sequence
        Returns:
        true if the key sequence is locally defined else false
      • addActionForKeyStroke

        void addActionForKeyStroke(KeyStroke key,
                                 Action a)
        Adds a binding to the keymap.
        Parameters:
        key - the key sequence
        a - the action
      • removeKeyStrokeBinding

        void removeKeyStrokeBinding(KeyStroke keys)
        Removes a binding from the keymap.
        Parameters:
        keys - the key sequence
      • removeBindings

        void removeBindings()
        Removes all bindings from the keymap.
      • getResolveParent

        Keymap getResolveParent()
        Fetches the parent keymap used to resolve key-bindings.
        Returns:
        the keymap
      • setResolveParent

        void setResolveParent(Keymap parent)
        Sets the parent keymap, which will be used to resolve key-bindings. The behavior is unspecified if a Keymap has itself as one of its resolve parents.
        Parameters:
        parent - the parent keymap

Nederlandse vertaling

U hebt gevraagd om deze site in het Nederlands te bezoeken. Voor nu wordt alleen de interface vertaald, maar nog niet alle inhoud.

Als je me wilt helpen met vertalingen, is je bijdrage welkom. Het enige dat u hoeft te doen, is u op de site registreren en mij een bericht sturen waarin u wordt gevraagd om u toe te voegen aan de groep vertalers, zodat u de gewenste pagina's kunt vertalen. Een link onderaan elke vertaalde pagina geeft aan dat u de vertaler bent en heeft een link naar uw profiel.

Bij voorbaat dank.

Document heeft de 11/06/2005 gemaakt, de laatste keer de 04/03/2020 gewijzigd
Bron van het afgedrukte document:https://www.gaudry.be/nl/java-api-rf-javax/swing/text/keymap.html

De infobrol is een persoonlijke site waarvan de inhoud uitsluitend mijn verantwoordelijkheid is. De tekst is beschikbaar onder CreativeCommons-licentie (BY-NC-SA). Meer info op de gebruiksvoorwaarden en de auteur.

Referenties

  1. Bekijk - html-document Taal van het document:fr Manuel PHP : https://docs.oracle.com

Deze verwijzingen en links verwijzen naar documenten die geraadpleegd zijn tijdens het schrijven van deze pagina, of die aanvullende informatie kunnen geven, maar de auteurs van deze bronnen kunnen niet verantwoordelijk worden gehouden voor de inhoud van deze pagina.
De auteur Deze site is als enige verantwoordelijk voor de manier waarop de verschillende concepten, en de vrijheden die met de referentiewerken worden genomen, hier worden gepresenteerd. Vergeet niet dat u meerdere broninformatie moet doorgeven om het risico op fouten te verkleinen.

Inhoudsopgave Haut