javax.swing

Class FocusManager

    • Field Detail

      • FOCUS_MANAGER_CLASS_PROPERTY

        public static final String FOCUS_MANAGER_CLASS_PROPERTY
        This field is obsolete, and its use is discouraged since its specification is incompatible with the 1.4 focus APIs. The current FocusManager is no longer a property of the UI. Client code must query for the current FocusManager using KeyboardFocusManager.getCurrentKeyboardFocusManager(). See the Focus Specification for more information.
        See Also:
        KeyboardFocusManager.getCurrentKeyboardFocusManager(), Focus Specification, Constant Field Values
    • Constructor Detail

      • FocusManager

        public FocusManager()
    • Method Detail

      • setCurrentManager

        public static void setCurrentManager(FocusManager aFocusManager)
                                      throws SecurityException
        Sets the current KeyboardFocusManager instance for the calling thread's context. If null is specified, then the current KeyboardFocusManager is replaced with a new instance of DefaultKeyboardFocusManager.

        If a SecurityManager is installed, the calling thread must be granted the AWTPermission "replaceKeyboardFocusManager" in order to replace the the current KeyboardFocusManager. If this permission is not granted, this method will throw a SecurityException, and the current KeyboardFocusManager will be unchanged.

        Parameters:
        aFocusManager - the new KeyboardFocusManager for this thread's context
        Throws:
        SecurityException - if the calling thread does not have permission to replace the current KeyboardFocusManager
        See Also:
        getCurrentManager(), DefaultKeyboardFocusManager
      • isFocusManagerEnabled

        @Deprecated
        public static boolean isFocusManagerEnabled()
        Deprecated. As of 1.4, replaced by KeyboardFocusManager.getDefaultFocusTraversalPolicy()
        Returns whether the application has invoked disableSwingFocusManager().
        See Also:
        disableSwingFocusManager()

Traduction non disponible

Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.

Document créé le 30/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-javax/swing/focusmanager.html

L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.

Références

  1. Consulter le document html Langue du document :fr Manuel PHP : https://docs.oracle.com, FocusManager

Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.

Table des matières Haut