|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
org.netbeans.jemmy.operators.ContainerOperator
org.netbeans.jemmy.operators.WindowOperator
org.netbeans.jemmy.operators.FrameOperator
public class FrameOperator
Timeouts used:
FrameWaiter.WaitFrameTimeout - time to wait frame displayed
FrameWaiter.AfterFrameTimeout - time to sleep after frame has been dispayed
ComponentOperator.WaitStateTimeout - time to wait for text
.
Timeouts
Nested Class Summary | |
---|---|
static class |
FrameOperator.FrameByTitleFinder
Allows to find component by title. |
static class |
FrameOperator.FrameFinder
Checks component type. |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.ContainerOperator |
---|
ContainerOperator.ContainerFinder |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.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 | |
---|---|
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. |
Fields inherited from class org.netbeans.jemmy.operators.ComponentOperator |
---|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROP |
Fields inherited from class org.netbeans.jemmy.operators.Operator |
---|
CLASS_DPROP, TO_STRING_DPROP |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.netbeans.jemmy.operators.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, waitWindow |
Methods inherited from class org.netbeans.jemmy.operators.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, waitSubComponent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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 ValuesConstructor Detail |
---|
public 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 title
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties#getCurrentTimeouts()
,
JemmyProperties#getCurrentOutput()
public FrameOperator(int index)
index
- Ordinal component index.
TimeoutExpiredException
public FrameOperator()
TimeoutExpiredException
Method Detail |
---|
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 queue
public java.awt.MenuBar getMenuBar()
Frame.getMenuBar()
through queue
public int getState()
Frame.getState()
through queue
public java.lang.String getTitle()
Frame.getTitle()
through queue
public boolean isResizable()
Frame.isResizable()
through queue
public void setIconImage(java.awt.Image image)
Frame.setIconImage(Image)
through queue
public void setMenuBar(java.awt.MenuBar menuBar)
Frame.setMenuBar(MenuBar)
through queue
public void setResizable(boolean b)
Frame.setResizable(boolean)
through queue
public void setState(int i)
Frame.setState(int)
through queue
public void setTitle(java.lang.String string)
Frame.setTitle(String)
through queue
protected 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |