|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface to support looking up existing components based on a number of different criteria.
Method Summary | |
void |
closeWindows()
Send close events to all available showing windows. |
void |
disposeWindows()
Discard all currently available windows. |
void |
filterComponent(Component comp)
Don't return the given component in any queries. |
Component |
findActivePopupMenu(Component invoker)
Find the active popup menu invoked by the given component. |
Component |
findComponent(ComponentReference ref)
Attempt to find the given component. |
Component |
findMenuItemByName(Component root,
String name)
Look up the first menu item below root with the given title. |
Window |
findWindow(String nameOrTitle)
Find the first showing window with a name or title that matches the given string. |
Frame |
getComponentFrame(Component comp)
Return the component's owning frame. |
String |
getComponentName(Component comp)
Return the component's name. |
Component |
getComponentParent(Component comp)
Look up the apparent parent of a component. |
Component[] |
getComponents(Container c)
Return all children of the given container, including Windows, MenuElements, and popup menus. |
Window |
getComponentTitledWindow(Component comp)
Return the component's nearest owning window with a title. |
Window |
getComponentWindow(Component comp)
Returns the parent window for the given component. |
String |
getComponentWindowTitle(Component comp)
Return the title of the nearest ancestor window with a title. |
Window[] |
getRootWindows()
Returns all available root Windows (those that have no parent). |
Window[] |
getWindows()
Returns the set of all available windows. |
Window[] |
getWindows(Window parent)
Returns all immediate child windows of the given parent window. |
void |
ignoreComponent(Component comp)
Ignore (for the purpose of future lookup) the given component. |
void |
ignoreExistingComponents()
Ignore (for the purposes of future lookup) all currently available components. |
boolean |
isFiltered(Component comp)
Returns true if the component or its Window ancestor is filtered. |
boolean |
isShowing(Component c)
Return whether the given component is showing and ready for input. |
void |
setFilterEnabled(boolean enable)
Indicate whether to filter component lists. |
Method Detail |
public Component findComponent(ComponentReference ref) throws ComponentNotFoundException, MultipleComponentsFoundException
public Window findWindow(String nameOrTitle) throws ComponentNotFoundException, MultipleComponentsFoundException
public Component findActivePopupMenu(Component invoker)
public Component findMenuItemByName(Component root, String name)
public Window[] getRootWindows()
public Window[] getWindows(Window parent)
public Window[] getWindows()
public Component[] getComponents(Container c)
public Component getComponentParent(Component comp)
public Window getComponentWindow(Component comp)
public String getComponentWindowTitle(Component comp)
public Frame getComponentFrame(Component comp)
public Window getComponentTitledWindow(Component comp)
public String getComponentName(Component comp)
public boolean isFiltered(Component comp)
public void filterComponent(Component comp)
public void setFilterEnabled(boolean enable)
public void ignoreComponent(Component comp)
public void ignoreExistingComponents()
public void disposeWindows()
public void closeWindows()
public boolean isShowing(Component c)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |