|
|||||||||
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
public class WindowOperator
Timeouts used:
WindowWaiter.WaitWindowTimeout - time to wait window displayed
WindowWaiter.AfterWindowTimeout - time to sleep after window has been dispayed
.
Timeouts
Nested Class Summary |
---|
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 |
---|
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 | |
---|---|
WindowOperator()
Constructor. |
|
WindowOperator(int index)
Constructor. |
|
WindowOperator(int index,
Operator env)
Constructor. |
|
WindowOperator(java.awt.Window w)
Constructor. |
|
WindowOperator(WindowOperator owner)
Constructor. |
|
WindowOperator(WindowOperator owner,
ComponentChooser chooser)
Constructs a DialogOperator object. |
|
WindowOperator(WindowOperator owner,
ComponentChooser chooser,
int index)
Constructs a DialogOperator object. |
|
WindowOperator(WindowOperator owner,
int index)
Constructor. |
Method Summary | |
---|---|
void |
activate()
Activates the window. |
void |
addWindowListener(java.awt.event.WindowListener windowListener)
Maps Window.addWindowListener(WindowListener) through queue |
void |
applyResourceBundle(java.util.ResourceBundle resourceBundle)
Maps Window.applyResourceBundle(ResourceBundle) through queue |
void |
applyResourceBundle(java.lang.String string)
Maps Window.applyResourceBundle(String) through queue |
void |
close()
Closes the window. |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts, visualizer) from another operator. |
void |
dispose()
Maps Window.dispose() through queue |
java.awt.Window |
findSubWindow(ComponentChooser chooser)
Searches a window between windows owned by this window. |
java.awt.Window |
findSubWindow(ComponentChooser chooser,
int index)
Searches an index'th window between windows owned by this window. |
static java.awt.Window |
findWindow(ComponentChooser chooser)
Searches a window. |
static java.awt.Window |
findWindow(ComponentChooser chooser,
int index)
Searches an index'th window. |
static java.awt.Window |
findWindow(java.awt.Window owner,
ComponentChooser chooser)
Searches a window. |
static java.awt.Window |
findWindow(java.awt.Window owner,
ComponentChooser chooser,
int index)
Searches an index'th window. |
java.awt.Component |
getFocusOwner()
Maps Window.getFocusOwner() through queue |
TestOut |
getOutput()
Returns print output streams or writers. |
java.awt.Window[] |
getOwnedWindows()
Maps Window.getOwnedWindows() through queue |
java.awt.Window |
getOwner()
Maps Window.getOwner() through queue |
java.lang.String |
getWarningString()
Maps Window.getWarningString() through queue |
boolean |
isActive()
Maps Window.isActive() through queue. |
boolean |
isFocused()
Maps Window.isFocused() through queue. |
void |
move(int x,
int y)
Moves the window to another location. |
void |
pack()
Maps Window.pack() through queue |
void |
removeWindowListener(java.awt.event.WindowListener windowListener)
Maps Window.removeWindowListener(WindowListener) through queue |
void |
resize(int width,
int height)
Resizes the window. |
void |
setOutput(TestOut out)
Defines print output streams or writers. |
void |
toBack()
Maps Window.toBack() through queue |
void |
toFront()
Maps Window.toFront() through queue |
void |
waitClosed()
Waits the window to be closed. |
java.awt.Window |
waitSubWindow(ComponentChooser chooser)
Waits a window between windows owned by this window. |
java.awt.Window |
waitSubWindow(ComponentChooser chooser,
int index)
Waits an index'th window between windows owned by this window. |
static java.awt.Window |
waitWindow(ComponentChooser chooser)
Waits a window. |
static java.awt.Window |
waitWindow(ComponentChooser chooser,
int index)
Waits an index'th window. |
protected static java.awt.Window |
waitWindow(ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses. |
static java.awt.Window |
waitWindow(java.awt.Window owner,
ComponentChooser chooser)
Waits a window. |
static java.awt.Window |
waitWindow(java.awt.Window owner,
ComponentChooser chooser,
int index)
Waits an index'th window. |
protected static java.awt.Window |
waitWindow(java.awt.Window owner,
ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses. |
protected static java.awt.Window |
waitWindow(WindowOperator owner,
ComponentChooser chooser,
int index)
A method to be used from subclasses. |
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 |
Constructor Detail |
---|
public WindowOperator(java.awt.Window w)
w
- a componentpublic WindowOperator(WindowOperator owner, ComponentChooser chooser, int index)
owner
- window - ownerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public WindowOperator(WindowOperator owner, ComponentChooser chooser)
owner
- window - ownerchooser
- a component chooser specifying searching criteria.public WindowOperator(WindowOperator owner, int index)
owner
- Operator pointing on a window owner.index
- an index between appropriate ones.
TimeoutExpiredException
public WindowOperator(WindowOperator owner)
owner
- Operator pointing on a window owner.
TimeoutExpiredException
public WindowOperator(int index, Operator env)
index
- an index between appropriate ones.env
- an operator to copy environment from.
TimeoutExpiredException
public WindowOperator(int index)
index
- an index between appropriate ones.
TimeoutExpiredException
JemmyProperties.getCurrentTimeouts()
,
JemmyProperties.getCurrentOutput()
public WindowOperator()
TimeoutExpiredException
JemmyProperties.getCurrentTimeouts()
,
JemmyProperties.getCurrentOutput()
Method Detail |
---|
public static java.awt.Window findWindow(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public static java.awt.Window findWindow(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.
public static java.awt.Window findWindow(java.awt.Window owner, ComponentChooser chooser, int index)
owner
- Window - owner.chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public static java.awt.Window findWindow(java.awt.Window owner, ComponentChooser chooser)
owner
- Window - owner.chooser
- a component chooser specifying searching criteria.
public static java.awt.Window waitWindow(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
TimeoutExpiredException
public static java.awt.Window waitWindow(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.
TimeoutExpiredException
public static java.awt.Window waitWindow(java.awt.Window owner, ComponentChooser chooser, int index)
owner
- Window - owner.chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
TimeoutExpiredException
public static java.awt.Window waitWindow(java.awt.Window owner, ComponentChooser chooser)
owner
- Window - owner.chooser
- a component chooser specifying searching criteria.
TimeoutExpiredException
public void setOutput(TestOut out)
Outputable
setOutput
in interface Outputable
setOutput
in class ContainerOperator
out
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class ContainerOperator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public void copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment
in class ComponentOperator
anotherOperator
- an operator to copy the environment to.public void activate()
public void close()
public void move(int x, int y)
x
- coordinate in screen coordinate systemy
- coordinate in screen coordinate systempublic void resize(int width, int height)
width
- new widthheight
- new heightpublic java.awt.Window findSubWindow(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public java.awt.Window findSubWindow(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.
public java.awt.Window waitSubWindow(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public java.awt.Window waitSubWindow(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.
public void waitClosed()
public void addWindowListener(java.awt.event.WindowListener windowListener)
Window.addWindowListener(WindowListener)
through queue
public void applyResourceBundle(java.lang.String string)
Window.applyResourceBundle(String)
through queue
public void applyResourceBundle(java.util.ResourceBundle resourceBundle)
Window.applyResourceBundle(ResourceBundle)
through queue
public void dispose()
Window.dispose()
through queue
public java.awt.Component getFocusOwner()
Window.getFocusOwner()
through queue
public java.awt.Window[] getOwnedWindows()
Window.getOwnedWindows()
through queue
public java.awt.Window getOwner()
Window.getOwner()
through queue
public java.lang.String getWarningString()
Window.getWarningString()
through queue
public void pack()
Window.pack()
through queue
public void removeWindowListener(java.awt.event.WindowListener windowListener)
Window.removeWindowListener(WindowListener)
through queue
public void toBack()
Window.toBack()
through queue
public void toFront()
Window.toFront()
through queue
public boolean isFocused()
Window.isFocused()
through queue.
public boolean isActive()
Window.isActive()
through queue.
protected static java.awt.Window waitWindow(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.
protected static java.awt.Window waitWindow(WindowOperator owner, ComponentChooser chooser, int index)
owner
's timeouts and output during the waiting.
owner
- a window - dialog owner.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.
protected static java.awt.Window waitWindow(java.awt.Window owner, ComponentChooser chooser, int index, Timeouts timeouts, TestOut output)
owner
- a window - dialog owner.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |