Class JFrameOperator
- All Implemented Interfaces:
Outputable, Timeoutable
Timeouts used:
FrameWaiter.WaitFrameTimeout - time to wait frame displayed
FrameWaiter.AfterFrameTimeout - time to sleep after frame has been dispayed
.
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class FrameOperator
FrameOperator.FrameByTitleFinder, FrameOperator.FrameFinderNested classes/interfaces inherited from class ContainerOperator
ContainerOperator.ContainerFinderNested classes/interfaces inherited from class Operator
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 -
Field Summary
Fields inherited from class FrameOperator
IS_RESIZABLE_DPROP, STATE_DPROP, STATE_ICONIFIED_DPROP_VALUE, STATE_NORMAL_DPROP_VALUE, TITLE_DPROPFields inherited from class ComponentOperator
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPFields inherited from class Operator
CLASS_DPROP, TO_STRING_DPROP -
Constructor Summary
ConstructorsConstructorDescriptionConstructor.JFrameOperator(int index) Constructor.JFrameOperator(String title) Constructor.JFrameOperator(String title, int index) Constructor.JFrameOperator(String title, int index, Operator env) Constructor.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic JFramefindJFrame(String title, boolean ce, boolean cc) Searches a frame by title.static JFramefindJFrame(String title, boolean ce, boolean cc, int index) Searches an index'th frame by title.static JFramefindJFrame(ComponentChooser chooser) Searches a frame.static JFramefindJFrame(ComponentChooser chooser, int index) Searches an index'th frame.MapsJFrame.getAccessibleContext()through queueMapsJFrame.getContentPane()through queueintMapsJFrame.getDefaultCloseOperation()through queueMapsJFrame.getGlassPane()through queueMapsJFrame.getJMenuBar()through queueMapsJFrame.getLayeredPane()through queueMapsJFrame.getRootPane()through queuevoidsetContentPane(Container container) MapsJFrame.setContentPane(Container)through queuevoidsetDefaultCloseOperation(int i) MapsJFrame.setDefaultCloseOperation(int)through queuevoidsetGlassPane(Component component) MapsJFrame.setGlassPane(Component)through queuevoidsetJMenuBar(JMenuBar jMenuBar) MapsJFrame.setJMenuBar(JMenuBar)through queuevoidsetLayeredPane(JLayeredPane jLayeredPane) MapsJFrame.setLayeredPane(JLayeredPane)through queuestatic JFramewaitJFrame(String title, boolean ce, boolean cc) Waits a frame by title.static JFramewaitJFrame(String title, boolean ce, boolean cc, int index) Waits an index'th frame by title.static JFramewaitJFrame(ComponentChooser chooser) Waits a frame.static JFramewaitJFrame(ComponentChooser chooser, int index) Waits an index'th frame.Methods inherited from class FrameOperator
copyEnvironment, deiconify, demaximize, getDump, getIconImage, getMenuBar, getOutput, getState, getTitle, iconify, isResizable, maximize, setIconImage, setMenuBar, setOutput, setResizable, setState, setTitle, waitFrame, waitState, waitTitleMethods inherited from class WindowOperator
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, waitWindowMethods inherited from class ContainerOperator
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, waitSubComponentMethods inherited from class ComponentOperator
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, wtComponentEnabledMethods inherited from class Operator
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
-
Constructor Details
-
JFrameOperator
-
JFrameOperator
Constructs a JFrameOperator object.- Parameters:
chooser- a component chooser specifying searching criteria.index- an index between appropriate ones.env- an operator to copy environment from.
-
JFrameOperator
Constructs a JFrameOperator object.- Parameters:
chooser- a component chooser specifying searching criteria.index- an index between appropriate ones.
-
JFrameOperator
Constructs a JFrameOperator object.- Parameters:
chooser- a component chooser specifying searching criteria.
-
JFrameOperator
Constructor. Waits for the frame with "title" subtitle. Constructor can be used in complicated cases when output or timeouts should differ from default.- Parameters:
title- a window titleindex- Ordinal component index.env- an operator to copy environment from.- See Also:
-
JFrameOperator
Constructor. Waits for the frame with "title" subtitle. Uses current timeouts and output values.- Parameters:
title- a window titleindex- Ordinal component index.- See Also:
-
JFrameOperator
Constructor. Waits for the frame with "title" subtitle. Uses current timeouts and output values.- Parameters:
title- a window title- See Also:
-
JFrameOperator
public JFrameOperator(int index) Constructor. Waits for the index'th frame. Uses current timeout and output for waiting and to init operator.- Parameters:
index- Ordinal component index.
-
JFrameOperator
public JFrameOperator()Constructor. Waits for the first frame. Uses current timeout and output for waiting and to init operator.
-
-
Method Details
-
findJFrame
Searches an index'th frame.- Parameters:
chooser- a component chooser specifying searching criteria.index- an index between appropriate ones.- Returns:
- JFrame instance or null if component was not found.
-
findJFrame
Searches a frame.- Parameters:
chooser- a component chooser specifying searching criteria.- Returns:
- JFrame instance or null if component was not found.
-
findJFrame
Searches an index'th frame by title.- Parameters:
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.- Returns:
- JFrame instance or null if component was not found.
-
findJFrame
Searches a frame by title.- Parameters:
title- Frame titlece- Compare exactly. If true, text can be a substring of caption.cc- Compare case sensitively. If true, both text and caption are- Returns:
- JFrame instance or null if component was not found.
-
waitJFrame
Waits an index'th frame.- Parameters:
chooser- a component chooser specifying searching criteria.index- an index between appropriate ones.- Returns:
- JFrame instance or null if component was not found.
-
waitJFrame
Waits a frame.- Parameters:
chooser- a component chooser specifying searching criteria.- Returns:
- JFrame instance or null if component was not found.
-
waitJFrame
Waits an index'th frame by title.- Parameters:
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.- Returns:
- JFrame instance or null if component was not found.
-
waitJFrame
Waits a frame by title.- Parameters:
title- Frame titlece- Compare exactly. If true, text can be a substring of caption.cc- Compare case sensitively. If true, both text and caption are- Returns:
- JFrame instance or null if component was not found.
-
getAccessibleContext
MapsJFrame.getAccessibleContext()through queue -
getContentPane
MapsJFrame.getContentPane()through queue -
getDefaultCloseOperation
public int getDefaultCloseOperation()MapsJFrame.getDefaultCloseOperation()through queue -
getGlassPane
MapsJFrame.getGlassPane()through queue -
getJMenuBar
MapsJFrame.getJMenuBar()through queue -
getLayeredPane
MapsJFrame.getLayeredPane()through queue -
getRootPane
MapsJFrame.getRootPane()through queue -
setContentPane
MapsJFrame.setContentPane(Container)through queue -
setDefaultCloseOperation
public void setDefaultCloseOperation(int i) MapsJFrame.setDefaultCloseOperation(int)through queue -
setGlassPane
MapsJFrame.setGlassPane(Component)through queue -
setJMenuBar
MapsJFrame.setJMenuBar(JMenuBar)through queue -
setLayeredPane
MapsJFrame.setLayeredPane(JLayeredPane)through queue
-