|
|||||||||
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
public class ComponentOperator
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 Operator.wait"something happened"(*)
.
Timeouts
Nested Class Summary |
---|
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 | |
---|---|
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. |
Fields inherited from class org.netbeans.jemmy.operators.Operator |
---|
CLASS_DPROP, TO_STRING_DPROP |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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 inout focud 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String 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 ValuesConstructor Detail |
---|
public 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
Method Detail |
---|
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()
getSource
in class Operator
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()
clickMouse(int)
,
Operator.getDefaultMouseButton()
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()
clickForPopup(int)
,
Operator.getPopupMouseButton()
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()
getDump
in class Operator
public void add(java.awt.PopupMenu popupMenu)
Component.add(PopupMenu)
through queue
public void addComponentListener(java.awt.event.ComponentListener componentListener)
Component.addComponentListener(ComponentListener)
through queue
public void addFocusListener(java.awt.event.FocusListener focusListener)
Component.addFocusListener(FocusListener)
through queue
public void addInputMethodListener(java.awt.event.InputMethodListener inputMethodListener)
Component.addInputMethodListener(InputMethodListener)
through queue
public void addKeyListener(java.awt.event.KeyListener keyListener)
Component.addKeyListener(KeyListener)
through queue
public void addMouseListener(java.awt.event.MouseListener mouseListener)
Component.addMouseListener(MouseListener)
through queue
public void addMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
Component.addMouseMotionListener(MouseMotionListener)
through queue
public void addNotify()
Component.addNotify()
through queue
public void addPropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Component.addPropertyChangeListener(PropertyChangeListener)
through queue
public void addPropertyChangeListener(java.lang.String string, java.beans.PropertyChangeListener propertyChangeListener)
Component.addPropertyChangeListener(String, PropertyChangeListener)
through queue
public int checkImage(java.awt.Image image, int i, int i1, java.awt.image.ImageObserver imageObserver)
Component.checkImage(Image, int, int, ImageObserver)
through queue
public int checkImage(java.awt.Image image, java.awt.image.ImageObserver imageObserver)
Component.checkImage(Image, ImageObserver)
through queue
public boolean contains(int i, int i1)
Component.contains(int, int)
through queue
public boolean contains(java.awt.Point point)
Component.contains(Point)
through queue
public java.awt.Image createImage(int i, int i1)
Component.createImage(int, int)
through queue
public java.awt.Image createImage(java.awt.image.ImageProducer imageProducer)
Component.createImage(ImageProducer)
through queue
public void dispatchEvent(java.awt.AWTEvent aWTEvent)
Component.dispatchEvent(AWTEvent)
through queue
public void doLayout()
Component.doLayout()
through queue
public void enableInputMethods(boolean b)
Component.enableInputMethods(boolean)
through queue
public float getAlignmentX()
Component.getAlignmentX()
through queue
public float getAlignmentY()
Component.getAlignmentY()
through queue
public java.awt.Color getBackground()
Component.getBackground()
through queue
public java.awt.Rectangle getBounds()
Component.getBounds()
through queue
public java.awt.Rectangle getBounds(java.awt.Rectangle rectangle)
Component.getBounds(Rectangle)
through queue
public java.awt.image.ColorModel getColorModel()
Component.getColorModel()
through queue
public java.awt.Component getComponentAt(int i, int i1)
Component.getComponentAt(int, int)
through queue
public java.awt.Component getComponentAt(java.awt.Point point)
Component.getComponentAt(Point)
through queue
public java.awt.ComponentOrientation getComponentOrientation()
Component.getComponentOrientation()
through queue
public java.awt.Cursor getCursor()
Component.getCursor()
through queue
public java.awt.dnd.DropTarget getDropTarget()
Component.getDropTarget()
through queue
public java.awt.Font getFont()
Component.getFont()
through queue
public java.awt.FontMetrics getFontMetrics(java.awt.Font font)
Component.getFontMetrics(Font)
through queue
public java.awt.Color getForeground()
Component.getForeground()
through queue
public java.awt.Graphics getGraphics()
Component.getGraphics()
through queue
public int getHeight()
Component.getHeight()
through queue
public java.awt.im.InputContext getInputContext()
Component.getInputContext()
through queue
public java.awt.im.InputMethodRequests getInputMethodRequests()
Component.getInputMethodRequests()
through queue
public java.util.Locale getLocale()
Component.getLocale()
through queue
public java.awt.Point getLocation()
Component.getLocation()
through queue
public java.awt.Point getLocation(java.awt.Point point)
Component.getLocation(Point)
through queue
public java.awt.Point getLocationOnScreen()
Component.getLocationOnScreen()
through queue
public java.awt.Dimension getMaximumSize()
Component.getMaximumSize()
through queue
public java.awt.Dimension getMinimumSize()
Component.getMinimumSize()
through queue
public java.lang.String getName()
Component.getName()
through queue
public java.awt.Container getParent()
Component.getParent()
through queue
public java.awt.Dimension getPreferredSize()
Component.getPreferredSize()
through queue
public java.awt.Dimension getSize()
Component.getSize()
through queue
public java.awt.Dimension getSize(java.awt.Dimension dimension)
Component.getSize(Dimension)
through queue
public java.awt.Toolkit getToolkit()
Component.getToolkit()
through queue
public java.lang.Object getTreeLock()
Component.getTreeLock()
through queue
public int getWidth()
Component.getWidth()
through queue
public int getX()
Component.getX()
through queue
public int getY()
Component.getY()
through queue
public boolean hasFocus()
Component.hasFocus()
through queue
public 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 queue
public void invalidate()
Component.invalidate()
through queue
public boolean isDisplayable()
Component.isDisplayable()
through queue
public boolean isDoubleBuffered()
Component.isDoubleBuffered()
through queue
public boolean isEnabled()
Component.isEnabled()
through queue
public boolean isFocusTraversable()
Component.isFocusTraversable()
through queue
public boolean isLightweight()
Component.isLightweight()
through queue
public boolean isOpaque()
Component.isOpaque()
through queue
public boolean isShowing()
Component.isShowing()
through queue
public boolean isValid()
Component.isValid()
through queue
public boolean isVisible()
Component.isVisible()
through queue
public void list()
Component.list()
through queue
public void list(java.io.PrintStream printStream)
Component.list(PrintStream)
through queue
public void list(java.io.PrintStream printStream, int i)
Component.list(PrintStream, int)
through queue
public void list(java.io.PrintWriter printWriter)
Component.list(PrintWriter)
through queue
public void list(java.io.PrintWriter printWriter, int i)
Component.list(PrintWriter, int)
through queue
public void paint(java.awt.Graphics graphics)
Component.paint(Graphics)
through queue
public void paintAll(java.awt.Graphics graphics)
Component.paintAll(Graphics)
through queue
public boolean prepareImage(java.awt.Image image, int i, int i1, java.awt.image.ImageObserver imageObserver)
Component.prepareImage(Image, int, int, ImageObserver)
through queue
public boolean prepareImage(java.awt.Image image, java.awt.image.ImageObserver imageObserver)
Component.prepareImage(Image, ImageObserver)
through queue
public void print(java.awt.Graphics graphics)
Component.print(Graphics)
through queue
public void printAll(java.awt.Graphics graphics)
Component.printAll(Graphics)
through queue
public void remove(java.awt.MenuComponent menuComponent)
Component.remove(MenuComponent)
through queue
public void removeComponentListener(java.awt.event.ComponentListener componentListener)
Component.removeComponentListener(ComponentListener)
through queue
public void removeFocusListener(java.awt.event.FocusListener focusListener)
Component.removeFocusListener(FocusListener)
through queue
public void removeInputMethodListener(java.awt.event.InputMethodListener inputMethodListener)
Component.removeInputMethodListener(InputMethodListener)
through queue
public void removeKeyListener(java.awt.event.KeyListener keyListener)
Component.removeKeyListener(KeyListener)
through queue
public void removeMouseListener(java.awt.event.MouseListener mouseListener)
Component.removeMouseListener(MouseListener)
through queue
public void removeMouseMotionListener(java.awt.event.MouseMotionListener mouseMotionListener)
Component.removeMouseMotionListener(MouseMotionListener)
through queue
public void removeNotify()
Component.removeNotify()
through queue
public void removePropertyChangeListener(java.beans.PropertyChangeListener propertyChangeListener)
Component.removePropertyChangeListener(PropertyChangeListener)
through queue
public void removePropertyChangeListener(java.lang.String string, java.beans.PropertyChangeListener propertyChangeListener)
Component.removePropertyChangeListener(String, PropertyChangeListener)
through queue
public void repaint()
Component.repaint()
through queue
public void repaint(int i, int i1, int i2, int i3)
Component.repaint(int, int, int, int)
through queue
public void repaint(long l)
Component.repaint(long)
through queue
public void repaint(long l, int i, int i1, int i2, int i3)
Component.repaint(long, int, int, int, int)
through queue
public void requestFocus()
Component.requestFocus()
through queue
public void setBackground(java.awt.Color color)
Component.setBackground(Color)
through queue
public void setBounds(int i, int i1, int i2, int i3)
Component.setBounds(int, int, int, int)
through queue
public void setBounds(java.awt.Rectangle rectangle)
Component.setBounds(Rectangle)
through queue
public void setComponentOrientation(java.awt.ComponentOrientation componentOrientation)
Component.setComponentOrientation(ComponentOrientation)
through queue
public void setCursor(java.awt.Cursor cursor)
Component.setCursor(Cursor)
through queue
public void setDropTarget(java.awt.dnd.DropTarget dropTarget)
Component.setDropTarget(DropTarget)
through queue
public void setEnabled(boolean b)
Component.setEnabled(boolean)
through queue
public void setFont(java.awt.Font font)
Component.setFont(Font)
through queue
public void setForeground(java.awt.Color color)
Component.setForeground(Color)
through queue
public void setLocale(java.util.Locale locale)
Component.setLocale(Locale)
through queue
public void setLocation(int i, int i1)
Component.setLocation(int, int)
through queue
public void setLocation(java.awt.Point point)
Component.setLocation(Point)
through queue
public void setName(java.lang.String string)
Component.setName(String)
through queue
public void setSize(int i, int i1)
Component.setSize(int, int)
through queue
public void setSize(java.awt.Dimension dimension)
Component.setSize(Dimension)
through queue
public void setVisible(boolean b)
Component.setVisible(boolean)
through queue
public void transferFocus()
Component.transferFocus()
through queue
public void update(java.awt.Graphics graphics)
Component.update(Graphics)
through queue
public void validate()
Component.validate()
through queue
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |