public class FocusSnitchMap
extends com.google.common.collect.ForwardingMap
This class is a diagnostic tool designed to be used via reflection to replace
an internal map within the KeyboardFocusManager (e.g. the "mostRecentFocusOwners" map).
By overriding the "put" method, it logs every time a component's focus is set,
providing valuable debugging information about focus changes. It uses the tool method
FormElementI.toDebugName(Object) to format the component or window
for a more readable log message.
| Constructor and Description |
|---|
FocusSnitchMap(java.util.Map _delegate)
Constructs a new FocusSnitchMap.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Map |
delegate()
Returns the delegate map.
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Logs the key and value of the "put" operation and then delegates the call to the underlying map.
|
public FocusSnitchMap(java.util.Map _delegate)
delegate - The map to which all operations will be delegated.public java.util.Map delegate()
delegate in class com.google.common.collect.ForwardingMappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mapput in class com.google.common.collect.ForwardingMapkey - The key to be logged (typically a Window).value - The value to be logged (typically a Component).Copyright © 2000-2026 OAshi S.à r.l. All Rights Reserved.