Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
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

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/swing/text/keymap.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut