com.alee.managers.focus
Interface FocusTracker

All Known Implementing Classes:
DefaultFocusTracker

public interface FocusTracker

Advanced interface that allows you to track focus behavior within component and its childs. Note that method names are made longer to avoid clashing with other component methods in case you implement tracker interface.

Author:
Mikle Garin

Method Summary
 void focusChanged(boolean focused)
          Informs about component(s) focus changes depending on tracker settings.
 boolean isInvolved(java.awt.Component component, java.awt.Component tracked)
          Returns whether specified component is involved with this tracker or not.
 boolean isTrackingEnabled()
          Returns whether tracking is currently enabled or not.
 

Method Detail

isTrackingEnabled

boolean isTrackingEnabled()
Returns whether tracking is currently enabled or not.

Returns:
true if tracking is currently enabled, false otherwise

isInvolved

boolean isInvolved(java.awt.Component component,
                   java.awt.Component tracked)
Returns whether specified component is involved with this tracker or not. This basically asks whether this object counts towards this tracker focus changes or not.

Parameters:
component - component to check for involvement
tracked - tracked component
Returns:
true if the specified component is involved with this tracker, false otherwise

focusChanged

void focusChanged(boolean focused)
Informs about component(s) focus changes depending on tracker settings.

Parameters:
focused - whether tracked component(s) is focused or not