|
|||||||||
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
org.netbeans.jemmy.operators.JDialogOperator
public class JDialogOperator
Timeouts used:
DialogWaiter.WaitDialogTimeout - time to wait dialog displayed
DialogWaiter.AfterDialogTimeout - time to sleep after dialog has been dispayed
.
Timeouts
Nested Class Summary | |
---|---|
static class |
JDialogOperator.JDialogFinder
Checks component type. |
Nested classes/interfaces inherited from class org.netbeans.jemmy.operators.DialogOperator |
---|
DialogOperator.DialogByTitleFinder, DialogOperator.DialogFinder |
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.DialogOperator |
---|
IS_MODAL_DPROP, IS_RESIZABLE_DPROP, TITLE_DPROP |
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 | |
---|---|
JDialogOperator()
Constructor. |
|
JDialogOperator(ComponentChooser chooser)
Constructs a JDialogOperator object. |
|
JDialogOperator(ComponentChooser chooser,
int index)
Constructs a JDialogOperator object. |
|
JDialogOperator(ComponentChooser chooser,
int index,
Operator env)
Constructs a JDialogOperator object. |
|
JDialogOperator(int index)
Constructor. |
|
JDialogOperator(JDialog w)
Constructor. |
|
JDialogOperator(String title)
Constructor. |
|
JDialogOperator(String title,
int index)
Constructor. |
|
JDialogOperator(String title,
int index,
Operator env)
Constructor. |
|
JDialogOperator(WindowOperator owner)
Constructor. |
|
JDialogOperator(WindowOperator owner,
ComponentChooser chooser)
Constructs a JDialogOperator object. |
|
JDialogOperator(WindowOperator owner,
ComponentChooser chooser,
int index)
Constructs a JDialogOperator object. |
|
JDialogOperator(WindowOperator owner,
int index)
Constructor. |
|
JDialogOperator(WindowOperator owner,
String title)
Constructor. |
|
JDialogOperator(WindowOperator owner,
String title,
int index)
Constructor. |
Method Summary | |
---|---|
static JDialog |
findJDialog(ComponentChooser chooser)
Searches a dialog. |
static JDialog |
findJDialog(ComponentChooser chooser,
int index)
Searches an index'th dialog. |
static JDialog |
findJDialog(String title,
boolean ce,
boolean cc)
Searches a dialog by title. |
static JDialog |
findJDialog(String title,
boolean ce,
boolean cc,
int index)
Searches an index'th dialog by title. |
static JDialog |
findJDialog(Window owner,
ComponentChooser chooser)
Searches a dialog between owner's owned windows. |
static JDialog |
findJDialog(Window owner,
ComponentChooser chooser,
int index)
Searches an index'th dialog between owner's owned windows. |
static JDialog |
findJDialog(Window owner,
String title,
boolean ce,
boolean cc)
Searches a dialog by title between owner's owned windows. |
static JDialog |
findJDialog(Window owner,
String title,
boolean ce,
boolean cc,
int index)
Searches an index'th dialog by title between owner's owned windows. |
AccessibleContext |
getAccessibleContext()
Maps JDialog.getAccessibleContext() through queue |
Container |
getContentPane()
Maps JDialog.getContentPane() through queue |
int |
getDefaultCloseOperation()
Maps JDialog.getDefaultCloseOperation() through queue |
Component |
getGlassPane()
Maps JDialog.getGlassPane() through queue |
JMenuBar |
getJMenuBar()
Maps JDialog.getJMenuBar() through queue |
JLayeredPane |
getLayeredPane()
Maps JDialog.getLayeredPane() through queue |
JRootPane |
getRootPane()
Maps JDialog.getRootPane() through queue |
static Dialog |
getTopModalDialog()
Searhs for modal dialog currently staying on top. |
void |
setContentPane(Container container)
Maps JDialog.setContentPane(Container) through queue |
void |
setDefaultCloseOperation(int i)
Maps JDialog.setDefaultCloseOperation(int) through queue |
void |
setGlassPane(Component component)
Maps JDialog.setGlassPane(Component) through queue |
void |
setJMenuBar(JMenuBar jMenuBar)
Maps JDialog.setJMenuBar(JMenuBar) through queue |
void |
setLayeredPane(JLayeredPane jLayeredPane)
Maps JDialog.setLayeredPane(JLayeredPane) through queue |
void |
setLocationRelativeTo(Component component)
Maps JDialog.setLocationRelativeTo(Component) through queue |
static JDialog |
waitJDialog(ComponentChooser chooser)
Waits a dialog. |
static JDialog |
waitJDialog(ComponentChooser chooser,
int index)
Waits an index'th dialog. |
protected static JDialog |
waitJDialog(ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses. |
static JDialog |
waitJDialog(String title,
boolean ce,
boolean cc)
Waits a dialog by title. |
static JDialog |
waitJDialog(String title,
boolean ce,
boolean cc,
int index)
Waits an index'th dialog by title. |
static JDialog |
waitJDialog(Window owner,
ComponentChooser chooser)
Waits a dialog between owner's owned windows. |
static JDialog |
waitJDialog(Window owner,
ComponentChooser chooser,
int index)
Waits an index'th dialog between owner's owned windows. |
protected static JDialog |
waitJDialog(Window owner,
ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses. |
protected static JDialog |
waitJDialog(WindowOperator owner,
ComponentChooser chooser,
int index)
A method to be used from subclasses. |
static JDialog |
waitJDialog(Window owner,
String title,
boolean ce,
boolean cc)
Waits a dialog by title between owner's owned windows. |
static JDialog |
waitJDialog(Window owner,
String title,
boolean ce,
boolean cc,
int index)
Waits an index'th dialog by title between owner's owned windows. |
Methods inherited from class org.netbeans.jemmy.operators.DialogOperator |
---|
getDump, getTitle, isModal, isResizable, setModal, setResizable, setTitle, waitDialog, waitDialog, waitDialog, waitTitle |
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, requestClose, requestCloseAndThenHide, 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 |
Constructor Detail |
---|
public JDialogOperator(JDialog w)
w
- a componentpublic JDialogOperator(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 JDialogOperator(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JDialogOperator(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.public JDialogOperator(WindowOperator owner, ComponentChooser chooser, int index)
owner
- window - ownerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public JDialogOperator(WindowOperator owner, ComponentChooser chooser)
owner
- window - ownerchooser
- a component chooser specifying searching criteria.public JDialogOperator(WindowOperator owner, String title, int index)
owner
- Operator pointing to a window owner.title
- The desired title.index
- Ordinal index. The first dialog has index
0.Operator.isCaptionEqual(String, String, boolean, boolean)
public JDialogOperator(WindowOperator owner, String title)
owner
- Operator pointing to a window owner.title
- The desired title.Operator.isCaptionEqual(String, String, boolean, boolean)
public JDialogOperator(WindowOperator owner, int index)
owner
- Operator pointing to a window owner.index
- Ordinal component index.public JDialogOperator(WindowOperator owner)
owner
- Operator pointing to a window owner.public JDialogOperator(String title, int index, Operator env)
title
- a window titleindex
- Ordinal component index.env
- an operator to copy environment from.Operator.isCaptionEqual(String, String, boolean, boolean)
public JDialogOperator(String title, int index)
title
- a window titleindex
- Ordinal component index.Operator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties.getCurrentTimeouts()
,
JemmyProperties.getCurrentOutput()
public JDialogOperator(String title)
title
- a window titleOperator.isCaptionEqual(String, String, boolean, boolean)
,
JemmyProperties.getCurrentTimeouts()
,
JemmyProperties.getCurrentOutput()
public JDialogOperator(int index)
index
- Ordinal component index.public JDialogOperator()
Method Detail |
---|
public static JDialog findJDialog(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public static JDialog findJDialog(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.
public static JDialog findJDialog(String title, boolean ce, boolean cc, int index)
title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption areindex
- an index between appropriate ones.
public static JDialog findJDialog(String title, boolean ce, boolean cc)
title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption are
public static JDialog findJDialog(Window owner, ComponentChooser chooser, int index)
owner
- Window - dialog owner.chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public static JDialog findJDialog(Window owner, ComponentChooser chooser)
owner
- Window - dialog owner.chooser
- a component chooser specifying searching criteria.
public static JDialog findJDialog(Window owner, String title, boolean ce, boolean cc, int index)
owner
- Window - dialog owner.title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption areindex
- an index between appropriate ones.
public static JDialog findJDialog(Window owner, String title, boolean ce, boolean cc)
owner
- Window - dialog owner.title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption are
public static JDialog waitJDialog(ComponentChooser chooser, int index)
chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public static JDialog waitJDialog(ComponentChooser chooser)
chooser
- a component chooser specifying searching criteria.
public static JDialog waitJDialog(String title, boolean ce, boolean cc, int index)
title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption areindex
- an index between appropriate ones.
public static JDialog waitJDialog(String title, boolean ce, boolean cc)
title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption are
public static JDialog waitJDialog(Window owner, ComponentChooser chooser, int index)
owner
- Window - dialog owner.chooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.
public static JDialog waitJDialog(Window owner, ComponentChooser chooser)
owner
- Window - dialog owner.chooser
- a component chooser specifying searching criteria.
public static JDialog waitJDialog(Window owner, String title, boolean ce, boolean cc, int index)
owner
- Window - dialog owner.title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption areindex
- an index between appropriate ones.
public static JDialog waitJDialog(Window owner, String title, boolean ce, boolean cc)
owner
- Window - dialog owner.title
- Dialog titlece
- Compare exactly. If true, text can be a substring of caption.cc
- Compare case sensitively. If true, both text and caption are
public static Dialog getTopModalDialog()
public AccessibleContext getAccessibleContext()
JDialog.getAccessibleContext()
through queue
public Container getContentPane()
JDialog.getContentPane()
through queue
public int getDefaultCloseOperation()
JDialog.getDefaultCloseOperation()
through queue
public Component getGlassPane()
JDialog.getGlassPane()
through queue
public JMenuBar getJMenuBar()
JDialog.getJMenuBar()
through queue
public JLayeredPane getLayeredPane()
JDialog.getLayeredPane()
through queue
public JRootPane getRootPane()
JDialog.getRootPane()
through queue
public void setContentPane(Container container)
JDialog.setContentPane(Container)
through queue
public void setDefaultCloseOperation(int i)
JDialog.setDefaultCloseOperation(int)
through queue
public void setGlassPane(Component component)
JDialog.setGlassPane(Component)
through queue
public void setJMenuBar(JMenuBar jMenuBar)
JDialog.setJMenuBar(JMenuBar)
through queue
public void setLayeredPane(JLayeredPane jLayeredPane)
JDialog.setLayeredPane(JLayeredPane)
through queue
public void setLocationRelativeTo(Component component)
JDialog.setLocationRelativeTo(Component)
through queue
protected static JDialog waitJDialog(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 JDialog waitJDialog(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.
TimeoutExpiredException
protected static JDialog waitJDialog(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 |