Class ComponentOperator
java.lang.Object
org.netbeans.jemmy.operators.Operator
org.netbeans.jemmy.operators.ComponentOperator
- All Implemented Interfaces:
Outputable, Timeoutable
- Direct Known Subclasses:
ButtonOperator, CheckboxOperator, ChoiceOperator, ContainerOperator, LabelOperator, ListOperator, ScrollbarOperator, TextComponentOperator
Root class for all component operators.
Provides basic methods to operate with mouse and keyboard.
Almost all input methods can throw JemmyInputException or its subclass.
ComponentOperator and its subclasses has a lot of methods which name and parameters just like consistent component has. In this case operator class just invokes consistent component method through AWT Event Queue (invokeAndWait method).
Timeouts used:
ComponentOperator.PushKeyTimeout - time between key pressing and releasing
ComponentOperator.MouseClickTimeout - time between mouse pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait component enabled
ComponentOperator.BeforeDragTimeout - time to sleep before grag'n'drop operations
ComponentOperator.AfterDragTimeout - time to sleep after grag'n'drop operations
ComponentOperator.WaitFocusTimeout - time to wait component focus
ComponentOperator.WaitStateTimeout- time to wait component to be in some state. Typically used from methods like
.
Almost all input methods can throw JemmyInputException or its subclass.
ComponentOperator and its subclasses has a lot of methods which name and parameters just like consistent component has. In this case operator class just invokes consistent component method through AWT Event Queue (invokeAndWait method).
Timeouts used:
ComponentOperator.PushKeyTimeout - time between key pressing and releasing
ComponentOperator.MouseClickTimeout - time between mouse pressing and releasing
ComponentOperator.WaitComponentTimeout - time to wait component displayed
ComponentOperator.WaitComponentEnabledTimeout - time to wait component enabled
ComponentOperator.BeforeDragTimeout - time to sleep before grag'n'drop operations
ComponentOperator.AfterDragTimeout - time to sleep after grag'n'drop operations
ComponentOperator.WaitFocusTimeout - time to wait component focus
ComponentOperator.WaitStateTimeout- time to wait component to be in some state. Typically used from methods like
Operator.wait"something happened"(*).
- Author:
- Alexandre Iline (alexandre.iline@sun.com)
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class 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
FieldsModifier and TypeFieldDescriptionstatic final StringIdentifier for a height property.static final StringIdentifier for a showing property.static final StringIdentifier for a visible property.static final StringIdentifier for a name property.static final StringIdentifier for a width property.static final StringIdentifier for a x coordinate property.static final StringIdentifier for a y coordinate property.Fields inherited from class Operator
CLASS_DPROP, TO_STRING_DPROP -
Constructor Summary
ConstructorsConstructorDescriptionComponentOperator(Component comp) Constructor.Constructor.ComponentOperator(ContainerOperator cont, int index) Constructor.ComponentOperator(ContainerOperator cont, ComponentChooser chooser) Constructs a ComponentOperator object.ComponentOperator(ContainerOperator cont, ComponentChooser chooser, int index) Constructs a ComponentOperator object. -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.Use makeComponentVisible() instead.voidMapsComponent.add(PopupMenu)through queuevoidaddComponentListener(ComponentListener componentListener) MapsComponent.addComponentListener(ComponentListener)through queuevoidaddFocusListener(FocusListener focusListener) MapsComponent.addFocusListener(FocusListener)through queuevoidaddInputMethodListener(InputMethodListener inputMethodListener) MapsComponent.addInputMethodListener(InputMethodListener)through queuevoidaddKeyListener(KeyListener keyListener) MapsComponent.addKeyListener(KeyListener)through queuevoidaddMouseListener(MouseListener mouseListener) MapsComponent.addMouseListener(MouseListener)through queuevoidaddMouseMotionListener(MouseMotionListener mouseMotionListener) MapsComponent.addMouseMotionListener(MouseMotionListener)through queuevoidMapsComponent.addNotify()through queuevoidaddPropertyChangeListener(PropertyChangeListener propertyChangeListener) MapsComponent.addPropertyChangeListener(PropertyChangeListener)through queuevoidaddPropertyChangeListener(String string, PropertyChangeListener propertyChangeListener) MapsComponent.addPropertyChangeListener(String, PropertyChangeListener)through queueintcheckImage(Image image, int i, int i1, ImageObserver imageObserver) MapsComponent.checkImage(Image, int, int, ImageObserver)through queueintcheckImage(Image image, ImageObserver imageObserver) MapsComponent.checkImage(Image, ImageObserver)through queuevoidClicks for popup by popup mouse button at the component center.voidclickForPopup(int mouseButton) Clicks for popup at the component center.voidclickForPopup(int x, int y) Clicks for popup by popup mouse button.voidclickForPopup(int x, int y, int mouseButton) Clicks for popup.voidMakes siple mouse click on the component center by default mouse button with 0 modifiers.voidclickMouse(int clickCount) Makes mouse click on the component center by default mouse button with 0 modifiers.voidclickMouse(int clickCount, int mouseButton) Makes mouse click on the component center with 0 modifiers.voidclickMouse(int x, int y, int clickCount) Makes mouse click by default mouse button with 0 modifiers.voidclickMouse(int x, int y, int clickCount, int mouseButton) Makes mouse click with 0 modifiers.voidclickMouse(int x, int y, int clickCount, int mouseButton, int modifiers) Makes mouse click.voidclickMouse(int x, int y, int clickCount, int mouseButton, int modifiers, boolean forPopup) Makes mouse click.booleancontains(int i, int i1) MapsComponent.contains(int, int)through queuebooleanMapsComponent.contains(Point)through queuevoidcopyEnvironment(Operator anotherOperator) Copies all environment (output, timeouts, visualizer) from another operator.createImage(int i, int i1) MapsComponent.createImage(int, int)through queuecreateImage(ImageProducer imageProducer) MapsComponent.createImage(ImageProducer)through queuevoiddispatchEvent(AWTEvent aWTEvent) MapsComponent.dispatchEvent(AWTEvent)through queuevoiddoLayout()MapsComponent.doLayout()through queuevoiddragMouse(int x, int y) Drag mouse over the component with 0 modifiers and default mose button pressed.voiddragMouse(int x, int y, int mouseButton) Drag mouse over the component with 0 modifiers.voiddragMouse(int x, int y, int mouseButton, int modifiers) Drag mouse over the component.voiddragNDrop(int start_x, int start_y, int end_x, int end_y) Makes drag'n'drop operation by default mouse buttons with 0 modifiers.voiddragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton) Makes drag'n'drop operation with 0 modifiers.voiddragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton, int modifiers) Makes drag'n'drop operation.voidenableInputMethods(boolean b) MapsComponent.enableInputMethods(boolean)through queuevoidMove mouse inside the component.voidMove mouse outside the component.static ComponentfindComponent(Container cont, ComponentChooser chooser) Searches Component in container.static ComponentfindComponent(Container cont, ComponentChooser chooser, int index) Searches Component in container.floatMapsComponent.getAlignmentX()through queuefloatMapsComponent.getAlignmentY()through queueMapsComponent.getBackground()through queueMapsComponent.getBounds()through queueMapsComponent.getBounds(Rectangle)through queueintReturn the center x coordinate.intReturn the x coordinate which should be used for mouse operations by default.intReturn the center y coordinate.intReturn the y coordinate which should be used for mouse operations by default.MapsComponent.getColorModel()through queuegetComponentAt(int i, int i1) MapsComponent.getComponentAt(int, int)through queuegetComponentAt(Point point) MapsComponent.getComponentAt(Point)through queueMapsComponent.getComponentOrientation()through queuegetContainer(ComponentChooser chooser) Searches a container.Returns an array of containers for this component.MapsComponent.getCursor()through queueMapsComponent.getDropTarget()through queuegetDump()Returns information about component.Returnes org.netbeans.jemmy.EventDispatcher instance which is used to dispatch events.voidgetFocus()Gives input focus to the component.getFont()MapsComponent.getFont()through queuegetFontMetrics(Font font) MapsComponent.getFontMetrics(Font)through queueMapsComponent.getForeground()through queueMapsComponent.getGraphics()through queueintMapsComponent.getHeight()through queueMapsComponent.getInputContext()through queueMapsComponent.getInputMethodRequests()through queueMapsComponent.getLocale()through queueMapsComponent.getLocation()through queuegetLocation(Point point) MapsComponent.getLocation(Point)through queueMapsComponent.getLocationOnScreen()through queueMapsComponent.getMaximumSize()through queueMapsComponent.getMinimumSize()through queuegetName()MapsComponent.getName()through queueReturns print output streams or writers.MapsComponent.getParent()through queueMapsComponent.getPreferredSize()through queuegetSize()MapsComponent.getSize()through queueMapsComponent.getSize(Dimension)through queueReturns component.Return current timeouts.MapsComponent.getToolkit()through queueMapsComponent.getTreeLock()through queueintgetWidth()MapsComponent.getWidth()through queueSearches the window under component.intgetX()MapsComponent.getX()through queueintgetY()MapsComponent.getY()through queuebooleanhasFocus()MapsComponent.hasFocus()through queuebooleanimageUpdate(Image image, int i, int i1, int i2, int i3, int i4) MapsComponent.imageUpdate(Image, int, int, int, int, int)through queuevoidMapsComponent.invalidate()through queuebooleanMapsComponent.isDisplayable()through queuebooleanMapsComponent.isDoubleBuffered()through queuebooleanMapsComponent.isEnabled()through queuebooleanMapsComponent.isFocusTraversable()through queuebooleanMapsComponent.isLightweight()through queuebooleanisOpaque()MapsComponent.isOpaque()through queuebooleanMapsComponent.isShowing()through queuebooleanisValid()MapsComponent.isValid()through queuebooleanMapsComponent.isVisible()through queuevoidlist()MapsComponent.list()through queuevoidlist(PrintStream printStream) MapsComponent.list(PrintStream)through queuevoidlist(PrintStream printStream, int i) MapsComponent.list(PrintStream, int)through queuevoidlist(PrintWriter printWriter) MapsComponent.list(PrintWriter)through queuevoidlist(PrintWriter printWriter, int i) MapsComponent.list(PrintWriter, int)through queuevoidPrepares component for user input.voidmoveMouse(int x, int y) Move mouse over the component.voidMapsComponent.paint(Graphics)through queuevoidMapsComponent.paintAll(Graphics)through queuebooleanprepareImage(Image image, int i, int i1, ImageObserver imageObserver) MapsComponent.prepareImage(Image, int, int, ImageObserver)through queuebooleanprepareImage(Image image, ImageObserver imageObserver) MapsComponent.prepareImage(Image, ImageObserver)through queuevoidpressKey(int keyCode) Press key with no modifiers.voidpressKey(int keyCode, int modifiers) Press key.voidPress mouse.voidpressMouse(int x, int y) Press mouse.voidMapsComponent.print(Graphics)through queuevoidMapsComponent.printAll(Graphics)through queuevoidpushKey(int keyCode) Pushs key.voidpushKey(int keyCode, int modifiers) Pushs key.voidreleaseKey(int keyCode) Releases key with no modifiers.voidreleaseKey(int keyCode, int modifiers) Releases key.voidReleases mouse.voidreleaseMouse(int x, int y) Releases mouse.voidremove(MenuComponent menuComponent) MapsComponent.remove(MenuComponent)through queuevoidremoveComponentListener(ComponentListener componentListener) MapsComponent.removeComponentListener(ComponentListener)through queuevoidremoveFocusListener(FocusListener focusListener) MapsComponent.removeFocusListener(FocusListener)through queuevoidremoveInputMethodListener(InputMethodListener inputMethodListener) MapsComponent.removeInputMethodListener(InputMethodListener)through queuevoidremoveKeyListener(KeyListener keyListener) MapsComponent.removeKeyListener(KeyListener)through queuevoidremoveMouseListener(MouseListener mouseListener) MapsComponent.removeMouseListener(MouseListener)through queuevoidremoveMouseMotionListener(MouseMotionListener mouseMotionListener) MapsComponent.removeMouseMotionListener(MouseMotionListener)through queuevoidMapsComponent.removeNotify()through queuevoidremovePropertyChangeListener(PropertyChangeListener propertyChangeListener) MapsComponent.removePropertyChangeListener(PropertyChangeListener)through queuevoidremovePropertyChangeListener(String string, PropertyChangeListener propertyChangeListener) MapsComponent.removePropertyChangeListener(String, PropertyChangeListener)through queuevoidrepaint()MapsComponent.repaint()through queuevoidrepaint(int i, int i1, int i2, int i3) MapsComponent.repaint(int, int, int, int)through queuevoidrepaint(long l) MapsComponent.repaint(long)through queuevoidrepaint(long l, int i, int i1, int i2, int i3) MapsComponent.repaint(long, int, int, int, int)through queuevoidMapsComponent.requestFocus()through queuevoidsetBackground(Color color) MapsComponent.setBackground(Color)through queuevoidsetBounds(int i, int i1, int i2, int i3) MapsComponent.setBounds(int, int, int, int)through queuevoidMapsComponent.setBounds(Rectangle)through queuevoidsetComponentOrientation(ComponentOrientation componentOrientation) MapsComponent.setComponentOrientation(ComponentOrientation)through queuevoidMapsComponent.setCursor(Cursor)through queuevoidsetDropTarget(DropTarget dropTarget) MapsComponent.setDropTarget(DropTarget)through queuevoidsetEnabled(boolean b) MapsComponent.setEnabled(boolean)through queuevoidMapsComponent.setFont(Font)through queuevoidsetForeground(Color color) MapsComponent.setForeground(Color)through queuevoidMapsComponent.setLocale(Locale)through queuevoidsetLocation(int i, int i1) MapsComponent.setLocation(int, int)through queuevoidsetLocation(Point point) MapsComponent.setLocation(Point)through queuevoidMapsComponent.setName(String)through queuevoid/////////////////////////////////////////////////////voidsetSize(int i, int i1) MapsComponent.setSize(int, int)through queuevoidMapsComponent.setSize(Dimension)through queuevoidsetTimeouts(Timeouts timeouts) Defines current timeouts.voidsetVisible(boolean b) MapsComponent.setVisible(boolean)through queuevoidMapsComponent.transferFocus()through queuevoidtypeKey(char keyChar) Types one char.voidtypeKey(char keyChar, int modifiers) Types one char.voidtypeKey(int keyCode, char keyChar, int modifiers) Types one char.voidMapsComponent.update(Graphics)through queuevoidvalidate()MapsComponent.validate()through queuestatic ComponentwaitComponent(Container cont, ComponentChooser chooser) Waits Component in container.static ComponentwaitComponent(Container cont, ComponentChooser chooser, int index) Waits Component in container.protected static ComponentwaitComponent(Container cont, ComponentChooser chooser, int index, Timeouts timeouts, TestOut output) A method to be used from subclasses.protected static ComponentwaitComponent(ContainerOperator contOper, ComponentChooser chooser, int index) A method to be used from subclasses.voidWaits for the component to be enabled.voidwaitComponentShowing(boolean visibility) voidwaitComponentVisible(boolean visibility) Waits for the component to be visible or unvisible.voidWaits for this Component has the keyboard focus.voidWaits for the component to be enabled.Methods inherited from class Operator
addOperatorPackage, 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, waitState
-
Field Details
-
NAME_DPROP
-
IS_VISIBLE_DPROP
-
IS_SHOWING_DPROP
-
X_DPROP
-
Y_DPROP
-
WIDTH_DPROP
-
HEIGHT_DPROP
-
-
Constructor Details
-
ComponentOperator
-
ComponentOperator
Constructs a ComponentOperator object.- Parameters:
cont- containerchooser- a component chooser specifying searching criteria.index- an index between appropriate ones.
-
ComponentOperator
Constructs a ComponentOperator object.- Parameters:
cont- containerchooser- a component chooser specifying searching criteria.
-
ComponentOperator
Constructor. Waits for a component in a container to show. The component is iis theindex+1'thjava.awt.Componentthat shows and that lies below the container in the display containment hierarchy. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- Operator for a java.awt.Container.index- an index between appropriate ones.- Throws:
TimeoutExpiredException
-
ComponentOperator
Constructor. Waits for a component in a container to show. The component is is the firstjava.awt.Componentthat shows and that lies below the container in the display containment hierarchy. Uses cont's timeout and output for waiting and to init operator.- Parameters:
cont- Operator for a java.awt.Container.- Throws:
TimeoutExpiredException
-
-
Method Details
-
findComponent
Searches Component in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.index- Ordinal component index.- Returns:
- Component instance or null if component was not found.
-
findComponent
Searches Component in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- Component instance or null if component was not found.
-
waitComponent
Waits Component in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.index- Ordinal component index.- Returns:
- Component instance or null if component was not found.
- Throws:
TimeoutExpiredException
-
waitComponent
Waits Component in container.- Parameters:
cont- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.- Returns:
- Component instance or null if component was not found.
- Throws:
TimeoutExpiredException
-
waitComponent
protected static Component waitComponent(ContainerOperator contOper, ComponentChooser chooser, int index) A method to be used from subclasses. UsescontOper's timeouts and output during the waiting.- Parameters:
contOper- Container to search component in.chooser- org.netbeans.jemmy.ComponentChooser implementation.index- Ordinal component index.- Returns:
- Component instance or null if component was not found.
- Throws:
TimeoutExpiredException
-
waitComponent
protected static Component waitComponent(Container cont, ComponentChooser chooser, int index, Timeouts timeouts, TestOut output) A method to be used from subclasses. Uses timeouts and output passed as parameters during the waiting.- Parameters:
cont- Container to search component in.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.- Returns:
- Component instance or null if component was not found.
- Throws:
TimeoutExpiredException
-
getSource
-
getEventDispatcher
Returnes org.netbeans.jemmy.EventDispatcher instance which is used to dispatch events.- Returns:
- the dispatcher.
- See Also:
-
setOutput
/////////////////////////////////////////////////////- Specified by:
setOutputin interfaceOutputable- Overrides:
setOutputin classOperator- Parameters:
out- Identify the streams or writers used for print output.- See Also:
-
getOutput
Description copied from interface:OutputableReturns print output streams or writers.- Specified by:
getOutputin interfaceOutputable- Overrides:
getOutputin classOperator- Returns:
- an object that contains references to objects for printing to output and err streams.
- See Also:
-
setTimeouts
Description copied from interface:TimeoutableDefines current timeouts.- Specified by:
setTimeoutsin interfaceTimeoutable- Overrides:
setTimeoutsin classOperator- Parameters:
timeouts- A collection of timeout assignments.- See Also:
-
getTimeouts
Description copied from interface:TimeoutableReturn current timeouts.- Specified by:
getTimeoutsin interfaceTimeoutable- Overrides:
getTimeoutsin classOperator- Returns:
- the collection of current timeout assignments.
- See Also:
-
copyEnvironment
Description copied from class:OperatorCopies all environment (output, timeouts, visualizer) from another operator.- Overrides:
copyEnvironmentin classOperator- Parameters:
anotherOperator- an operator to copy the environment to.
-
clickMouse
public void clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers, boolean forPopup) Makes mouse click.- Parameters:
x- Horizontal click coordinatey- Vertical click coordinateclickCount- Click countmouseButton- Mouse button (InputEvent.BUTTON1/2/3_MASK value)modifiers- Modifiers (combination of InputEvent.*_MASK values)forPopup- signals that click is intended to call popup.
-
clickMouse
public void clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers) Makes mouse click.- Parameters:
x- Horizontal click coordinatey- Vertical click coordinateclickCount- Click countmouseButton- Mouse button (InputEvent.BUTTON1/2/3_MASK value)modifiers- Modifiers (combination of InputEvent.*_MASK values)- See Also:
-
clickMouse
public void clickMouse(int x, int y, int clickCount, int mouseButton) Makes mouse click with 0 modifiers.- Parameters:
x- Horizontal click coordinatey- Vertical click coordinateclickCount- Click countmouseButton- Mouse button (InputEvent.BUTTON1/2/3_MASK value)- See Also:
-
clickMouse
public void clickMouse(int x, int y, int clickCount) Makes mouse click by default mouse button with 0 modifiers.- Parameters:
x- Horizontal click coordinatey- Vertical click coordinateclickCount- Click count- See Also:
-
pressMouse
public void pressMouse(int x, int y) Press mouse.- Parameters:
x- Horizontal click coordinatey- Vertical click coordinate
-
releaseMouse
public void releaseMouse(int x, int y) Releases mouse.- Parameters:
x- Horizontal click coordinatey- Vertical click coordinate
-
moveMouse
public void moveMouse(int x, int y) Move mouse over the component.- Parameters:
x- Horisontal destination coordinate.y- Vertical destination coordinate.
-
dragMouse
public void dragMouse(int x, int y, int mouseButton, int modifiers) Drag mouse over the component.- Parameters:
x- Horisontal destination coordinate.y- Vertical destination coordinate.mouseButton- Mouse buttonmodifiers- Modifiers
-
dragMouse
public void dragMouse(int x, int y, int mouseButton) Drag mouse over the component with 0 modifiers.- Parameters:
x- Horisontal destination coordinate.y- Vertical destination coordinate.mouseButton- Mouse button- See Also:
-
dragMouse
public void dragMouse(int x, int y) Drag mouse over the component with 0 modifiers and default mose button pressed.- Parameters:
x- Horisontal destination coordinate.y- Vertical destination coordinate.- See Also:
-
dragNDrop
public void dragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton, int modifiers) Makes drag'n'drop operation.- Parameters:
start_x- Start horizontal coordinatestart_y- Start vertical coordinateend_x- End horizontal coordinateend_y- End vertical coordinatemouseButton- Mouse buttonmodifiers- Modifiers
-
dragNDrop
public void dragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton) Makes drag'n'drop operation with 0 modifiers.- Parameters:
start_x- Start horizontal coordinatestart_y- Start vertical coordinateend_x- End horizontal coordinateend_y- End vertical coordinatemouseButton- Mouse button- See Also:
-
dragNDrop
public void dragNDrop(int start_x, int start_y, int end_x, int end_y) Makes drag'n'drop operation by default mouse buttons with 0 modifiers.- Parameters:
start_x- Start horizontal coordinatestart_y- Start vertical coordinateend_x- End horizontal coordinateend_y- End vertical coordinate- See Also:
-
clickForPopup
public void clickForPopup(int x, int y, int mouseButton) Clicks for popup.- Parameters:
x- Horizontal click coordinate.y- Vertical click coordinate.mouseButton- Mouse button.- See Also:
-
clickForPopup
public void clickForPopup(int x, int y) Clicks for popup by popup mouse button.- Parameters:
x- Horizontal click coordinate.y- Vertical click coordinate.- See Also:
-
clickMouse
public void clickMouse(int clickCount, int mouseButton) Makes mouse click on the component center with 0 modifiers.- Parameters:
clickCount- Click countmouseButton- Mouse button (InputEvent.BUTTON1/2/3_MASK value)- See Also:
-
clickMouse
public void clickMouse(int clickCount) Makes mouse click on the component center by default mouse button with 0 modifiers.- Parameters:
clickCount- Click count- See Also:
-
clickMouse
public void clickMouse()Makes siple mouse click on the component center by default mouse button with 0 modifiers.- See Also:
-
enterMouse
public void enterMouse()Move mouse inside the component. -
exitMouse
public void exitMouse()Move mouse outside the component. -
pressMouse
public void pressMouse()Press mouse. -
releaseMouse
public void releaseMouse()Releases mouse. -
clickForPopup
public void clickForPopup(int mouseButton) Clicks for popup at the component center.- Parameters:
mouseButton- Mouse button.- See Also:
-
clickForPopup
public void clickForPopup()Clicks for popup by popup mouse button at the component center.- See Also:
-
pressKey
public void pressKey(int keyCode, int modifiers) Press key.- Parameters:
keyCode- Key code (KeyEvent.VK_* value)modifiers- Modifiers (combination of InputEvent.*_MASK fields)
-
pressKey
public void pressKey(int keyCode) Press key with no modifiers.- Parameters:
keyCode- Key code (KeyEvent.VK_* value)
-
releaseKey
public void releaseKey(int keyCode, int modifiers) Releases key.- Parameters:
keyCode- Key code (KeyEvent.VK_* value)modifiers- Modifiers (combination of InputEvent.*_MASK fields)
-
releaseKey
public void releaseKey(int keyCode) Releases key with no modifiers.- Parameters:
keyCode- Key code (KeyEvent.VK_* value)
-
pushKey
public void pushKey(int keyCode, int modifiers) Pushs key.- Parameters:
keyCode- Key code (KeyEvent.VK_* value)modifiers- Modifiers (combination of InputEvent.*_MASK fields)
-
pushKey
public void pushKey(int keyCode) Pushs key.- Parameters:
keyCode- Key code (KeyEvent.VK_* value)
-
typeKey
public void typeKey(int keyCode, char keyChar, int modifiers) Types one char.- Parameters:
keyCode- Key code (KeyEvent.VK_* value)keyChar- Char to be typed.modifiers- Modifiers (combination of InputEvent.*_MASK fields)
-
typeKey
public void typeKey(char keyChar, int modifiers) Types one char. Uses map defined by setCharBindingMap(CharBindingMap) method to find a key should be pressed.- Parameters:
keyChar- Char to be typed.modifiers- Modifiers (combination of InputEvent.*_MASK fields)- See Also:
-
typeKey
public void typeKey(char keyChar) Types one char. Uses map defined by setCharBindingMap(CharBindingMap) method to find a key and modifiers should be pressed.- Parameters:
keyChar- Char to be typed.- See Also:
-
activateWindow
public void activateWindow()Deprecated.Use makeComponentVisible() instead.Activates component's window.- See Also:
-
makeComponentVisible
public void makeComponentVisible()Prepares component for user input. Uses visualizer defined by setVisualiser() method. -
getFocus
public void getFocus()Gives input focus to the component. -
getCenterX
public int getCenterX()Return the center x coordinate.- Returns:
- the center x coordinate.
-
getCenterY
public int getCenterY()Return the center y coordinate.- Returns:
- the center y coordinate.
-
getCenterXForClick
public int getCenterXForClick()Return the x coordinate which should be used for mouse operations by default.- Returns:
- the center x coordinate of the visible component part.
-
getCenterYForClick
public int getCenterYForClick()Return the y coordinate which should be used for mouse operations by default.- Returns:
- the center y coordinate of the visible component part.
-
waitComponentEnabled
Waits for the component to be enabled. -
wtComponentEnabled
public void wtComponentEnabled()Waits for the component to be enabled. per request: 37831- Throws:
TimeoutExpiredException
-
getContainers
Returns an array of containers for this component.- Returns:
- an array of containers
-
getContainer
Searches a container.- Parameters:
chooser- a chooser specifying the searching criteria.- Returns:
- a containers specified by searching criteria.
-
getWindow
-
waitHasFocus
public void waitHasFocus()Waits for this Component has the keyboard focus.- Throws:
TimeoutExpiredException
-
waitComponentVisible
public void waitComponentVisible(boolean visibility) Waits for the component to be visible or unvisible.- Parameters:
visibility- required visiblity.- Throws:
TimeoutExpiredException
-
waitComponentShowing
public void waitComponentShowing(boolean visibility) -
getDump
-
add
MapsComponent.add(PopupMenu)through queue -
addComponentListener
MapsComponent.addComponentListener(ComponentListener)through queue -
addFocusListener
MapsComponent.addFocusListener(FocusListener)through queue -
addInputMethodListener
MapsComponent.addInputMethodListener(InputMethodListener)through queue -
addKeyListener
MapsComponent.addKeyListener(KeyListener)through queue -
addMouseListener
MapsComponent.addMouseListener(MouseListener)through queue -
addMouseMotionListener
MapsComponent.addMouseMotionListener(MouseMotionListener)through queue -
addNotify
public void addNotify()MapsComponent.addNotify()through queue -
addPropertyChangeListener
MapsComponent.addPropertyChangeListener(PropertyChangeListener)through queue -
addPropertyChangeListener
MapsComponent.addPropertyChangeListener(String, PropertyChangeListener)through queue -
checkImage
MapsComponent.checkImage(Image, int, int, ImageObserver)through queue -
checkImage
MapsComponent.checkImage(Image, ImageObserver)through queue -
contains
public boolean contains(int i, int i1) MapsComponent.contains(int, int)through queue -
contains
MapsComponent.contains(Point)through queue -
createImage
MapsComponent.createImage(int, int)through queue -
createImage
MapsComponent.createImage(ImageProducer)through queue -
dispatchEvent
MapsComponent.dispatchEvent(AWTEvent)through queue -
doLayout
public void doLayout()MapsComponent.doLayout()through queue -
enableInputMethods
public void enableInputMethods(boolean b) MapsComponent.enableInputMethods(boolean)through queue -
getAlignmentX
public float getAlignmentX()MapsComponent.getAlignmentX()through queue -
getAlignmentY
public float getAlignmentY()MapsComponent.getAlignmentY()through queue -
getBackground
MapsComponent.getBackground()through queue -
getBounds
MapsComponent.getBounds()through queue -
getBounds
-
getColorModel
MapsComponent.getColorModel()through queue -
getComponentAt
MapsComponent.getComponentAt(int, int)through queue -
getComponentAt
-
getComponentOrientation
MapsComponent.getComponentOrientation()through queue -
getCursor
MapsComponent.getCursor()through queue -
getDropTarget
MapsComponent.getDropTarget()through queue -
getFont
MapsComponent.getFont()through queue -
getFontMetrics
MapsComponent.getFontMetrics(Font)through queue -
getForeground
MapsComponent.getForeground()through queue -
getGraphics
MapsComponent.getGraphics()through queue -
getHeight
public int getHeight()MapsComponent.getHeight()through queue -
getInputContext
MapsComponent.getInputContext()through queue -
getInputMethodRequests
MapsComponent.getInputMethodRequests()through queue -
getLocale
MapsComponent.getLocale()through queue -
getLocation
MapsComponent.getLocation()through queue -
getLocation
-
getLocationOnScreen
MapsComponent.getLocationOnScreen()through queue -
getMaximumSize
MapsComponent.getMaximumSize()through queue -
getMinimumSize
MapsComponent.getMinimumSize()through queue -
getName
MapsComponent.getName()through queue -
getParent
MapsComponent.getParent()through queue -
getPreferredSize
MapsComponent.getPreferredSize()through queue -
getSize
MapsComponent.getSize()through queue -
getSize
-
getToolkit
MapsComponent.getToolkit()through queue -
getTreeLock
MapsComponent.getTreeLock()through queue -
getWidth
public int getWidth()MapsComponent.getWidth()through queue -
getX
public int getX()MapsComponent.getX()through queue -
getY
public int getY()MapsComponent.getY()through queue -
hasFocus
public boolean hasFocus()MapsComponent.hasFocus()through queue -
imageUpdate
MapsComponent.imageUpdate(Image, int, int, int, int, int)through queue -
invalidate
public void invalidate()MapsComponent.invalidate()through queue -
isDisplayable
public boolean isDisplayable()MapsComponent.isDisplayable()through queue -
isDoubleBuffered
public boolean isDoubleBuffered()MapsComponent.isDoubleBuffered()through queue -
isEnabled
public boolean isEnabled()MapsComponent.isEnabled()through queue -
isFocusTraversable
public boolean isFocusTraversable()MapsComponent.isFocusTraversable()through queue -
isLightweight
public boolean isLightweight()MapsComponent.isLightweight()through queue -
isOpaque
public boolean isOpaque()MapsComponent.isOpaque()through queue -
isShowing
public boolean isShowing()MapsComponent.isShowing()through queue -
isValid
public boolean isValid()MapsComponent.isValid()through queue -
isVisible
public boolean isVisible()MapsComponent.isVisible()through queue -
list
public void list()MapsComponent.list()through queue -
list
MapsComponent.list(PrintStream)through queue -
list
MapsComponent.list(PrintStream, int)through queue -
list
MapsComponent.list(PrintWriter)through queue -
list
MapsComponent.list(PrintWriter, int)through queue -
paint
MapsComponent.paint(Graphics)through queue -
paintAll
MapsComponent.paintAll(Graphics)through queue -
prepareImage
MapsComponent.prepareImage(Image, int, int, ImageObserver)through queue -
prepareImage
MapsComponent.prepareImage(Image, ImageObserver)through queue -
print
MapsComponent.print(Graphics)through queue -
printAll
MapsComponent.printAll(Graphics)through queue -
remove
MapsComponent.remove(MenuComponent)through queue -
removeComponentListener
MapsComponent.removeComponentListener(ComponentListener)through queue -
removeFocusListener
MapsComponent.removeFocusListener(FocusListener)through queue -
removeInputMethodListener
MapsComponent.removeInputMethodListener(InputMethodListener)through queue -
removeKeyListener
MapsComponent.removeKeyListener(KeyListener)through queue -
removeMouseListener
MapsComponent.removeMouseListener(MouseListener)through queue -
removeMouseMotionListener
MapsComponent.removeMouseMotionListener(MouseMotionListener)through queue -
removeNotify
public void removeNotify()MapsComponent.removeNotify()through queue -
removePropertyChangeListener
MapsComponent.removePropertyChangeListener(PropertyChangeListener)through queue -
removePropertyChangeListener
public void removePropertyChangeListener(String string, PropertyChangeListener propertyChangeListener) MapsComponent.removePropertyChangeListener(String, PropertyChangeListener)through queue -
repaint
public void repaint()MapsComponent.repaint()through queue -
repaint
public void repaint(int i, int i1, int i2, int i3) MapsComponent.repaint(int, int, int, int)through queue -
repaint
public void repaint(long l) MapsComponent.repaint(long)through queue -
repaint
public void repaint(long l, int i, int i1, int i2, int i3) MapsComponent.repaint(long, int, int, int, int)through queue -
requestFocus
public void requestFocus()MapsComponent.requestFocus()through queue -
setBackground
MapsComponent.setBackground(Color)through queue -
setBounds
public void setBounds(int i, int i1, int i2, int i3) MapsComponent.setBounds(int, int, int, int)through queue -
setBounds
MapsComponent.setBounds(Rectangle)through queue -
setComponentOrientation
MapsComponent.setComponentOrientation(ComponentOrientation)through queue -
setCursor
MapsComponent.setCursor(Cursor)through queue -
setDropTarget
MapsComponent.setDropTarget(DropTarget)through queue -
setEnabled
public void setEnabled(boolean b) MapsComponent.setEnabled(boolean)through queue -
setFont
MapsComponent.setFont(Font)through queue -
setForeground
MapsComponent.setForeground(Color)through queue -
setLocale
MapsComponent.setLocale(Locale)through queue -
setLocation
public void setLocation(int i, int i1) MapsComponent.setLocation(int, int)through queue -
setLocation
MapsComponent.setLocation(Point)through queue -
setName
MapsComponent.setName(String)through queue -
setSize
public void setSize(int i, int i1) MapsComponent.setSize(int, int)through queue -
setSize
MapsComponent.setSize(Dimension)through queue -
setVisible
public void setVisible(boolean b) MapsComponent.setVisible(boolean)through queue -
transferFocus
public void transferFocus()MapsComponent.transferFocus()through queue -
update
MapsComponent.update(Graphics)through queue -
validate
public void validate()MapsComponent.validate()through queue
-