|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alee.managers.focus.DefaultFocusTracker
public abstract class DefaultFocusTracker
Small extension class for FocusTracker that simplifies its creation.
Constructor Summary | |
---|---|
DefaultFocusTracker()
Constructs new tracker with the specified tracked component. |
|
DefaultFocusTracker(boolean uniteWithChilds)
Constructs new tracker with the specified tracked component. |
Method Summary | |
---|---|
void |
addCustomChild(java.awt.Component customChild)
Adds new custom child. |
java.util.List<java.awt.Component> |
getCustomChildren()
Returns custom childs which should be tracked together with this component. |
java.util.List<java.lang.ref.WeakReference<java.awt.Component>> |
getWeakCustomChildren()
Returns weakly-referenced custom children. |
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. |
boolean |
isUniteWithChilds()
Returns whether component and its childs in components tree should be counted as a single component or not. |
void |
removeCustomChild(java.awt.Component customChild)
Removes custom child. |
void |
setCustomChildren(java.util.List<java.awt.Component> customChildren)
Sets custom childs which should be tracked together with this component. |
void |
setTrackingEnabled(boolean enabled)
Sets whether tracking is currently enabled or not. |
void |
setUniteWithChilds(boolean uniteWithChilds)
Sets whether component and its childs in components tree should be counted as a single component or not. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.alee.managers.focus.FocusTracker |
---|
focusChanged |
Constructor Detail |
---|
public DefaultFocusTracker()
public DefaultFocusTracker(boolean uniteWithChilds)
uniteWithChilds
- whether component and its childs in components tree should be counted as a single component or notMethod Detail |
---|
public boolean isTrackingEnabled()
isTrackingEnabled
in interface FocusTracker
public void setTrackingEnabled(boolean enabled)
enabled
- whether tracking is currently enabled or notpublic boolean isInvolved(java.awt.Component component, java.awt.Component tracked)
isInvolved
in interface FocusTracker
component
- component to check for involvementtracked
- tracked component
public boolean isUniteWithChilds()
public void setUniteWithChilds(boolean uniteWithChilds)
uniteWithChilds
- whether component and its childs in components tree should be counted as a single component or notpublic java.util.List<java.awt.Component> getCustomChildren()
public java.util.List<java.lang.ref.WeakReference<java.awt.Component>> getWeakCustomChildren()
public void setCustomChildren(java.util.List<java.awt.Component> customChildren)
customChildren
- custom childs which should be tracked together with this componentpublic void addCustomChild(java.awt.Component customChild)
customChild
- custom child to addpublic void removeCustomChild(java.awt.Component customChild)
customChild
- custom child to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |