public class FrameOperator extends WindowOperator implements Outputable
Timeouts
Modifier and Type | Class and Description |
---|---|
static class |
FrameOperator.FrameByTitleFinder
Allows to find component by title.
|
static class |
FrameOperator.FrameFinder
Checks component type.
|
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
IS_RESIZABLE_DPROP
Identifier for a resizable property.
|
static java.lang.String |
STATE_DPROP
Identifier for a state property.
|
static java.lang.String |
STATE_ICONIFIED_DPROP_VALUE
Identifier for a "iconified state" state property value.
|
static java.lang.String |
STATE_NORMAL_DPROP_VALUE
Identifier for a "normal state" state property value.
|
static java.lang.String |
TITLE_DPROP
Identifier for a title property.
|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
FrameOperator()
Constructor.
|
FrameOperator(ComponentChooser chooser)
Constructs a FrameOperator object.
|
FrameOperator(ComponentChooser chooser,
int index)
Constructs a FrameOperator object.
|
FrameOperator(ComponentChooser chooser,
int index,
Operator env)
Constructs a FrameOperator object.
|
FrameOperator(java.awt.Frame w)
Constructs a FrameOperator object.
|
FrameOperator(int index)
Constructor.
|
FrameOperator(java.lang.String title)
Constructor.
|
FrameOperator(java.lang.String title,
int index)
Constructor.
|
FrameOperator(java.lang.String title,
int index,
Operator env)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
void |
deiconify()
Deiconifies the frame.
|
void |
demaximize()
Demaximizes the frame.
|
java.util.Hashtable |
getDump()
Returns information about component.
|
java.awt.Image |
getIconImage()
Maps
Frame.getIconImage() through queue |
java.awt.MenuBar |
getMenuBar()
Maps
Frame.getMenuBar() through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
int |
getState()
Maps
Frame.getState() through queue |
java.lang.String |
getTitle()
Maps
Frame.getTitle() through queue |
void |
iconify()
Iconifies the frame.
|
boolean |
isResizable()
Maps
Frame.isResizable() through queue |
void |
maximize()
Maximizes the frame.
|
void |
setIconImage(java.awt.Image image)
Maps
Frame.setIconImage(Image) through queue |
void |
setMenuBar(java.awt.MenuBar menuBar)
Maps
Frame.setMenuBar(MenuBar) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers.
|
void |
setResizable(boolean b)
Maps
Frame.setResizable(boolean) through queue |
void |
setState(int i)
Maps
Frame.setState(int) through queue |
void |
setTitle(java.lang.String string)
Maps
Frame.setTitle(String) through queue |
protected static java.awt.Frame |
waitFrame(ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses.
|
void |
waitState(int state)
Waits for the frame to have a specified state.
|
void |
waitTitle(java.lang.String title)
Waits for title.
|
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 static final java.lang.String TITLE_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String STATE_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String STATE_NORMAL_DPROP_VALUE
getDump()
,
Constant Field Valuespublic static final java.lang.String STATE_ICONIFIED_DPROP_VALUE
getDump()
,
Constant Field Valuespublic static final java.lang.String IS_RESIZABLE_DPROP
getDump()
,
Constant Field Valuespublic FrameOperator(java.awt.Frame w)
w
- windowpublic FrameOperator(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 FrameOperator(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public FrameOperator(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.public FrameOperator(java.lang.String title, int index, Operator env)
title
- a window titleindex
- Ordinal component index.env
- an operator to copy environment from.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public FrameOperator(java.lang.String title, int index)
title
- a window titleindex
- Ordinal component index.TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties#getCurrentTimeouts()
,
JemmyProperties#getCurrentOutput()
public FrameOperator(java.lang.String title)
title
- a window titleTimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties#getCurrentTimeouts()
,
JemmyProperties#getCurrentOutput()
public FrameOperator(int index)
index
- Ordinal component index.TimeoutExpiredException
public FrameOperator()
TimeoutExpiredException
public void setOutput(TestOut out)
Outputable
setOutput
in interface Outputable
setOutput
in class WindowOperator
out
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class WindowOperator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public void copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment
in class WindowOperator
anotherOperator
- an operator to copy the environment to.public void waitTitle(java.lang.String title)
title
- Title to wait for.public void iconify()
public void deiconify()
public void maximize()
public void demaximize()
public void waitState(int state)
state
- a state for the frame to have.public java.util.Hashtable getDump()
getDump
in class ComponentOperator
public java.awt.Image getIconImage()
Frame.getIconImage()
through queuepublic java.awt.MenuBar getMenuBar()
Frame.getMenuBar()
through queuepublic int getState()
Frame.getState()
through queuepublic java.lang.String getTitle()
Frame.getTitle()
through queuepublic boolean isResizable()
Frame.isResizable()
through queuepublic void setIconImage(java.awt.Image image)
Frame.setIconImage(Image)
through queuepublic void setMenuBar(java.awt.MenuBar menuBar)
Frame.setMenuBar(MenuBar)
through queuepublic void setResizable(boolean b)
Frame.setResizable(boolean)
through queuepublic void setState(int i)
Frame.setState(int)
through queuepublic void setTitle(java.lang.String string)
Frame.setTitle(String)
through queueprotected static java.awt.Frame waitFrame(ComponentChooser chooser, int index, Timeouts timeouts, TestOut output)
chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.timeouts
- timeouts to be used during the waiting.output
- an output to be used during the waiting.TimeoutExpiredException