|
|||||||||
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.DialogOperator
public class DialogOperator
Timeouts used:
DialogWaiter.WaitDialogTimeout - time to wait dialog displayed
DialogWaiter.AfterDialogTimeout - time to sleep after dialog has been dispayed
ComponentOperator.WaitStateTimeout - time to wait for title
.
Timeouts
Nested Class Summary | |
---|---|
static class |
DialogOperator.DialogByTitleFinder
Allows to find component by title. |
static class |
DialogOperator.DialogFinder
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.MapDoubleAction, Operator.MapFloatAction, Operator.MapCharacterAction, Operator.MapIntegerAction, Operator.MapLongAction, Operator.MapVoidAction, Operator.NoBlockingAction, Operator.PathParser, Operator.StringComparator |
Field Summary | |
---|---|
static java.lang.String |
IS_MODAL_DPROP
Identifier for a modal property. |
static java.lang.String |
IS_RESIZABLE_DPROP
Identifier for a resizable property. |
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 | |
---|---|
DialogOperator()
Constructor. |
|
DialogOperator(ComponentChooser chooser)
Constructs a DialogOperator object. |
|
DialogOperator(ComponentChooser chooser,
int index)
Constructs a DialogOperator object. |
|
DialogOperator(ComponentChooser chooser,
int index,
Operator env)
Constructs a DialogOperator object. |
|
DialogOperator(java.awt.Dialog w)
Constructs a DialogOperator object. |
|
DialogOperator(int index)
Constructor. |
|
DialogOperator(java.lang.String title)
Constructor. |
|
DialogOperator(java.lang.String title,
int index)
Constructor. |
|
DialogOperator(java.lang.String title,
int index,
Operator env)
Constructor. |
|
DialogOperator(WindowOperator owner)
Constructor. |
|
DialogOperator(WindowOperator owner,
ComponentChooser chooser)
Constructs a DialogOperator object. |
|
DialogOperator(WindowOperator owner,
ComponentChooser chooser,
int index)
Constructs a DialogOperator object. |
|
DialogOperator(WindowOperator owner,
int index)
Constructor. |
|
DialogOperator(WindowOperator owner,
java.lang.String title)
Uses owner's timeout and output for waiting and to init operator. |
|
DialogOperator(WindowOperator owner,
java.lang.String title,
int index)
Constructor. |
Method Summary | |
---|---|
java.util.Hashtable |
getDump()
Returns information about component. |
java.lang.String |
getTitle()
Maps Dialog.getTitle() through queue |
boolean |
isModal()
Maps Dialog.isModal() through queue |
boolean |
isResizable()
Maps Dialog.isResizable() through queue |
void |
setModal(boolean b)
Maps Dialog.setModal(boolean) through queue |
void |
setResizable(boolean b)
Maps Dialog.setResizable(boolean) through queue |
void |
setTitle(java.lang.String string)
Maps Dialog.setTitle(String) through queue |
protected static java.awt.Dialog |
waitDialog(ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses. |
protected static java.awt.Dialog |
waitDialog(java.awt.Window owner,
ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses. |
protected static java.awt.Dialog |
waitDialog(WindowOperator owner,
ComponentChooser chooser,
int index)
A method to be used from subclasses. |
void |
waitTitle(java.lang.String title)
Waits for title. |
Methods inherited from class org.netbeans.jemmy.operators.WindowOperator |
---|
activate, addWindowListener, applyResourceBundle, applyResourceBundle, close, copyEnvironment, dispose, findSubWindow, findSubWindow, findWindow, findWindow, findWindow, findWindow, getFocusOwner, getOutput, getOwnedWindows, getOwner, getWarningString, isActive, isFocused, move, pack, removeWindowListener, resize, setOutput, 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 IS_MODAL_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String IS_RESIZABLE_DPROP
getDump()
,
Constant Field ValuesConstructor Detail |
---|
public DialogOperator(java.awt.Dialog w)
w
- windowpublic DialogOperator(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 DialogOperator(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public DialogOperator(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.public DialogOperator(WindowOperator owner, ComponentChooser chooser, int index)
owner
- window - ownerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public DialogOperator(WindowOperator owner, ComponentChooser chooser)
owner
- window - ownerchooser
- a component chooser specifying searching criteria.public DialogOperator(WindowOperator owner, java.lang.String title, int index)
index+1
'th java.awt.Dialog
that shows, is
owned by the window managed by the WindowOperator
owner
, and that has the desired title. Uses owner's
timeout and output for waiting and to init this operator.
owner
- Operator pointing to a window owner.title
- The desired title.index
- Ordinal index. The first dialog has index
0.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public DialogOperator(WindowOperator owner, java.lang.String title)
java.awt.Dialog
that shows, is
owned by the window managed by the WindowOperator
owner
, and that has the desired title. Uses owner's
timeout and output for waiting and to init this operator.
owner
- Operator pointing to a window owner.title
- The desired title.
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
public DialogOperator(WindowOperator owner, int index)
owner
- Operator pointing to a window owner.index
- Ordinal component index.
TimeoutExpiredException
public DialogOperator(WindowOperator owner)
owner
- Operator pointing to a window owner.
TimeoutExpiredException
public DialogOperator(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 DialogOperator(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 DialogOperator(java.lang.String title)
title
- a window title
TimeoutExpiredException
Operator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties.getCurrentTimeouts()
,
JemmyProperties.getCurrentOutput()
public DialogOperator(int index)
index
- Ordinal component index.
TimeoutExpiredException
public DialogOperator()
TimeoutExpiredException
Method Detail |
---|
public void waitTitle(java.lang.String title)
title
- Title to wait for.public java.util.Hashtable getDump()
getDump
in class ComponentOperator
public java.lang.String getTitle()
Dialog.getTitle()
through queue
public boolean isModal()
Dialog.isModal()
through queue
public boolean isResizable()
Dialog.isResizable()
through queue
public void setModal(boolean b)
Dialog.setModal(boolean)
through queue
public void setResizable(boolean b)
Dialog.setResizable(boolean)
through queue
public void setTitle(java.lang.String string)
Dialog.setTitle(String)
through queue
protected static java.awt.Dialog waitDialog(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.Dialog waitDialog(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.Dialog waitDialog(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 |