public class Frame
extends java.lang.Object
java.awt.Frame.
Default replacement for ReplaceCallAgent. Replacement should be
specified in "resources/default-replacements.txt"
| Constructor and Description |
|---|
Frame()
Creates a (mock) Frame.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
pack(java.awt.Frame dialog)
Mock of
java.awt.Frame.pack() to avoid triggering display events. |
static void |
requestFocus(java.awt.Frame frame)
Mock of method
java.awt.Frame.requestFocus() to prevent component getting focus. |
static void |
setVisible(java.awt.Frame dialog,
boolean visible)
Mock of
java.awt.Frame.setVisible(boolean) to avoid triggering display events. |
static void |
show(java.awt.Frame dialog)
Mock of
java.awt.Frame.show() to avoid triggering display events. |
static void |
show(java.awt.Frame dialog,
boolean visible)
Mock of
java.awt.Frame.show(boolean) to avoid triggering display events. |
static void |
toFront(java.awt.Frame dialog)
Mock of
java.awt.Frame.toFront() to avoid scenario where a dialog could assume focus by
moving to the front (this only applies to some dialoging systems). |
public static void pack(java.awt.Frame dialog)
java.awt.Frame.pack() to avoid triggering display events.dialog - the dialog that should not be displayedpublic static void setVisible(java.awt.Frame dialog,
boolean visible)
java.awt.Frame.setVisible(boolean) to avoid triggering display events.dialog - the dialog that should not be displayedvisible - the visibility state flag, ignored by this methodpublic static void show(java.awt.Frame dialog,
boolean visible)
java.awt.Frame.show(boolean) to avoid triggering display events.dialog - the dialog that should not be displayedvisible - the visibility state flag, ignored by this methodpublic static void show(java.awt.Frame dialog)
java.awt.Frame.show() to avoid triggering display events.dialog - the dialog that should not be displayedpublic static void toFront(java.awt.Frame dialog)
java.awt.Frame.toFront() to avoid scenario where a dialog could assume focus by
moving to the front (this only applies to some dialoging systems).dialog - the dialog that shouldn't assume focuspublic static void requestFocus(java.awt.Frame frame)
java.awt.Frame.requestFocus() to prevent component getting focus.frame - the frame that should not receive focus