| java.lang.Object org.netbeans.jemmy.operators.Operator org.netbeans.jemmy.operators.ComponentOperator
All known Subclasses: org.netbeans.jemmy.operators.ContainerOperator, org.netbeans.jemmy.operators.ScrollbarOperator, org.netbeans.jemmy.operators.LabelOperator, org.netbeans.jemmy.operators.ButtonOperator, org.netbeans.jemmy.operators.TextComponentOperator, org.netbeans.jemmy.operators.ChoiceOperator, org.netbeans.jemmy.operators.CheckboxOperator, org.netbeans.jemmy.operators.ListOperator,
ComponentOperator | public class ComponentOperator extends Operator implements Timeoutable,Outputable(Code) | | 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"(*) .
See Also: org.netbeans.jemmy.Timeouts author: Alexandre Iline (alexandre.iline@sun.com) |
Method Summary | |
public void | activateWindow() Activates component's window. | public void | add(PopupMenu popupMenu) | public void | addComponentListener(ComponentListener componentListener) | public void | addFocusListener(FocusListener focusListener) | public void | addInputMethodListener(InputMethodListener inputMethodListener) | public void | addKeyListener(KeyListener keyListener) | public void | addMouseListener(MouseListener mouseListener) | public void | addMouseMotionListener(MouseMotionListener mouseMotionListener) | public void | addNotify() | public void | addPropertyChangeListener(PropertyChangeListener propertyChangeListener) | public void | addPropertyChangeListener(String string, PropertyChangeListener propertyChangeListener) | public int | checkImage(Image image, int i, int i1, ImageObserver imageObserver) | public int | checkImage(Image image, ImageObserver imageObserver) | public void | clickForPopup(int x, int y, int mouseButton) Clicks for popup. | public void | clickForPopup(int x, int y) Clicks for popup by popup mouse button. | public void | clickForPopup(int mouseButton) Clicks for popup at the component center. | public void | clickForPopup() Clicks for popup by popup mouse button at the component center. | public void | clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers, boolean forPopup) Makes mouse click. | public void | clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers) Makes mouse click. | public void | clickMouse(int x, int y, int clickCount, int mouseButton) Makes mouse click with 0 modifiers. | public void | clickMouse(int x, int y, int clickCount) Makes mouse click by default mouse button with 0 modifiers. | public void | clickMouse(int clickCount, int mouseButton) Makes mouse click on the component center with 0 modifiers. | public void | clickMouse(int clickCount) Makes mouse click on the component center by default mouse button with 0 modifiers. | public void | clickMouse() Makes siple mouse click on the component center by default mouse button with 0 modifiers. | public boolean | contains(int i, int i1) | public boolean | contains(Point point) | public void | copyEnvironment(Operator anotherOperator) | public Image | createImage(int i, int i1) | public Image | createImage(ImageProducer imageProducer) | public void | dispatchEvent(AWTEvent aWTEvent) | public void | doLayout() | public void | dragMouse(int x, int y, int mouseButton, int modifiers) Drag mouse over the component. | public void | dragMouse(int x, int y, int mouseButton) Drag mouse over the component with 0 modifiers. | public void | dragMouse(int x, int y) Drag mouse over the component with 0 modifiers and default mose button pressed. | public void | dragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton, int modifiers) Makes drag'n'drop operation. | 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. | 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. | public void | enableInputMethods(boolean b) | public void | enterMouse() Move mouse inside the component. | public void | exitMouse() Move mouse outside the component. | public static Component | findComponent(Container cont, ComponentChooser chooser, int index) Searches Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. | public static Component | findComponent(Container cont, ComponentChooser chooser) Searches Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. | public float | getAlignmentX() | public float | getAlignmentY() | public Color | getBackground() | public Rectangle | getBounds() | public Rectangle | getBounds(Rectangle rectangle) | public int | getCenterX() Return the center x coordinate. | public int | getCenterXForClick() Return the x coordinate which should be used
for mouse operations by default. | public int | getCenterY() Return the center y coordinate. | public int | getCenterYForClick() Return the y coordinate which should be used
for mouse operations by default. | public ColorModel | getColorModel() | public Component | getComponentAt(int i, int i1) | public Component | getComponentAt(Point point) | public ComponentOrientation | getComponentOrientation() | public Container | getContainer(ComponentChooser chooser) Searches a container.
Parameters: chooser - a chooser specifying the searching criteria. | public Container[] | getContainers() Returns an array of containers for this component. | public Cursor | getCursor() | public DropTarget | getDropTarget() | public Hashtable | getDump() Returns information about component. | public EventDispatcher | getEventDispatcher() Returnes org.netbeans.jemmy.EventDispatcher instance which is
used to dispatch events. | public void | getFocus() Gives inout focud to the component. | public Font | getFont() | public FontMetrics | getFontMetrics(Font font) | public Color | getForeground() | public Graphics | getGraphics() | public int | getHeight() | public InputContext | getInputContext() | public InputMethodRequests | getInputMethodRequests() | public Locale | getLocale() | public Point | getLocation() | public Point | getLocation(Point point) | public Point | getLocationOnScreen() | public Dimension | getMaximumSize() | public Dimension | getMinimumSize() | public String | getName() | public TestOut | getOutput() | public Container | getParent() | public Dimension | getPreferredSize() | public Dimension | getSize() | public Dimension | getSize(Dimension dimension) | public Component | getSource() Returns component. | public Timeouts | getTimeouts() | public Toolkit | getToolkit() | public Object | getTreeLock() | public int | getWidth() | public Window | getWindow() Searches the window under component. | public int | getX() | public int | getY() | public boolean | hasFocus() | public boolean | imageUpdate(Image image, int i, int i1, int i2, int i3, int i4) | public void | invalidate() | public boolean | isDisplayable() | public boolean | isDoubleBuffered() | public boolean | isEnabled() | public boolean | isFocusTraversable() | public boolean | isLightweight() | public boolean | isOpaque() | public boolean | isShowing() | public boolean | isValid() | public boolean | isVisible() | public void | list() | public void | list(PrintStream printStream) | public void | list(PrintStream printStream, int i) | public void | list(PrintWriter printWriter) | public void | list(PrintWriter printWriter, int i) | public void | makeComponentVisible() Prepares component for user input. | public void | moveMouse(int x, int y) Move mouse over the component. | public void | paint(Graphics graphics) | public void | paintAll(Graphics graphics) | public boolean | prepareImage(Image image, int i, int i1, ImageObserver imageObserver) | public boolean | prepareImage(Image image, ImageObserver imageObserver) | public void | pressKey(int keyCode, int modifiers) Press key. | public void | pressKey(int keyCode) Press key with no modifiers. | public void | pressMouse(int x, int y) Press mouse. | public void | pressMouse() Press mouse. | public void | print(Graphics graphics) | public void | printAll(Graphics graphics) | public void | pushKey(int keyCode, int modifiers) Pushs key. | public void | pushKey(int keyCode) Pushs key. | public void | releaseKey(int keyCode, int modifiers) Releases key. | public void | releaseKey(int keyCode) Releases key with no modifiers. | public void | releaseMouse(int x, int y) Releases mouse. | public void | releaseMouse() Releases mouse. | public void | remove(MenuComponent menuComponent) | public void | removeComponentListener(ComponentListener componentListener) | public void | removeFocusListener(FocusListener focusListener) | public void | removeInputMethodListener(InputMethodListener inputMethodListener) | public void | removeKeyListener(KeyListener keyListener) | public void | removeMouseListener(MouseListener mouseListener) | public void | removeMouseMotionListener(MouseMotionListener mouseMotionListener) | public void | removeNotify() | public void | removePropertyChangeListener(PropertyChangeListener propertyChangeListener) | public void | removePropertyChangeListener(String string, PropertyChangeListener propertyChangeListener) | public void | repaint() | public void | repaint(int i, int i1, int i2, int i3) | public void | repaint(long l) | public void | repaint(long l, int i, int i1, int i2, int i3) | public void | requestFocus() | public void | setBackground(Color color) | public void | setBounds(int i, int i1, int i2, int i3) | public void | setBounds(Rectangle rectangle) | public void | setComponentOrientation(ComponentOrientation componentOrientation) | public void | setCursor(Cursor cursor) | public void | setDropTarget(DropTarget dropTarget) | public void | setEnabled(boolean b) | public void | setFont(Font font) | public void | setForeground(Color color) | public void | setLocale(Locale locale) | public void | setLocation(int i, int i1) | public void | setLocation(Point point) | public void | setName(String string) | public void | setOutput(TestOut out) | public void | setSize(int i, int i1) | public void | setSize(Dimension dimension) | public void | setTimeouts(Timeouts timeouts) | public void | setVisible(boolean b) | public void | transferFocus() | public void | typeKey(int keyCode, char keyChar, int modifiers) Types one char. | public void | typeKey(char keyChar, int modifiers) Types one char. | public void | typeKey(char keyChar) Types one char. | public void | update(Graphics graphics) | public void | validate() | public static Component | waitComponent(Container cont, ComponentChooser chooser, int index) Waits Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. | public static Component | waitComponent(Container cont, ComponentChooser chooser) Waits Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. | protected static Component | waitComponent(ContainerOperator contOper, ComponentChooser chooser, int index) A method to be used from subclasses.
Uses contOper 's timeouts and output during the waiting.
Parameters: contOper - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. | 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. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. Parameters: timeouts - timeouts to be used during the waiting. Parameters: output - an output to be used during the waiting. | public void | waitComponentEnabled() Waits for the component to be enabled. | public void | waitComponentShowing(boolean visibility) | public void | waitComponentVisible(boolean visibility) Waits for the component to be visible or unvisible. | public void | waitHasFocus() Waits for this Component has the keyboard focus. | public void | wtComponentEnabled() Waits for the component to be enabled. |
ComponentOperator | public ComponentOperator(Component comp)(Code) | | Constructor.
Parameters: comp - a component |
ComponentOperator | public ComponentOperator(ContainerOperator cont, ComponentChooser chooser, int index)(Code) | | Constructs a ComponentOperator object.
Parameters: cont - container Parameters: chooser - a component chooser specifying searching criteria. Parameters: index - an index between appropriate ones. |
ComponentOperator | public ComponentOperator(ContainerOperator cont, ComponentChooser chooser)(Code) | | Constructs a ComponentOperator object.
Parameters: cont - container Parameters: chooser - a component chooser specifying searching criteria. |
ComponentOperator | public ComponentOperator(ContainerOperator cont, int index)(Code) | | Constructor.
Waits for a component in a container to show. The component is
iis the 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.
Parameters: cont - Operator for a java.awt.Container. Parameters: index - an index between appropriate ones. throws: TimeoutExpiredException - |
ComponentOperator | public ComponentOperator(ContainerOperator cont)(Code) | | Constructor.
Waits for a component in a container to show. The component is
is the first 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.
Parameters: cont - Operator for a java.awt.Container. throws: TimeoutExpiredException - |
add | public void add(PopupMenu popupMenu)(Code) | | Maps Component.add(PopupMenu) through queue
|
addComponentListener | public void addComponentListener(ComponentListener componentListener)(Code) | | Maps Component.addComponentListener(ComponentListener) through queue
|
addFocusListener | public void addFocusListener(FocusListener focusListener)(Code) | | Maps Component.addFocusListener(FocusListener) through queue
|
addInputMethodListener | public void addInputMethodListener(InputMethodListener inputMethodListener)(Code) | | Maps Component.addInputMethodListener(InputMethodListener) through queue
|
addKeyListener | public void addKeyListener(KeyListener keyListener)(Code) | | Maps Component.addKeyListener(KeyListener) through queue
|
addMouseListener | public void addMouseListener(MouseListener mouseListener)(Code) | | Maps Component.addMouseListener(MouseListener) through queue
|
addMouseMotionListener | public void addMouseMotionListener(MouseMotionListener mouseMotionListener)(Code) | | Maps Component.addMouseMotionListener(MouseMotionListener) through queue
|
addNotify | public void addNotify()(Code) | | Maps Component.addNotify() through queue
|
addPropertyChangeListener | public void addPropertyChangeListener(PropertyChangeListener propertyChangeListener)(Code) | | Maps Component.addPropertyChangeListener(PropertyChangeListener) through queue
|
addPropertyChangeListener | public void addPropertyChangeListener(String string, PropertyChangeListener propertyChangeListener)(Code) | | Maps Component.addPropertyChangeListener(String, PropertyChangeListener) through queue
|
checkImage | public int checkImage(Image image, int i, int i1, ImageObserver imageObserver)(Code) | | Maps Component.checkImage(Image, int, int, ImageObserver) through queue
|
checkImage | public int checkImage(Image image, ImageObserver imageObserver)(Code) | | Maps Component.checkImage(Image, ImageObserver) through queue
|
clickMouse | public void clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers, boolean forPopup)(Code) | | Makes mouse click.
Parameters: x - Horizontal click coordinate Parameters: y - Vertical click coordinate Parameters: clickCount - Click count Parameters: mouseButton - Mouse button (InputEvent.BUTTON1/2/3_MASK value) Parameters: modifiers - Modifiers (combination of InputEvent.*_MASK values) Parameters: forPopup - signals that click is intended to call popup. |
clickMouse | public void clickMouse(int x, int y, int clickCount, int mouseButton, int modifiers)(Code) | | Makes mouse click.
Parameters: x - Horizontal click coordinate Parameters: y - Vertical click coordinate Parameters: clickCount - Click count Parameters: mouseButton - Mouse button (InputEvent.BUTTON1/2/3_MASK value) Parameters: modifiers - Modifiers (combination of InputEvent.*_MASK values) See Also: ComponentOperator.clickMouse(int,int,int,int,int,boolean) |
clickMouse | public void clickMouse(int x, int y, int clickCount, int mouseButton)(Code) | | Makes mouse click with 0 modifiers.
Parameters: x - Horizontal click coordinate Parameters: y - Vertical click coordinate Parameters: clickCount - Click count Parameters: mouseButton - Mouse button (InputEvent.BUTTON1/2/3_MASK value) See Also: ComponentOperator.clickMouse(int,int,int,int,int) |
clickMouse | public void clickMouse(int clickCount, int mouseButton)(Code) | | Makes mouse click on the component center with 0 modifiers.
Parameters: clickCount - Click count Parameters: mouseButton - Mouse button (InputEvent.BUTTON1/2/3_MASK value) See Also: ComponentOperator.clickMouse(int,int,int,int) |
contains | public boolean contains(int i, int i1)(Code) | | Maps Component.contains(int, int) through queue
|
contains | public boolean contains(Point point)(Code) | | Maps Component.contains(Point) through queue
|
copyEnvironment | public void copyEnvironment(Operator anotherOperator)(Code) | | |
createImage | public Image createImage(int i, int i1)(Code) | | Maps Component.createImage(int, int) through queue
|
createImage | public Image createImage(ImageProducer imageProducer)(Code) | | Maps Component.createImage(ImageProducer) through queue
|
dispatchEvent | public void dispatchEvent(AWTEvent aWTEvent)(Code) | | Maps Component.dispatchEvent(AWTEvent) through queue
|
doLayout | public void doLayout()(Code) | | Maps Component.doLayout() through queue
|
dragMouse | public void dragMouse(int x, int y, int mouseButton, int modifiers)(Code) | | Drag mouse over the component.
Parameters: x - Horisontal destination coordinate. Parameters: y - Vertical destination coordinate. Parameters: mouseButton - Mouse button Parameters: modifiers - Modifiers |
dragMouse | public void dragMouse(int x, int y, int mouseButton)(Code) | | Drag mouse over the component with 0 modifiers.
Parameters: x - Horisontal destination coordinate. Parameters: y - Vertical destination coordinate. Parameters: mouseButton - Mouse button See Also: ComponentOperator.dragMouse(int,int,int,int) |
dragNDrop | public void dragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton, int modifiers)(Code) | | Makes drag'n'drop operation.
Parameters: start_x - Start horizontal coordinate Parameters: start_y - Start vertical coordinate Parameters: end_x - End horizontal coordinate Parameters: end_y - End vertical coordinate Parameters: mouseButton - Mouse button Parameters: modifiers - Modifiers |
dragNDrop | public void dragNDrop(int start_x, int start_y, int end_x, int end_y, int mouseButton)(Code) | | Makes drag'n'drop operation with 0 modifiers.
Parameters: start_x - Start horizontal coordinate Parameters: start_y - Start vertical coordinate Parameters: end_x - End horizontal coordinate Parameters: end_y - End vertical coordinate Parameters: mouseButton - Mouse button See Also: ComponentOperator.dragNDrop(int,int,int,int,int,int) |
enableInputMethods | public void enableInputMethods(boolean b)(Code) | | Maps Component.enableInputMethods(boolean) through queue
|
enterMouse | public void enterMouse()(Code) | | Move mouse inside the component.
|
exitMouse | public void exitMouse()(Code) | | Move mouse outside the component.
|
findComponent | public static Component findComponent(Container cont, ComponentChooser chooser, int index)(Code) | | Searches Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. Component instance or null if component was not found. |
findComponent | public static Component findComponent(Container cont, ComponentChooser chooser)(Code) | | Searches Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Component instance or null if component was not found. |
getAlignmentX | public float getAlignmentX()(Code) | | Maps Component.getAlignmentX() through queue
|
getAlignmentY | public float getAlignmentY()(Code) | | Maps Component.getAlignmentY() through queue
|
getBackground | public Color getBackground()(Code) | | Maps Component.getBackground() through queue
|
getBounds | public Rectangle getBounds()(Code) | | Maps Component.getBounds() through queue
|
getCenterX | public int getCenterX()(Code) | | Return the center x coordinate.
the center x coordinate. |
getCenterXForClick | public int getCenterXForClick()(Code) | | Return the x coordinate which should be used
for mouse operations by default.
the center x coordinate of the visible component part. |
getCenterY | public int getCenterY()(Code) | | Return the center y coordinate.
the center y coordinate. |
getCenterYForClick | public int getCenterYForClick()(Code) | | Return the y coordinate which should be used
for mouse operations by default.
the center y coordinate of the visible component part. |
getColorModel | public ColorModel getColorModel()(Code) | | Maps Component.getColorModel() through queue
|
getComponentAt | public Component getComponentAt(int i, int i1)(Code) | | Maps Component.getComponentAt(int, int) through queue
|
getComponentAt | public Component getComponentAt(Point point)(Code) | | Maps Component.getComponentAt(Point) through queue
|
getComponentOrientation | public ComponentOrientation getComponentOrientation()(Code) | | Maps Component.getComponentOrientation() through queue
|
getContainer | public Container getContainer(ComponentChooser chooser)(Code) | | Searches a container.
Parameters: chooser - a chooser specifying the searching criteria. a containers specified by searching criteria. |
getContainers | public Container[] getContainers()(Code) | | Returns an array of containers for this component.
an array of containers |
getCursor | public Cursor getCursor()(Code) | | Maps Component.getCursor() through queue
|
getDropTarget | public DropTarget getDropTarget()(Code) | | Maps Component.getDropTarget() through queue
|
getDump | public Hashtable getDump()(Code) | | Returns information about component.
|
getFocus | public void getFocus()(Code) | | Gives inout focud to the component.
|
getFont | public Font getFont()(Code) | | Maps Component.getFont() through queue
|
getFontMetrics | public FontMetrics getFontMetrics(Font font)(Code) | | Maps Component.getFontMetrics(Font) through queue
|
getForeground | public Color getForeground()(Code) | | Maps Component.getForeground() through queue
|
getGraphics | public Graphics getGraphics()(Code) | | Maps Component.getGraphics() through queue
|
getHeight | public int getHeight()(Code) | | Maps Component.getHeight() through queue
|
getInputContext | public InputContext getInputContext()(Code) | | Maps Component.getInputContext() through queue
|
getInputMethodRequests | public InputMethodRequests getInputMethodRequests()(Code) | | Maps Component.getInputMethodRequests() through queue
|
getLocale | public Locale getLocale()(Code) | | Maps Component.getLocale() through queue
|
getLocation | public Point getLocation()(Code) | | Maps Component.getLocation() through queue
|
getLocation | public Point getLocation(Point point)(Code) | | Maps Component.getLocation(Point) through queue
|
getLocationOnScreen | public Point getLocationOnScreen()(Code) | | Maps Component.getLocationOnScreen() through queue
|
getMaximumSize | public Dimension getMaximumSize()(Code) | | Maps Component.getMaximumSize() through queue
|
getMinimumSize | public Dimension getMinimumSize()(Code) | | Maps Component.getMinimumSize() through queue
|
getName | public String getName()(Code) | | Maps Component.getName() through queue
|
getParent | public Container getParent()(Code) | | Maps Component.getParent() through queue
|
getPreferredSize | public Dimension getPreferredSize()(Code) | | Maps Component.getPreferredSize() through queue
|
getSize | public Dimension getSize()(Code) | | Maps Component.getSize() through queue
|
getToolkit | public Toolkit getToolkit()(Code) | | Maps Component.getToolkit() through queue
|
getTreeLock | public Object getTreeLock()(Code) | | Maps Component.getTreeLock() through queue
|
getWidth | public int getWidth()(Code) | | Maps Component.getWidth() through queue
|
getWindow | public Window getWindow()(Code) | | Searches the window under component.
the component window. |
getX | public int getX()(Code) | | Maps Component.getX() through queue
|
getY | public int getY()(Code) | | Maps Component.getY() through queue
|
hasFocus | public boolean hasFocus()(Code) | | Maps Component.hasFocus() through queue
|
imageUpdate | public boolean imageUpdate(Image image, int i, int i1, int i2, int i3, int i4)(Code) | | Maps Component.imageUpdate(Image, int, int, int, int, int) through queue
|
invalidate | public void invalidate()(Code) | | Maps Component.invalidate() through queue
|
isDisplayable | public boolean isDisplayable()(Code) | | Maps Component.isDisplayable() through queue
|
isDoubleBuffered | public boolean isDoubleBuffered()(Code) | | Maps Component.isDoubleBuffered() through queue
|
isEnabled | public boolean isEnabled()(Code) | | Maps Component.isEnabled() through queue
|
isFocusTraversable | public boolean isFocusTraversable()(Code) | | Maps Component.isFocusTraversable() through queue
|
isLightweight | public boolean isLightweight()(Code) | | Maps Component.isLightweight() through queue
|
isOpaque | public boolean isOpaque()(Code) | | Maps Component.isOpaque() through queue
|
isShowing | public boolean isShowing()(Code) | | Maps Component.isShowing() through queue
|
isValid | public boolean isValid()(Code) | | Maps Component.isValid() through queue
|
isVisible | public boolean isVisible()(Code) | | Maps Component.isVisible() through queue
|
list | public void list()(Code) | | Maps Component.list() through queue
|
list | public void list(PrintStream printStream)(Code) | | Maps Component.list(PrintStream) through queue
|
list | public void list(PrintStream printStream, int i)(Code) | | Maps Component.list(PrintStream, int) through queue
|
list | public void list(PrintWriter printWriter)(Code) | | Maps Component.list(PrintWriter) through queue
|
list | public void list(PrintWriter printWriter, int i)(Code) | | Maps Component.list(PrintWriter, int) through queue
|
makeComponentVisible | public void makeComponentVisible()(Code) | | Prepares component for user input.
Uses visualizer defined by setVisualiser() method.
|
moveMouse | public void moveMouse(int x, int y)(Code) | | Move mouse over the component.
Parameters: x - Horisontal destination coordinate. Parameters: y - Vertical destination coordinate. |
paint | public void paint(Graphics graphics)(Code) | | Maps Component.paint(Graphics) through queue
|
paintAll | public void paintAll(Graphics graphics)(Code) | | Maps Component.paintAll(Graphics) through queue
|
prepareImage | public boolean prepareImage(Image image, int i, int i1, ImageObserver imageObserver)(Code) | | Maps Component.prepareImage(Image, int, int, ImageObserver) through queue
|
prepareImage | public boolean prepareImage(Image image, ImageObserver imageObserver)(Code) | | Maps Component.prepareImage(Image, ImageObserver) through queue
|
pressKey | public void pressKey(int keyCode, int modifiers)(Code) | | Press key.
Parameters: keyCode - Key code (KeyEvent.VK_* value) Parameters: modifiers - Modifiers (combination of InputEvent.*_MASK fields) |
pressKey | public void pressKey(int keyCode)(Code) | | Press key with no modifiers.
Parameters: keyCode - Key code (KeyEvent.VK_* value) |
pressMouse | public void pressMouse(int x, int y)(Code) | | Press mouse.
Parameters: x - Horizontal click coordinate Parameters: y - Vertical click coordinate |
pressMouse | public void pressMouse()(Code) | | Press mouse.
|
print | public void print(Graphics graphics)(Code) | | Maps Component.print(Graphics) through queue
|
printAll | public void printAll(Graphics graphics)(Code) | | Maps Component.printAll(Graphics) through queue
|
pushKey | public void pushKey(int keyCode, int modifiers)(Code) | | Pushs key.
Parameters: keyCode - Key code (KeyEvent.VK_* value) Parameters: modifiers - Modifiers (combination of InputEvent.*_MASK fields) |
pushKey | public void pushKey(int keyCode)(Code) | | Pushs key.
Parameters: keyCode - Key code (KeyEvent.VK_* value) |
releaseKey | public void releaseKey(int keyCode, int modifiers)(Code) | | Releases key.
Parameters: keyCode - Key code (KeyEvent.VK_* value) Parameters: modifiers - Modifiers (combination of InputEvent.*_MASK fields) |
releaseKey | public void releaseKey(int keyCode)(Code) | | Releases key with no modifiers.
Parameters: keyCode - Key code (KeyEvent.VK_* value) |
releaseMouse | public void releaseMouse(int x, int y)(Code) | | Releases mouse.
Parameters: x - Horizontal click coordinate Parameters: y - Vertical click coordinate |
releaseMouse | public void releaseMouse()(Code) | | Releases mouse.
|
remove | public void remove(MenuComponent menuComponent)(Code) | | Maps Component.remove(MenuComponent) through queue
|
removeComponentListener | public void removeComponentListener(ComponentListener componentListener)(Code) | | Maps Component.removeComponentListener(ComponentListener) through queue
|
removeFocusListener | public void removeFocusListener(FocusListener focusListener)(Code) | | Maps Component.removeFocusListener(FocusListener) through queue
|
removeInputMethodListener | public void removeInputMethodListener(InputMethodListener inputMethodListener)(Code) | | Maps Component.removeInputMethodListener(InputMethodListener) through queue
|
removeKeyListener | public void removeKeyListener(KeyListener keyListener)(Code) | | Maps Component.removeKeyListener(KeyListener) through queue
|
removeMouseListener | public void removeMouseListener(MouseListener mouseListener)(Code) | | Maps Component.removeMouseListener(MouseListener) through queue
|
removeMouseMotionListener | public void removeMouseMotionListener(MouseMotionListener mouseMotionListener)(Code) | | Maps Component.removeMouseMotionListener(MouseMotionListener) through queue
|
removeNotify | public void removeNotify()(Code) | | Maps Component.removeNotify() through queue
|
removePropertyChangeListener | public void removePropertyChangeListener(PropertyChangeListener propertyChangeListener)(Code) | | Maps Component.removePropertyChangeListener(PropertyChangeListener) through queue
|
removePropertyChangeListener | public void removePropertyChangeListener(String string, PropertyChangeListener propertyChangeListener)(Code) | | Maps Component.removePropertyChangeListener(String, PropertyChangeListener) through queue
|
repaint | public void repaint()(Code) | | Maps Component.repaint() through queue
|
repaint | public void repaint(int i, int i1, int i2, int i3)(Code) | | Maps Component.repaint(int, int, int, int) through queue
|
repaint | public void repaint(long l)(Code) | | Maps Component.repaint(long) through queue
|
repaint | public void repaint(long l, int i, int i1, int i2, int i3)(Code) | | Maps Component.repaint(long, int, int, int, int) through queue
|
requestFocus | public void requestFocus()(Code) | | Maps Component.requestFocus() through queue
|
setBackground | public void setBackground(Color color)(Code) | | Maps Component.setBackground(Color) through queue
|
setBounds | public void setBounds(int i, int i1, int i2, int i3)(Code) | | Maps Component.setBounds(int, int, int, int) through queue
|
setBounds | public void setBounds(Rectangle rectangle)(Code) | | Maps Component.setBounds(Rectangle) through queue
|
setComponentOrientation | public void setComponentOrientation(ComponentOrientation componentOrientation)(Code) | | Maps Component.setComponentOrientation(ComponentOrientation) through queue
|
setCursor | public void setCursor(Cursor cursor)(Code) | | Maps Component.setCursor(Cursor) through queue
|
setDropTarget | public void setDropTarget(DropTarget dropTarget)(Code) | | Maps Component.setDropTarget(DropTarget) through queue
|
setEnabled | public void setEnabled(boolean b)(Code) | | Maps Component.setEnabled(boolean) through queue
|
setFont | public void setFont(Font font)(Code) | | Maps Component.setFont(Font) through queue
|
setForeground | public void setForeground(Color color)(Code) | | Maps Component.setForeground(Color) through queue
|
setLocale | public void setLocale(Locale locale)(Code) | | Maps Component.setLocale(Locale) through queue
|
setLocation | public void setLocation(int i, int i1)(Code) | | Maps Component.setLocation(int, int) through queue
|
setLocation | public void setLocation(Point point)(Code) | | Maps Component.setLocation(Point) through queue
|
setName | public void setName(String string)(Code) | | Maps Component.setName(String) through queue
|
setSize | public void setSize(int i, int i1)(Code) | | Maps Component.setSize(int, int) through queue
|
setSize | public void setSize(Dimension dimension)(Code) | | Maps Component.setSize(Dimension) through queue
|
setVisible | public void setVisible(boolean b)(Code) | | Maps Component.setVisible(boolean) through queue
|
transferFocus | public void transferFocus()(Code) | | Maps Component.transferFocus() through queue
|
typeKey | public void typeKey(int keyCode, char keyChar, int modifiers)(Code) | | Types one char.
Parameters: keyCode - Key code (KeyEvent.VK_* value) Parameters: keyChar - Char to be typed. Parameters: modifiers - Modifiers (combination of InputEvent.*_MASK fields) |
update | public void update(Graphics graphics)(Code) | | Maps Component.update(Graphics) through queue
|
validate | public void validate()(Code) | | Maps Component.validate() through queue
|
waitComponent | public static Component waitComponent(Container cont, ComponentChooser chooser, int index)(Code) | | Waits Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. Component instance or null if component was not found. throws: TimeoutExpiredException - |
waitComponent | public static Component waitComponent(Container cont, ComponentChooser chooser)(Code) | | Waits Component in container.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Component instance or null if component was not found. throws: TimeoutExpiredException - |
waitComponent | protected static Component waitComponent(ContainerOperator contOper, ComponentChooser chooser, int index)(Code) | | A method to be used from subclasses.
Uses contOper 's timeouts and output during the waiting.
Parameters: contOper - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. 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)(Code) | | A method to be used from subclasses.
Uses timeouts and output passed as parameters during the waiting.
Parameters: cont - Container to search component in. Parameters: chooser - org.netbeans.jemmy.ComponentChooser implementation. Parameters: index - Ordinal component index. Parameters: timeouts - timeouts to be used during the waiting. Parameters: output - an output to be used during the waiting. Component instance or null if component was not found. throws: TimeoutExpiredException - |
waitComponentShowing | public void waitComponentShowing(boolean visibility)(Code) | | |
waitComponentVisible | public void waitComponentVisible(boolean visibility)(Code) | | Waits for the component to be visible or unvisible.
Parameters: visibility - required visiblity. throws: TimeoutExpiredException - |
wtComponentEnabled | public void wtComponentEnabled()(Code) | | Waits for the component to be enabled.
per request: 37831
throws: TimeoutExpiredException - |
Methods inherited from org.netbeans.jemmy.operators.Operator | public static void addOperatorPackage(String pkgName)(Code)(Java Doc) protected String[] addToDump(Hashtable table, String title, Object[] items)(Code)(Java Doc) protected String[] addToDump(Hashtable table, String title, Object[][] items)(Code)(Java Doc) public void copyEnvironment(Operator anotherOperator)(Code)(Java Doc) public static ComponentOperator createOperator(Component comp)(Code)(Java Doc) public CharBindingMap getCharBindingMap()(Code)(Java Doc) public int getCharKey(char c)(Code)(Java Doc) public int getCharModifiers(char c)(Code)(Java Doc) public int[] getCharsKeys(char[] c)(Code)(Java Doc) public int[] getCharsKeys(String s)(Code)(Java Doc) public int[] getCharsModifiers(char[] c)(Code)(Java Doc) public int[] getCharsModifiers(String s)(Code)(Java Doc) public StringComparator getComparator()(Code)(Java Doc) public static ComponentVisualizer getDefaultComponentVisualizer()(Code)(Java Doc) public static int getDefaultMouseButton()(Code)(Java Doc) public static PathParser getDefaultPathParser()(Code)(Java Doc) public static StringComparator getDefaultStringComparator()(Code)(Java Doc) public static boolean getDefaultVerification()(Code)(Java Doc) public Hashtable getDump()(Code)(Java Doc) public static Operator getEnvironmentOperator()(Code)(Java Doc) public TestOut getOutput()(Code)(Java Doc) public String[] getParentPath(String path)(Code)(Java Doc) public ComponentChooser[] getParentPath(ComponentChooser path)(Code)(Java Doc) public PathParser getPathParser()(Code)(Java Doc) public static int getPopupMouseButton()(Code)(Java Doc) public JemmyProperties getProperties()(Code)(Java Doc) public QueueTool getQueueTool()(Code)(Java Doc) abstract public Component getSource()(Code)(Java Doc) public Timeouts getTimeouts()(Code)(Java Doc) public boolean getVerification()(Code)(Java Doc) public ComponentVisualizer getVisualizer()(Code)(Java Doc) public static boolean isCaptionEqual(String caption, String match, boolean ce, boolean ccs)(Code)(Java Doc) public static boolean isCaptionEqual(String caption, String match, StringComparator comparator)(Code)(Java Doc) public boolean isCaptionEqual(String caption, String match)(Code)(Java Doc) protected void lockQueue()(Code)(Java Doc) public String[] parseString(String path)(Code)(Java Doc) public String[] parseString(String path, String delim)(Code)(Java Doc) public void printDump()(Code)(Java Doc) protected void produceNoBlocking(NoBlockingAction action, Object param)(Code)(Java Doc) protected void produceNoBlocking(NoBlockingAction action)(Code)(Java Doc) protected Object produceTimeRestricted(Action action, Object param, long wholeTime)(Code)(Java Doc) protected Object produceTimeRestricted(Action action, long wholeTime)(Code)(Java Doc) protected Object runMapping(MapAction action)(Code)(Java Doc) protected char runMapping(MapCharacterAction action)(Code)(Java Doc) protected byte runMapping(MapByteAction action)(Code)(Java Doc) protected int runMapping(MapIntegerAction action)(Code)(Java Doc) protected long runMapping(MapLongAction action)(Code)(Java Doc) protected float runMapping(MapFloatAction action)(Code)(Java Doc) protected double runMapping(MapDoubleAction action)(Code)(Java Doc) protected boolean runMapping(MapBooleanAction action)(Code)(Java Doc) protected void runMapping(MapVoidAction action)(Code)(Java Doc) public void setCharBindingMap(CharBindingMap map)(Code)(Java Doc) public void setComparator(StringComparator comparator)(Code)(Java Doc) public static ComponentVisualizer setDefaultComponentVisualizer(ComponentVisualizer visualizer)(Code)(Java Doc) public static PathParser setDefaultPathParser(PathParser parser)(Code)(Java Doc) public static StringComparator setDefaultStringComparator(StringComparator comparator)(Code)(Java Doc) public static boolean setDefaultVerification(boolean verification)(Code)(Java Doc) public void setOutput(TestOut out)(Code)(Java Doc) public void setPathParser(PathParser parser)(Code)(Java Doc) public JemmyProperties setProperties(JemmyProperties properties)(Code)(Java Doc) public void setTimeouts(Timeouts timeouts)(Code)(Java Doc) public boolean setVerification(boolean verification)(Code)(Java Doc) public void setVisualizer(ComponentVisualizer vo)(Code)(Java Doc) public String toStringSource()(Code)(Java Doc) protected void unlockAndThrow(Exception e)(Code)(Java Doc) protected void unlockQueue()(Code)(Java Doc) public void waitState(ComponentChooser state)(Code)(Java Doc)
|
|
|