public class Component
extends java.lang.Object
java.awt.Component
Default replacement for ReplaceCallAgent. Replacement should be
specified in "resources/default-replacements.txt"
| Constructor and Description |
|---|
Component()
Creates a (mock) Component.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
requestFocus(java.awt.Component component)
Mock of method
java.awt.Component.requestFocus() to prevent component getting focus. |
static void |
requestFocus(java.awt.Component component,
boolean temporary)
Mock of method
java.awt.Component.requestFocus() to prevent component getting focus. |
static void |
setVisible(java.awt.Component component,
boolean visible)
Shows or hides this component depending on the value of parameter
b. |
static void |
show(java.awt.Component component)
Deprecated.
As of JDK version 1.1, replaced by
setVisible(boolean). |
static void |
show(java.awt.Component component,
boolean visible)
Deprecated.
As of JDK version 1.1, replaced by
setVisible(boolean). |
public static void setVisible(java.awt.Component component,
boolean visible)
b.
This method changes layout-related information, and therefore, invalidates the component hierarchy.
component - a componentvisible - if true, shows this component; otherwise, hides this componentpublic static void show(java.awt.Component component,
boolean visible)
setVisible(boolean).component - a componentvisible - true to make this component visible; otherwise falsepublic static void show(java.awt.Component component)
setVisible(boolean).b.component - a componentpublic static void requestFocus(java.awt.Component component)
java.awt.Component.requestFocus() to prevent component getting focus.component - the component that should not receive focuspublic static void requestFocus(java.awt.Component component,
boolean temporary)
java.awt.Component.requestFocus() to prevent component getting focus.component - the component that should not receive focustemporary - flag that indicates that focus should be temporary (ignored)