public class ComponentOperator extends Operator implements Timeoutable, Outputable
Operator.wait"something happened"(*)
Timeouts
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
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
HEIGHT_DPROP
Identifier for a height property.
|
static java.lang.String |
IS_SHOWING_DPROP
Identifier for a showing property.
|
static java.lang.String |
IS_VISIBLE_DPROP
Identifier for a visible property.
|
static java.lang.String |
NAME_DPROP
Identifier for a name property.
|
static java.lang.String |
WIDTH_DPROP
Identifier for a width property.
|
static java.lang.String |
X_DPROP
Identifier for a x coordinate property.
|
static java.lang.String |
Y_DPROP
Identifier for a y coordinate property.
|
CLASS_DPROP, TO_STRING_DPROP
Constructor and Description |
---|
ComponentOperator(java.awt.Component comp)
Constructor.
|
ComponentOperator(ContainerOperator cont)
Constructor.
|
ComponentOperator(ContainerOperator cont,
ComponentChooser chooser)
Constructs a ComponentOperator object.
|
ComponentOperator(ContainerOperator cont,
ComponentChooser chooser,
int index)
Constructs a ComponentOperator object.
|
ComponentOperator(ContainerOperator cont,
int index)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
activateWindow()
Deprecated.
Use makeComponentVisible() instead.
|
void |
add(java.awt.PopupMenu popupMenu)
Maps
Component.add(PopupMenu) through queue |
void |
addComponentListener(java.awt.event.ComponentListener componentListener)
Maps
Component.addComponentListener(ComponentListener) through queue |
void |
addFocusListener(java.awt.event.FocusListener focusListener)
Maps
Component.addFocusListener(FocusListener) through queue |
void |
addInputMethodListener(java.awt.event.InputMethodListener inputMethodListener)
Maps
Component.addInputMethodListener(InputMethodListener) through queue |
void |
addKeyListener(java.awt.event.KeyListener keyListener)
Maps
Component.addKeyListener(KeyListener) through queue |
void |
addMouseListener(java.awt.event.MouseListener mouseListener)
Maps
Component.addMouseListener(MouseListener) through queue |
void |
addMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
Maps
Component.addMouseMotionListener(MouseMotionListener) through queue |
void |
addNotify()
Maps
Component.addNotify() through queue |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Maps
Component.addPropertyChangeListener(PropertyChangeListener) through queue |
void |
addPropertyChangeListener(java.lang.String string,
java.beans.PropertyChangeListener propertyChangeListener)
Maps
Component.addPropertyChangeListener(String, PropertyChangeListener) through queue |
int |
checkImage(java.awt.Image image,
java.awt.image.ImageObserver imageObserver)
Maps
Component.checkImage(Image, ImageObserver) through queue |
int |
checkImage(java.awt.Image image,
int i,
int i1,
java.awt.image.ImageObserver imageObserver)
Maps
Component.checkImage(Image, int, int, ImageObserver) through queue |
void |
clickForPopup()
Clicks for popup by popup mouse button at the component center.
|
void |
clickForPopup(int mouseButton)
Clicks for popup at the component center.
|
void |
clickForPopup(int x,
int y)
Clicks for popup by popup mouse button.
|
void |
clickForPopup(int x,
int y,
int mouseButton)
Clicks for popup.
|
void |
clickMouse()
Makes siple mouse click on the component center by default mouse button with 0 modifiers.
|
void |
clickMouse(int clickCount)
Makes mouse click on the component center by default mouse button with 0 modifiers.
|
void |
clickMouse(int clickCount,
int mouseButton)
Makes mouse click on the component center with 0 modifiers.
|
void |
clickMouse(int x,
int y,
int clickCount)
Makes mouse click by default mouse button with 0 modifiers.
|
void |
clickMouse(int x,
int y,
int clickCount,
int mouseButton)
Makes mouse click with 0 modifiers.
|
void |
clickMouse(int x,
int y,
int clickCount,
int mouseButton,
int modifiers)
Makes mouse click.
|
void |
clickMouse(int x,
int y,
int clickCount,
int mouseButton,
int modifiers,
boolean forPopup)
Makes mouse click.
|
boolean |
contains(int i,
int i1)
Maps
Component.contains(int, int) through queue |
boolean |
contains(java.awt.Point point)
Maps
Component.contains(Point) through queue |
void |
copyEnvironment(Operator anotherOperator)
Copies all environment (output, timeouts,
visualizer) from another operator.
|
java.awt.Image |
createImage(java.awt.image.ImageProducer imageProducer)
Maps
Component.createImage(ImageProducer) through queue |
java.awt.Image |
createImage(int i,
int i1)
Maps
Component.createImage(int, int) through queue |
void |
dispatchEvent(java.awt.AWTEvent aWTEvent)
Maps
Component.dispatchEvent(AWTEvent) through queue |
void |
doLayout()
Maps
Component.doLayout() through queue |
void |
dragMouse(int x,
int y)
Drag mouse over the component with 0 modifiers and default mose button pressed.
|
void |
dragMouse(int x,
int y,
int mouseButton)
Drag mouse over the component with 0 modifiers.
|
void |
dragMouse(int x,
int y,
int mouseButton,
int modifiers)
Drag mouse over the component.
|
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.
|
void |
dragNDrop(int start_x,
int start_y,
int end_x,
int end_y,
int mouseButton)
Makes drag'n'drop operation with 0 modifiers.
|
void |
dragNDrop(int start_x,
int start_y,
int end_x,
int end_y,
int mouseButton,
int modifiers)
Makes drag'n'drop operation.
|
void |
enableInputMethods(boolean b)
Maps
Component.enableInputMethods(boolean) through queue |
void |
enterMouse()
Move mouse inside the component.
|
void |
exitMouse()
Move mouse outside the component.
|
static java.awt.Component |
findComponent(java.awt.Container cont,
ComponentChooser chooser)
Searches Component in container.
|
static java.awt.Component |
findComponent(java.awt.Container cont,
ComponentChooser chooser,
int index)
Searches Component in container.
|
float |
getAlignmentX()
Maps
Component.getAlignmentX() through queue |
float |
getAlignmentY()
Maps
Component.getAlignmentY() through queue |
java.awt.Color |
getBackground()
Maps
Component.getBackground() through queue |
java.awt.Rectangle |
getBounds()
Maps
Component.getBounds() through queue |
java.awt.Rectangle |
getBounds(java.awt.Rectangle rectangle)
Maps
Component.getBounds(Rectangle) through queue |
int |
getCenterX()
Return the center x coordinate.
|
int |
getCenterXForClick()
Return the x coordinate which should be used
for mouse operations by default.
|
int |
getCenterY()
Return the center y coordinate.
|
int |
getCenterYForClick()
Return the y coordinate which should be used
for mouse operations by default.
|
java.awt.image.ColorModel |
getColorModel()
Maps
Component.getColorModel() through queue |
java.awt.Component |
getComponentAt(int i,
int i1)
Maps
Component.getComponentAt(int, int) through queue |
java.awt.Component |
getComponentAt(java.awt.Point point)
Maps
Component.getComponentAt(Point) through queue |
java.awt.ComponentOrientation |
getComponentOrientation()
Maps
Component.getComponentOrientation() through queue |
java.awt.Container |
getContainer(ComponentChooser chooser)
Searches a container.
|
java.awt.Container[] |
getContainers()
Returns an array of containers for this component.
|
java.awt.Cursor |
getCursor()
Maps
Component.getCursor() through queue |
java.awt.dnd.DropTarget |
getDropTarget()
Maps
Component.getDropTarget() through queue |
java.util.Hashtable |
getDump()
Returns information about component.
|
EventDispatcher |
getEventDispatcher()
Returnes org.netbeans.jemmy.EventDispatcher instance which is
used to dispatch events.
|
void |
getFocus()
Gives input focus to the component.
|
java.awt.Font |
getFont()
Maps
Component.getFont() through queue |
java.awt.FontMetrics |
getFontMetrics(java.awt.Font font)
Maps
Component.getFontMetrics(Font) through queue |
java.awt.Color |
getForeground()
Maps
Component.getForeground() through queue |
java.awt.Graphics |
getGraphics()
Maps
Component.getGraphics() through queue |
int |
getHeight()
Maps
Component.getHeight() through queue |
java.awt.im.InputContext |
getInputContext()
Maps
Component.getInputContext() through queue |
java.awt.im.InputMethodRequests |
getInputMethodRequests()
Maps
Component.getInputMethodRequests() through queue |
java.util.Locale |
getLocale()
Maps
Component.getLocale() through queue |
java.awt.Point |
getLocation()
Maps
Component.getLocation() through queue |
java.awt.Point |
getLocation(java.awt.Point point)
Maps
Component.getLocation(Point) through queue |
java.awt.Point |
getLocationOnScreen()
Maps
Component.getLocationOnScreen() through queue |
java.awt.Dimension |
getMaximumSize()
Maps
Component.getMaximumSize() through queue |
java.awt.Dimension |
getMinimumSize()
Maps
Component.getMinimumSize() through queue |
java.lang.String |
getName()
Maps
Component.getName() through queue |
TestOut |
getOutput()
Returns print output streams or writers.
|
java.awt.Container |
getParent()
Maps
Component.getParent() through queue |
java.awt.Dimension |
getPreferredSize()
Maps
Component.getPreferredSize() through queue |
java.awt.Dimension |
getSize()
Maps
Component.getSize() through queue |
java.awt.Dimension |
getSize(java.awt.Dimension dimension)
Maps
Component.getSize(Dimension) through queue |
java.awt.Component |
getSource()
Returns component.
|
Timeouts |
getTimeouts()
Return current timeouts.
|
java.awt.Toolkit |
getToolkit()
Maps
Component.getToolkit() through queue |
java.lang.Object |
getTreeLock()
Maps
Component.getTreeLock() through queue |
int |
getWidth()
Maps
Component.getWidth() through queue |
java.awt.Window |
getWindow()
Searches the window under component.
|
int |
getX()
Maps
Component.getX() through queue |
int |
getY()
Maps
Component.getY() through queue |
boolean |
hasFocus()
Maps
Component.hasFocus() through queue |
boolean |
imageUpdate(java.awt.Image image,
int i,
int i1,
int i2,
int i3,
int i4)
Maps
Component.imageUpdate(Image, int, int, int, int, int) through queue |
void |
invalidate()
Maps
Component.invalidate() through queue |
boolean |
isDisplayable()
Maps
Component.isDisplayable() through queue |
boolean |
isDoubleBuffered()
Maps
Component.isDoubleBuffered() through queue |
boolean |
isEnabled()
Maps
Component.isEnabled() through queue |
boolean |
isFocusTraversable()
Maps
Component.isFocusTraversable() through queue |
boolean |
isLightweight()
Maps
Component.isLightweight() through queue |
boolean |
isOpaque()
Maps
Component.isOpaque() through queue |
boolean |
isShowing()
Maps
Component.isShowing() through queue |
boolean |
isValid()
Maps
Component.isValid() through queue |
boolean |
isVisible()
Maps
Component.isVisible() through queue |
void |
list()
Maps
Component.list() through queue |
void |
list(java.io.PrintStream printStream)
Maps
Component.list(PrintStream) through queue |
void |
list(java.io.PrintStream printStream,
int i)
Maps
Component.list(PrintStream, int) through queue |
void |
list(java.io.PrintWriter printWriter)
Maps
Component.list(PrintWriter) through queue |
void |
list(java.io.PrintWriter printWriter,
int i)
Maps
Component.list(PrintWriter, int) through queue |
void |
makeComponentVisible()
Prepares component for user input.
|
void |
moveMouse(int x,
int y)
Move mouse over the component.
|
void |
paint(java.awt.Graphics graphics)
Maps
Component.paint(Graphics) through queue |
void |
paintAll(java.awt.Graphics graphics)
Maps
Component.paintAll(Graphics) through queue |
boolean |
prepareImage(java.awt.Image image,
java.awt.image.ImageObserver imageObserver)
Maps
Component.prepareImage(Image, ImageObserver) through queue |
boolean |
prepareImage(java.awt.Image image,
int i,
int i1,
java.awt.image.ImageObserver imageObserver)
Maps
Component.prepareImage(Image, int, int, ImageObserver) through queue |
void |
pressKey(int keyCode)
Press key with no modifiers.
|
void |
pressKey(int keyCode,
int modifiers)
Press key.
|
void |
pressMouse()
Press mouse.
|
void |
pressMouse(int x,
int y)
Press mouse.
|
void |
print(java.awt.Graphics graphics)
Maps
Component.print(Graphics) through queue |
void |
printAll(java.awt.Graphics graphics)
Maps
Component.printAll(Graphics) through queue |
void |
pushKey(int keyCode)
Pushs key.
|
void |
pushKey(int keyCode,
int modifiers)
Pushs key.
|
void |
releaseKey(int keyCode)
Releases key with no modifiers.
|
void |
releaseKey(int keyCode,
int modifiers)
Releases key.
|
void |
releaseMouse()
Releases mouse.
|
void |
releaseMouse(int x,
int y)
Releases mouse.
|
void |
remove(java.awt.MenuComponent menuComponent)
Maps
Component.remove(MenuComponent) through queue |
void |
removeComponentListener(java.awt.event.ComponentListener componentListener)
Maps
Component.removeComponentListener(ComponentListener) through queue |
void |
removeFocusListener(java.awt.event.FocusListener focusListener)
Maps
Component.removeFocusListener(FocusListener) through queue |
void |
removeInputMethodListener(java.awt.event.InputMethodListener inputMethodListener)
Maps
Component.removeInputMethodListener(InputMethodListener) through queue |
void |
removeKeyListener(java.awt.event.KeyListener keyListener)
Maps
Component.removeKeyListener(KeyListener) through queue |
void |
removeMouseListener(java.awt.event.MouseListener mouseListener)
Maps
Component.removeMouseListener(MouseListener) through queue |
void |
removeMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
Maps
Component.removeMouseMotionListener(MouseMotionListener) through queue |
void |
removeNotify()
Maps
Component.removeNotify() through queue |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Maps
Component.removePropertyChangeListener(PropertyChangeListener) through queue |
void |
removePropertyChangeListener(java.lang.String string,
java.beans.PropertyChangeListener propertyChangeListener)
Maps
Component.removePropertyChangeListener(String, PropertyChangeListener) through queue |
void |
repaint()
Maps
Component.repaint() through queue |
void |
repaint(int i,
int i1,
int i2,
int i3)
Maps
Component.repaint(int, int, int, int) through queue |
void |
repaint(long l)
Maps
Component.repaint(long) through queue |
void |
repaint(long l,
int i,
int i1,
int i2,
int i3)
Maps
Component.repaint(long, int, int, int, int) through queue |
void |
requestFocus()
Maps
Component.requestFocus() through queue |
void |
setBackground(java.awt.Color color)
Maps
Component.setBackground(Color) through queue |
void |
setBounds(int i,
int i1,
int i2,
int i3)
Maps
Component.setBounds(int, int, int, int) through queue |
void |
setBounds(java.awt.Rectangle rectangle)
Maps
Component.setBounds(Rectangle) through queue |
void |
setComponentOrientation(java.awt.ComponentOrientation componentOrientation)
Maps
Component.setComponentOrientation(ComponentOrientation) through queue |
void |
setCursor(java.awt.Cursor cursor)
Maps
Component.setCursor(Cursor) through queue |
void |
setDropTarget(java.awt.dnd.DropTarget dropTarget)
Maps
Component.setDropTarget(DropTarget) through queue |
void |
setEnabled(boolean b)
Maps
Component.setEnabled(boolean) through queue |
void |
setFont(java.awt.Font font)
Maps
Component.setFont(Font) through queue |
void |
setForeground(java.awt.Color color)
Maps
Component.setForeground(Color) through queue |
void |
setLocale(java.util.Locale locale)
Maps
Component.setLocale(Locale) through queue |
void |
setLocation(int i,
int i1)
Maps
Component.setLocation(int, int) through queue |
void |
setLocation(java.awt.Point point)
Maps
Component.setLocation(Point) through queue |
void |
setName(java.lang.String string)
Maps
Component.setName(String) through queue |
void |
setOutput(TestOut out)
Defines print output streams or writers.
|
void |
setSize(java.awt.Dimension dimension)
Maps
Component.setSize(Dimension) through queue |
void |
setSize(int i,
int i1)
Maps
Component.setSize(int, int) through queue |
void |
setTimeouts(Timeouts timeouts)
Defines current timeouts.
|
void |
setVisible(boolean b)
Maps
Component.setVisible(boolean) through queue |
void |
transferFocus()
Maps
Component.transferFocus() through queue |
void |
typeKey(char keyChar)
Types one char.
|
void |
typeKey(char keyChar,
int modifiers)
Types one char.
|
void |
typeKey(int keyCode,
char keyChar,
int modifiers)
Types one char.
|
void |
update(java.awt.Graphics graphics)
Maps
Component.update(Graphics) through queue |
void |
validate()
Maps
Component.validate() through queue |
static java.awt.Component |
waitComponent(java.awt.Container cont,
ComponentChooser chooser)
Waits Component in container.
|
static java.awt.Component |
waitComponent(java.awt.Container cont,
ComponentChooser chooser,
int index)
Waits Component in container.
|
protected static java.awt.Component |
waitComponent(java.awt.Container cont,
ComponentChooser chooser,
int index,
Timeouts timeouts,
TestOut output)
A method to be used from subclasses.
|
protected static java.awt.Component |
waitComponent(ContainerOperator contOper,
ComponentChooser chooser,
int index)
A method to be used from subclasses.
|
void |
waitComponentEnabled()
Waits for the component to be enabled.
|
void |
waitComponentShowing(boolean visibility) |
void |
waitComponentVisible(boolean visibility)
Waits for the component to be visible or unvisible.
|
void |
waitHasFocus()
Waits for this Component has the keyboard focus.
|
void |
wtComponentEnabled()
Waits for the component to be enabled.
|
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
public static final java.lang.String NAME_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String IS_VISIBLE_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String IS_SHOWING_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String X_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String Y_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String WIDTH_DPROP
getDump()
,
Constant Field Valuespublic static final java.lang.String HEIGHT_DPROP
getDump()
,
Constant Field Valuespublic ComponentOperator(java.awt.Component comp)
comp
- a componentpublic ComponentOperator(ContainerOperator cont, ComponentChooser chooser, int index)
cont
- containerchooser
- a component chooser specifying searching criteria.index
- an index between appropriate ones.public ComponentOperator(ContainerOperator cont, ComponentChooser chooser)
cont
- containerchooser
- a component chooser specifying searching criteria.public ComponentOperator(ContainerOperator cont, int index)
index+1
'th java.awt.Component
that shows and that lies below the container in the display
containment hierarchy.
Uses cont's timeout and output for waiting and to init operator.cont
- Operator for a java.awt.Container.index
- an index between appropriate ones.TimeoutExpiredException
public ComponentOperator(ContainerOperator cont)
java.awt.Component
that shows and that lies below the container in the display
containment hierarchy.
Uses cont's timeout and output for waiting and to init operator.cont
- Operator for a java.awt.Container.TimeoutExpiredException
public static java.awt.Component findComponent(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.public static java.awt.Component findComponent(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.public static java.awt.Component waitComponent(java.awt.Container cont, ComponentChooser chooser, int index)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.TimeoutExpiredException
public static java.awt.Component waitComponent(java.awt.Container cont, ComponentChooser chooser)
cont
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.TimeoutExpiredException
protected static java.awt.Component waitComponent(ContainerOperator contOper, ComponentChooser chooser, int index)
contOper
's timeouts and output during the waiting.contOper
- Container to search component in.chooser
- org.netbeans.jemmy.ComponentChooser implementation.index
- Ordinal component index.TimeoutExpiredException
protected static java.awt.Component waitComponent(java.awt.Container cont, ComponentChooser chooser, int index, Timeouts timeouts, TestOut output)
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.TimeoutExpiredException
public java.awt.Component getSource()
public EventDispatcher getEventDispatcher()
EventDispatcher
public void setOutput(TestOut out)
Outputable
setOutput
in interface Outputable
setOutput
in class Operator
out
- Identify the streams or writers used for print output.Outputable.getOutput()
public TestOut getOutput()
Outputable
getOutput
in interface Outputable
getOutput
in class Operator
Outputable.setOutput(org.netbeans.jemmy.TestOut)
public void setTimeouts(Timeouts timeouts)
Timeoutable
setTimeouts
in interface Timeoutable
setTimeouts
in class Operator
timeouts
- A collection of timeout assignments.Timeoutable.getTimeouts()
public Timeouts getTimeouts()
Timeoutable
getTimeouts
in interface Timeoutable
getTimeouts
in class Operator
Timeoutable.setTimeouts(org.netbeans.jemmy.Timeouts)
public void copyEnvironment(Operator anotherOperator)
Operator
copyEnvironment
in class Operator
anotherOperator
- an operator to copy the environment to.public void clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers, boolean forPopup)
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.public void clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers)
x
- Horizontal click coordinatey
- Vertical click coordinateclickCount
- Click countmouseButton
- Mouse button (InputEvent.BUTTON1/2/3_MASK value)modifiers
- Modifiers (combination of InputEvent.*_MASK values)clickMouse(int, int, int, int, int, boolean)
public void clickMouse(int x, int y, int clickCount, int mouseButton)
x
- Horizontal click coordinatey
- Vertical click coordinateclickCount
- Click countmouseButton
- Mouse button (InputEvent.BUTTON1/2/3_MASK value)clickMouse(int, int, int, int, int)
public void clickMouse(int x, int y, int clickCount)
x
- Horizontal click coordinatey
- Vertical click coordinateclickCount
- Click countclickMouse(int, int, int, int)
,
Operator.getDefaultMouseButton()
public void pressMouse(int x, int y)
x
- Horizontal click coordinatey
- Vertical click coordinatepublic void releaseMouse(int x, int y)
x
- Horizontal click coordinatey
- Vertical click coordinatepublic void moveMouse(int x, int y)
x
- Horisontal destination coordinate.y
- Vertical destination coordinate.public void dragMouse(int x, int y, int mouseButton, int modifiers)
x
- Horisontal destination coordinate.y
- Vertical destination coordinate.mouseButton
- Mouse buttonmodifiers
- Modifierspublic void dragMouse(int x, int y, int mouseButton)
x
- Horisontal destination coordinate.y
- Vertical destination coordinate.mouseButton
- Mouse buttondragMouse(int, int, int, int)
public void dragMouse(int x, int y)
x
- Horisontal destination coordinate.y
- Vertical destination coordinate.dragMouse(int, int, int)
,
Operator.getDefaultMouseButton()
public void dragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton, int modifiers)
start_x
- Start horizontal coordinatestart_y
- Start vertical coordinateend_x
- End horizontal coordinateend_y
- End vertical coordinatemouseButton
- Mouse buttonmodifiers
- Modifierspublic void dragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton)
start_x
- Start horizontal coordinatestart_y
- Start vertical coordinateend_x
- End horizontal coordinateend_y
- End vertical coordinatemouseButton
- Mouse buttondragNDrop(int, int, int, int, int, int)
public void dragNDrop(int start_x, int start_y, int end_x, int end_y)
start_x
- Start horizontal coordinatestart_y
- Start vertical coordinateend_x
- End horizontal coordinateend_y
- End vertical coordinatedragNDrop(int, int, int, int, int)
,
Operator.getDefaultMouseButton()
public void clickForPopup(int x, int y, int mouseButton)
x
- Horizontal click coordinate.y
- Vertical click coordinate.mouseButton
- Mouse button.clickMouse(int, int, int, int, int, boolean)
public void clickForPopup(int x, int y)
x
- Horizontal click coordinate.y
- Vertical click coordinate.clickForPopup(int, int, int)
,
Operator.getPopupMouseButton()
public void clickMouse(int clickCount, int mouseButton)
clickCount
- Click countmouseButton
- Mouse button (InputEvent.BUTTON1/2/3_MASK value)clickMouse(int, int, int, int)
public void clickMouse(int clickCount)
clickCount
- Click countclickMouse(int, int)
,
Operator.getDefaultMouseButton()
public void clickMouse()
public void enterMouse()
public void exitMouse()
public void pressMouse()
public void releaseMouse()
public void clickForPopup(int mouseButton)
mouseButton
- Mouse button.clickForPopup(int, int)
public void clickForPopup()
public void pressKey(int keyCode, int modifiers)
keyCode
- Key code (KeyEvent.VK_* value)modifiers
- Modifiers (combination of InputEvent.*_MASK fields)public void pressKey(int keyCode)
keyCode
- Key code (KeyEvent.VK_* value)public void releaseKey(int keyCode, int modifiers)
keyCode
- Key code (KeyEvent.VK_* value)modifiers
- Modifiers (combination of InputEvent.*_MASK fields)public void releaseKey(int keyCode)
keyCode
- Key code (KeyEvent.VK_* value)public void pushKey(int keyCode, int modifiers)
keyCode
- Key code (KeyEvent.VK_* value)modifiers
- Modifiers (combination of InputEvent.*_MASK fields)public void pushKey(int keyCode)
keyCode
- Key code (KeyEvent.VK_* value)public void typeKey(int keyCode, char keyChar, int modifiers)
keyCode
- Key code (KeyEvent.VK_* value)keyChar
- Char to be typed.modifiers
- Modifiers (combination of InputEvent.*_MASK fields)public void typeKey(char keyChar, int modifiers)
keyChar
- Char to be typed.modifiers
- Modifiers (combination of InputEvent.*_MASK fields)CharBindingMap
,
Operator.setCharBindingMap(CharBindingMap)
,
typeKey(int, char, int)
public void typeKey(char keyChar)
keyChar
- Char to be typed.Operator.setCharBindingMap(CharBindingMap)
,
typeKey(char, int)
public void activateWindow()
makeComponentVisible()
public void makeComponentVisible()
public void getFocus()
public int getCenterX()
public int getCenterY()
public int getCenterXForClick()
public int getCenterYForClick()
public void waitComponentEnabled() throws java.lang.InterruptedException
TimeoutExpiredException
java.lang.InterruptedException
public void wtComponentEnabled()
TimeoutExpiredException
public java.awt.Container[] getContainers()
public java.awt.Container getContainer(ComponentChooser chooser)
chooser
- a chooser specifying the searching criteria.public java.awt.Window getWindow()
public void waitHasFocus()
TimeoutExpiredException
public void waitComponentVisible(boolean visibility)
visibility
- required visiblity.TimeoutExpiredException
public void waitComponentShowing(boolean visibility)
public java.util.Hashtable getDump()
public void add(java.awt.PopupMenu popupMenu)
Component.add(PopupMenu)
through queuepublic void addComponentListener(java.awt.event.ComponentListener componentListener)
Component.addComponentListener(ComponentListener)
through queuepublic void addFocusListener(java.awt.event.FocusListener focusListener)
Component.addFocusListener(FocusListener)
through queuepublic void addInputMethodListener(java.awt.event.InputMethodListener inputMethodListener)
Component.addInputMethodListener(InputMethodListener)
through queuepublic void addKeyListener(java.awt.event.KeyListener keyListener)
Component.addKeyListener(KeyListener)
through queuepublic void addMouseListener(java.awt.event.MouseListener mouseListener)
Component.addMouseListener(MouseListener)
through queuepublic void addMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
Component.addMouseMotionListener(MouseMotionListener)
through queuepublic void addNotify()
Component.addNotify()
through queuepublic void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Component.addPropertyChangeListener(PropertyChangeListener)
through queuepublic void addPropertyChangeListener(java.lang.String string, java.beans.PropertyChangeListener propertyChangeListener)
Component.addPropertyChangeListener(String, PropertyChangeListener)
through queuepublic int checkImage(java.awt.Image image, int i, int i1, java.awt.image.ImageObserver imageObserver)
Component.checkImage(Image, int, int, ImageObserver)
through queuepublic int checkImage(java.awt.Image image, java.awt.image.ImageObserver imageObserver)
Component.checkImage(Image, ImageObserver)
through queuepublic boolean contains(int i, int i1)
Component.contains(int, int)
through queuepublic boolean contains(java.awt.Point point)
Component.contains(Point)
through queuepublic java.awt.Image createImage(int i, int i1)
Component.createImage(int, int)
through queuepublic java.awt.Image createImage(java.awt.image.ImageProducer imageProducer)
Component.createImage(ImageProducer)
through queuepublic void dispatchEvent(java.awt.AWTEvent aWTEvent)
Component.dispatchEvent(AWTEvent)
through queuepublic void doLayout()
Component.doLayout()
through queuepublic void enableInputMethods(boolean b)
Component.enableInputMethods(boolean)
through queuepublic float getAlignmentX()
Component.getAlignmentX()
through queuepublic float getAlignmentY()
Component.getAlignmentY()
through queuepublic java.awt.Color getBackground()
Component.getBackground()
through queuepublic java.awt.Rectangle getBounds()
Component.getBounds()
through queuepublic java.awt.Rectangle getBounds(java.awt.Rectangle rectangle)
Component.getBounds(Rectangle)
through queuepublic java.awt.image.ColorModel getColorModel()
Component.getColorModel()
through queuepublic java.awt.Component getComponentAt(int i, int i1)
Component.getComponentAt(int, int)
through queuepublic java.awt.Component getComponentAt(java.awt.Point point)
Component.getComponentAt(Point)
through queuepublic java.awt.ComponentOrientation getComponentOrientation()
Component.getComponentOrientation()
through queuepublic java.awt.Cursor getCursor()
Component.getCursor()
through queuepublic java.awt.dnd.DropTarget getDropTarget()
Component.getDropTarget()
through queuepublic java.awt.Font getFont()
Component.getFont()
through queuepublic java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Component.getFontMetrics(Font)
through queuepublic java.awt.Color getForeground()
Component.getForeground()
through queuepublic java.awt.Graphics getGraphics()
Component.getGraphics()
through queuepublic int getHeight()
Component.getHeight()
through queuepublic java.awt.im.InputContext getInputContext()
Component.getInputContext()
through queuepublic java.awt.im.InputMethodRequests getInputMethodRequests()
Component.getInputMethodRequests()
through queuepublic java.util.Locale getLocale()
Component.getLocale()
through queuepublic java.awt.Point getLocation()
Component.getLocation()
through queuepublic java.awt.Point getLocation(java.awt.Point point)
Component.getLocation(Point)
through queuepublic java.awt.Point getLocationOnScreen()
Component.getLocationOnScreen()
through queuepublic java.awt.Dimension getMaximumSize()
Component.getMaximumSize()
through queuepublic java.awt.Dimension getMinimumSize()
Component.getMinimumSize()
through queuepublic java.lang.String getName()
Component.getName()
through queuepublic java.awt.Container getParent()
Component.getParent()
through queuepublic java.awt.Dimension getPreferredSize()
Component.getPreferredSize()
through queuepublic java.awt.Dimension getSize()
Component.getSize()
through queuepublic java.awt.Dimension getSize(java.awt.Dimension dimension)
Component.getSize(Dimension)
through queuepublic java.awt.Toolkit getToolkit()
Component.getToolkit()
through queuepublic java.lang.Object getTreeLock()
Component.getTreeLock()
through queuepublic int getWidth()
Component.getWidth()
through queuepublic int getX()
Component.getX()
through queuepublic int getY()
Component.getY()
through queuepublic boolean hasFocus()
Component.hasFocus()
through queuepublic boolean imageUpdate(java.awt.Image image, int i, int i1, int i2, int i3, int i4)
Component.imageUpdate(Image, int, int, int, int, int)
through queuepublic void invalidate()
Component.invalidate()
through queuepublic boolean isDisplayable()
Component.isDisplayable()
through queuepublic boolean isDoubleBuffered()
Component.isDoubleBuffered()
through queuepublic boolean isEnabled()
Component.isEnabled()
through queuepublic boolean isFocusTraversable()
Component.isFocusTraversable()
through queuepublic boolean isLightweight()
Component.isLightweight()
through queuepublic boolean isOpaque()
Component.isOpaque()
through queuepublic boolean isShowing()
Component.isShowing()
through queuepublic boolean isValid()
Component.isValid()
through queuepublic boolean isVisible()
Component.isVisible()
through queuepublic void list()
Component.list()
through queuepublic void list(java.io.PrintStream printStream)
Component.list(PrintStream)
through queuepublic void list(java.io.PrintStream printStream, int i)
Component.list(PrintStream, int)
through queuepublic void list(java.io.PrintWriter printWriter)
Component.list(PrintWriter)
through queuepublic void list(java.io.PrintWriter printWriter, int i)
Component.list(PrintWriter, int)
through queuepublic void paint(java.awt.Graphics graphics)
Component.paint(Graphics)
through queuepublic void paintAll(java.awt.Graphics graphics)
Component.paintAll(Graphics)
through queuepublic boolean prepareImage(java.awt.Image image, int i, int i1, java.awt.image.ImageObserver imageObserver)
Component.prepareImage(Image, int, int, ImageObserver)
through queuepublic boolean prepareImage(java.awt.Image image, java.awt.image.ImageObserver imageObserver)
Component.prepareImage(Image, ImageObserver)
through queuepublic void print(java.awt.Graphics graphics)
Component.print(Graphics)
through queuepublic void printAll(java.awt.Graphics graphics)
Component.printAll(Graphics)
through queuepublic void remove(java.awt.MenuComponent menuComponent)
Component.remove(MenuComponent)
through queuepublic void removeComponentListener(java.awt.event.ComponentListener componentListener)
Component.removeComponentListener(ComponentListener)
through queuepublic void removeFocusListener(java.awt.event.FocusListener focusListener)
Component.removeFocusListener(FocusListener)
through queuepublic void removeInputMethodListener(java.awt.event.InputMethodListener inputMethodListener)
Component.removeInputMethodListener(InputMethodListener)
through queuepublic void removeKeyListener(java.awt.event.KeyListener keyListener)
Component.removeKeyListener(KeyListener)
through queuepublic void removeMouseListener(java.awt.event.MouseListener mouseListener)
Component.removeMouseListener(MouseListener)
through queuepublic void removeMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
Component.removeMouseMotionListener(MouseMotionListener)
through queuepublic void removeNotify()
Component.removeNotify()
through queuepublic void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Component.removePropertyChangeListener(PropertyChangeListener)
through queuepublic void removePropertyChangeListener(java.lang.String string, java.beans.PropertyChangeListener propertyChangeListener)
Component.removePropertyChangeListener(String, PropertyChangeListener)
through queuepublic void repaint()
Component.repaint()
through queuepublic void repaint(int i, int i1, int i2, int i3)
Component.repaint(int, int, int, int)
through queuepublic void repaint(long l)
Component.repaint(long)
through queuepublic void repaint(long l, int i, int i1, int i2, int i3)
Component.repaint(long, int, int, int, int)
through queuepublic void requestFocus()
Component.requestFocus()
through queuepublic void setBackground(java.awt.Color color)
Component.setBackground(Color)
through queuepublic void setBounds(int i, int i1, int i2, int i3)
Component.setBounds(int, int, int, int)
through queuepublic void setBounds(java.awt.Rectangle rectangle)
Component.setBounds(Rectangle)
through queuepublic void setComponentOrientation(java.awt.ComponentOrientation componentOrientation)
Component.setComponentOrientation(ComponentOrientation)
through queuepublic void setCursor(java.awt.Cursor cursor)
Component.setCursor(Cursor)
through queuepublic void setDropTarget(java.awt.dnd.DropTarget dropTarget)
Component.setDropTarget(DropTarget)
through queuepublic void setEnabled(boolean b)
Component.setEnabled(boolean)
through queuepublic void setFont(java.awt.Font font)
Component.setFont(Font)
through queuepublic void setForeground(java.awt.Color color)
Component.setForeground(Color)
through queuepublic void setLocale(java.util.Locale locale)
Component.setLocale(Locale)
through queuepublic void setLocation(int i, int i1)
Component.setLocation(int, int)
through queuepublic void setLocation(java.awt.Point point)
Component.setLocation(Point)
through queuepublic void setName(java.lang.String string)
Component.setName(String)
through queuepublic void setSize(int i, int i1)
Component.setSize(int, int)
through queuepublic void setSize(java.awt.Dimension dimension)
Component.setSize(Dimension)
through queuepublic void setVisible(boolean b)
Component.setVisible(boolean)
through queuepublic void transferFocus()
Component.transferFocus()
through queuepublic void update(java.awt.Graphics graphics)
Component.update(Graphics)
through queuepublic void validate()
Component.validate()
through queue