public class DialogOperator extends WindowOperator
Timeouts| Modifier and Type | Class and Description |
|---|---|
static class |
DialogOperator.DialogByTitleFinder
Allows to find component by title.
|
static class |
DialogOperator.DialogFinder
Checks component type.
|
ContainerOperator.ContainerFinderOperator.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_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.
|
HEIGHT_DPROP, IS_SHOWING_DPROP, IS_VISIBLE_DPROP, NAME_DPROP, WIDTH_DPROP, X_DPROP, Y_DPROPCLASS_DPROP, TO_STRING_DPROP| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
activate, addWindowListener, applyResourceBundle, applyResourceBundle, close, copyEnvironment, dispose, findSubWindow, findSubWindow, findWindow, findWindow, findWindow, findWindow, getFocusOwner, getOutput, getOwnedWindows, getOwner, getWarningString, isActive, isFocused, move, pack, removeWindowListener, requestClose, requestCloseAndThenHide, resize, setOutput, toBack, toFront, waitClosed, waitSubWindow, waitSubWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindow, waitWindowadd, 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, waitSubComponentactivateWindow, 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, findComponents, 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, typedKey, typeKey, typeKey, typeKey, update, validate, waitComponent, waitComponent, waitComponent, waitComponent, waitComponentEnabled, waitComponentShowing, waitComponentVisible, waitHasFocus, wtComponentEnabledaddOperatorPackage, 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, waitStatepublic 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 Valuespublic 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.TimeoutExpiredExceptionOperator.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.TimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean)public DialogOperator(WindowOperator owner, int index)
owner - Operator pointing to a window owner.index - Ordinal component index.TimeoutExpiredExceptionpublic DialogOperator(WindowOperator owner)
owner - Operator pointing to a window owner.TimeoutExpiredExceptionpublic DialogOperator(java.lang.String title,
int index,
Operator env)
title - a window titleindex - Ordinal component index.env - an operator to copy environment from.TimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean)public DialogOperator(java.lang.String title,
int index)
title - a window titleindex - Ordinal component index.TimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean),
JemmyProperties.getCurrentTimeouts(),
JemmyProperties.getCurrentOutput()public DialogOperator(java.lang.String title)
title - a window titleTimeoutExpiredExceptionOperator.isCaptionEqual(String, String, boolean, boolean),
JemmyProperties.getCurrentTimeouts(),
JemmyProperties.getCurrentOutput()public DialogOperator(int index)
index - Ordinal component index.TimeoutExpiredExceptionpublic DialogOperator()
TimeoutExpiredExceptionpublic void waitTitle(java.lang.String title)
title - Title to wait for.public java.util.Hashtable getDump()
getDump in class ComponentOperatorpublic java.lang.String getTitle()
Dialog.getTitle() through queuepublic boolean isModal()
Dialog.isModal() through queuepublic boolean isResizable()
Dialog.isResizable() through queuepublic void setModal(boolean b)
Dialog.setModal(boolean) through queuepublic void setResizable(boolean b)
Dialog.setResizable(boolean) through queuepublic void setTitle(java.lang.String string)
Dialog.setTitle(String) through queueprotected 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.