Package com.jidesoft.utils
Class JideFocusTracker
- java.lang.Object
-
- com.jidesoft.utils.JideFocusTracker
-
- Direct Known Subclasses:
JideTabbedPane.PageLastFocusTracker
public class JideFocusTracker extends java.lang.Object
For internal usage only.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.awt.Component
compHeighest
protected java.awt.Component
lastFocus
protected java.awt.event.ContainerListener
listenerContainer
protected java.awt.event.FocusListener
listenerFocus
protected java.awt.event.FocusListener
listenerMultiCast
protected boolean
repeat
-
Constructor Summary
Constructors Constructor Description JideFocusTracker()
JideFocusTracker(java.awt.Component compHeighest)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFocusListener(java.awt.event.FocusListener l)
protected void
addInternalListeners(java.awt.Component component)
java.awt.Component
getHeighestComponent()
boolean
isRepeating()
This allows you to set whether focus lost or focus gained will be fired if the event is for the same component as a previous event.void
removeFocusListener(java.awt.event.FocusListener l)
protected void
removeInternalListeners(java.awt.Component component)
void
setHeighestComponent(java.awt.Component compHeighest)
void
setRepeating(boolean repeat)
-
-
-
Field Detail
-
compHeighest
protected java.awt.Component compHeighest
-
listenerFocus
protected java.awt.event.FocusListener listenerFocus
-
listenerContainer
protected java.awt.event.ContainerListener listenerContainer
-
listenerMultiCast
protected transient java.awt.event.FocusListener listenerMultiCast
-
repeat
protected boolean repeat
-
lastFocus
protected transient java.awt.Component lastFocus
-
-
Method Detail
-
setHeighestComponent
public void setHeighestComponent(java.awt.Component compHeighest)
-
getHeighestComponent
public java.awt.Component getHeighestComponent()
-
isRepeating
public boolean isRepeating()
This allows you to set whether focus lost or focus gained will be fired if the event is for the same component as a previous event. The default is true.
-
setRepeating
public void setRepeating(boolean repeat)
- See Also:
isRepeating()
-
addFocusListener
public void addFocusListener(java.awt.event.FocusListener l)
-
removeFocusListener
public void removeFocusListener(java.awt.event.FocusListener l)
-
addInternalListeners
protected void addInternalListeners(java.awt.Component component)
-
removeInternalListeners
protected void removeInternalListeners(java.awt.Component component)
-
-