public class JFrameOperator extends FrameOperator
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
JFrameOperator.JFrameFinder
Checks component type.
|
FrameOperator.FrameByTitleFinder, FrameOperator.FrameFinder
ContainerOperator.ContainerFinder
Operator.ComponentVisualizer, Operator.DefaultPathParser, Operator.DefaultStringComparator, Operator.Finder, Operator.MapAction, Operator.MapBooleanAction, Operator.MapByteAction, Operator.MapCharacterAction, Operator.MapDoubleAction, Operator.MapFloatAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator
IS_RESIZABLE_DPROP, STATE_DPROP, STATE_ICONIFIED_DPROP_VALUE, STATE_NORMAL_DPROP_VALUE, TITLE_DPROP
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
JFrameOperator()
Constructor.
|
JFrameOperator(ComponentChooser chooser)
Constructs a JFrameOperator object.
|
JFrameOperator(ComponentChooser chooser,
int index)
Constructs a JFrameOperator object.
|
JFrameOperator(ComponentChooser chooser,
int index,
Operator env)
Constructs a JFrameOperator object.
|
JFrameOperator(int index)
Constructor.
|
JFrameOperator(javax.swing.JFrame w)
Constructor.
|
JFrameOperator(java.lang.String title)
Constructor.
|
JFrameOperator(java.lang.String title,
int index)
Constructor.
|
JFrameOperator(java.lang.String title,
int index,
Operator env)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static javax.swing.JFrame |
findJFrame(ComponentChooser chooser)
Searches a frame.
|
static javax.swing.JFrame |
findJFrame(ComponentChooser chooser,
int index)
Searches an index'th frame.
|
static javax.swing.JFrame |
findJFrame(java.lang.String title,
boolean ce,
boolean cc)
Searches a frame by title.
|
static javax.swing.JFrame |
findJFrame(java.lang.String title,
boolean ce,
boolean cc,
int index)
Searches an index'th frame by title.
|
javax.accessibility.AccessibleContext |
getAccessibleContext()
Maps
JFrame.getAccessibleContext() through queue |
java.awt.Container |
getContentPane()
Maps
JFrame.getContentPane() through queue |
int |
getDefaultCloseOperation()
Maps
JFrame.getDefaultCloseOperation() through queue |
java.awt.Component |
getGlassPane()
Maps
JFrame.getGlassPane() through queue |
javax.swing.JMenuBar |
getJMenuBar()
Maps
JFrame.getJMenuBar() through queue |
javax.swing.JLayeredPane |
getLayeredPane()
Maps
JFrame.getLayeredPane() through queue |
javax.swing.JRootPane |
getRootPane()
Maps
JFrame.getRootPane() through queue |
void |
setContentPane(java.awt.Container container)
Maps
JFrame.setContentPane(Container) through queue |
void |
setDefaultCloseOperation(int i)
Maps
JFrame.setDefaultCloseOperation(int) through queue |
void |
setGlassPane(java.awt.Component component)
Maps
JFrame.setGlassPane(Component) through queue |
void |
setJMenuBar(javax.swing.JMenuBar jMenuBar)
Maps
JFrame.setJMenuBar(JMenuBar) through queue |
void |
setLayeredPane(javax.swing.JLayeredPane jLayeredPane)
Maps
JFrame.setLayeredPane(JLayeredPane) through queue |
static javax.swing.JFrame |
waitJFrame(ComponentChooser chooser)
Waits a frame.
|
static javax.swing.JFrame |
waitJFrame(ComponentChooser chooser,
int index)
Waits an index'th frame.
|
static javax.swing.JFrame |
waitJFrame(java.lang.String title,
boolean ce,
boolean cc)
Waits a frame by title.
|
static javax.swing.JFrame |
waitJFrame(java.lang.String title,
boolean ce,
boolean cc,
int index)
Waits an index'th frame by title.
|
copyEnvironment, deiconify, demaximize, getDump, getIconImage, getMenuBar, getOutput, getState, getTitle, iconify, isResizable, maximize, setIconImage, setMenuBar, setOutput, setResizable, setState, setTitle, waitFrame, waitState, waitTitle
activate, addWindowListener, applyResourceBundle, applyResourceBundle, close, dispose, findSubWindow, findSubWindow, findWindow, findWindow, findWindow, findWindow, getFocusOwner, getOwnedWindows, getOwner, getWarningString, isActive, isFocused, move, pack, removeWindowListener, resize, toBack, toFront, waitClosed, waitSubWindow, waitSubWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow
add, add, add, add, add, addContainerListener, createSubOperator, createSubOperator, findComponentAt, findComponentAt, findContainer, findContainer, findContainer, findContainer, findContainerUnder, findContainerUnder, findSubComponent, findSubComponent, getComponent, getComponentCount, getComponents, getInsets, getLayout, getTimeouts, isAncestorOf, paintComponents, printComponents, remove, remove, removeAll, removeContainerListener, setLayout, setTimeouts, waitContainer, waitContainer, waitContainer, waitContainer, waitSubComponent, waitSubComponent
activateWindow, add, addComponentListener, addFocusListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, checkImage, checkImage, clickForPopup, clickForPopup, clickForPopup, clickForPopup, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, clickMouse, contains, contains, createImage, createImage, dispatchEvent, doLayout, dragMouse, dragMouse, dragMouse, dragNDrop, dragNDrop, dragNDrop, enableInputMethods, enterMouse, exitMouse, findComponent, findComponent, getAlignmentX, getAlignmentY, getBackground, getBounds, getBounds, getCenterX, getCenterXForClick, getCenterY, getCenterYForClick, getColorModel, getComponentAt, getComponentAt, getComponentOrientation, getContainer, getContainers, getCursor, getDropTarget, getEventDispatcher, getFocus, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, getSize, getSize, getSource, getToolkit, getTreeLock, getWidth, getWindow, getX, getY, hasFocus, imageUpdate, invalidate, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, list, list, list, list, list, makeComponentVisible, moveMouse, paint, paintAll, prepareImage, prepareImage, pressKey, pressKey, pressMouse, pressMouse, print, printAll, pushKey, pushKey, releaseKey, releaseKey, releaseMouse, releaseMouse, remove, removeComponentListener, removeFocusListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFont, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, transferFocus, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabled
addOperatorPackage, addToDump, addToDump, createOperator, getCharBindingMap, getCharKey, getCharModifiers, getCharsKeys, getCharsKeys, getCharsModifiers, getCharsModifiers, getComparator, getDefaultComponentVisualizer, getDefaultMouseButton, getDefaultPathParser, getDefaultStringComparator, getDefaultVerification, getEnvironmentOperator, getParentPath, getParentPath, getPathParser, getPopupMouseButton, getProperties, getQueueTool, getVerification, getVisualizer, isCaptionEqual, isCaptionEqual, isCaptionEqual, lockQueue, parseString, parseString, printDump, produceNoBlocking, produceNoBlocking, produceTimeRestricted, produceTimeRestricted, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, runMapping, setCharBindingMap, setComparator, setDefaultComponentVisualizer, setDefaultPathParser, setDefaultStringComparator, setDefaultVerification, setPathParser, setProperties, setVerification, setVisualizer, toStringSource, unlockAndThrow, unlockQueue, waitState
public JFrameOperator(javax.swing.JFrame w)
w
- windowpublic JFrameOperator(ComponentChooser chooser, int index, Operator env)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.env
- an operator to copy environment from.public JFrameOperator(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JFrameOperator(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.public JFrameOperator(java.lang.String title, int index, Operator env)
title
- a window titleindex
- Ordinal component index.env
- an operator to copy environment from.Operator.isCaptionEqual(String, String, boolean, boolean)
public JFrameOperator(java.lang.String title, int index)
title
- a window titleindex
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties.getCurrentTimeouts()
,
JemmyProperties.getCurrentOutput()
public JFrameOperator(java.lang.String title)
title
- a window titleOperator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties.getCurrentTimeouts()
,
JemmyProperties.getCurrentOutput()
public JFrameOperator(int index)
index
- Ordinal component index.public JFrameOperator()
public static javax.swing.JFrame findJFrame(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public static javax.swing.JFrame findJFrame(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.public static javax.swing.JFrame findJFrame(java.lang.String title, boolean ce, boolean cc, int index)
title
- Frame titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption areindex
- an index between appropriate ones.public static javax.swing.JFrame findJFrame(java.lang.String title, boolean ce, boolean cc)
title
- Frame titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption arepublic static javax.swing.JFrame waitJFrame(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public static javax.swing.JFrame waitJFrame(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.public static javax.swing.JFrame waitJFrame(java.lang.String title, boolean ce, boolean cc, int index)
title
- Frame titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption areindex
- an index between appropriate ones.public static javax.swing.JFrame waitJFrame(java.lang.String title, boolean ce, boolean cc)
title
- Frame titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption arepublic javax.accessibility.AccessibleContext getAccessibleContext()
JFrame.getAccessibleContext()
through queuepublic java.awt.Container getContentPane()
JFrame.getContentPane()
through queuepublic int getDefaultCloseOperation()
JFrame.getDefaultCloseOperation()
through queuepublic java.awt.Component getGlassPane()
JFrame.getGlassPane()
through queuepublic javax.swing.JMenuBar getJMenuBar()
JFrame.getJMenuBar()
through queuepublic javax.swing.JLayeredPane getLayeredPane()
JFrame.getLayeredPane()
through queuepublic javax.swing.JRootPane getRootPane()
JFrame.getRootPane()
through queuepublic void setContentPane(java.awt.Container container)
JFrame.setContentPane(Container)
through queuepublic void setDefaultCloseOperation(int i)
JFrame.setDefaultCloseOperation(int)
through queuepublic void setGlassPane(java.awt.Component component)
JFrame.setGlassPane(Component)
through queuepublic void setJMenuBar(javax.swing.JMenuBar jMenuBar)
JFrame.setJMenuBar(JMenuBar)
through queuepublic void setLayeredPane(javax.swing.JLayeredPane jLayeredPane)
JFrame.setLayeredPane(JLayeredPane)
through queue