Class FocusTracker


  • public abstract class FocusTracker
    extends Object
    A base class for implementations that have to track the current keyboard focus. This class takes care of all change events regarding the focus-manager and channels all focus-change events through a single update method.
    Author:
    Thomas Morgner
    • Constructor Detail

      • FocusTracker

        protected FocusTracker()
        Creates a new focus-tracker and registers it on the permanent-focus-owner property.
    • Method Detail

      • focusChanged

        protected abstract void focusChanged​(Component c)
        A notifier method that is called whenever the permanentFocusOwner property changed.
        Parameters:
        c - the component that has the focus, or null if no component in this application has the focus.