public class ComponentTracker
extends java.lang.Object
| Constructor and Description |
|---|
ComponentTracker()
Constructor for ComponentTracker.
|
| Modifier and Type | Method and Description |
|---|---|
java.awt.Component |
getChildComponent(LocalAgentFactory lagents,
java.awt.Component[] parent,
ComponentItem child)
Attempt to locate the real Component from the parent array using the child
ComponentItem information.
|
ComponentItem |
getComponentItem(java.lang.Integer key)
Get a ComponentItem based on the stored Integer hashcode key or
null if not found or invalid key.
|
java.util.ArrayList |
getComponentItems(LocalAgentFactory lagents,
java.awt.Component parent,
java.util.ArrayList parentpath)
Retrieve an ArrayList of ComponentItems representing the parent's children.
|
protected java.awt.Component |
getMatchedComponent(java.awt.Component[] components,
int hashcode)
Retrieve the component in the array that has the matching hashcode.
|
void |
putComponentItem(ComponentItem compItem)
Add a ComponentItem to those being tracked.
|
public void putComponentItem(ComponentItem compItem)
public ComponentItem getComponentItem(java.lang.Integer key)
public java.util.ArrayList getComponentItems(LocalAgentFactory lagents, java.awt.Component parent, java.util.ArrayList parentpath)
Component - parent from which to get child ComponentItems.
ArrayList - Integer hashCode hierarchy of the parent component. This
is the same as the CompParents ArrayList within a ComponentItem.
A TopLevel Window should have an ArrayList of just one Integer hashCode: itself.
protected java.awt.Component getMatchedComponent(java.awt.Component[] components,
int hashcode)
components - array to search for hashcode.hashcode - to find in component array.public java.awt.Component getChildComponent(LocalAgentFactory lagents, java.awt.Component[] parent, ComponentItem child)
Component[] - parent array (typically) of top level windows.
ComponentItem - child reference holding ArrayList of Integer hashCodes
identifying the hierarchy to the target Component.
Copyright © SAS Institute. All Rights Reserved.