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 isTrackingEnabled()
          Returns whether tracking is currently enabled or not.
 boolean isUniteWithChilds()
          Returns whether component and its childs in components tree should be counted as a single component or not.
 

Method Detail

isTrackingEnabled

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

Returns:
true if tracking is currently enabled, false otherwise

isUniteWithChilds

boolean isUniteWithChilds()
Returns whether component and its childs in components tree should be counted as a single component or not. In case component and its childs are counted as one focus changes within them will be ignored by tracker.

Returns:
true if component and its childs in components tree should be counted as a single component, 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