Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.Action


     * @param text New text value. Shouln't include final '\n'.
     *
     */
    public void enterText(final String text) {
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.enterText(TextComponentOperator.this, text);
        return(null);
    }
    public String getDescription() {
View Full Code Here


     * @param text New text value. Shouln't include final '\n'.
     * @throws TimeoutExpiredException
     */
    public void enterText(final String text) {
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.enterText(JTextComponentOperator.this, text);
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * @throws TimeoutExpiredException
     */
    public void changeCaretPosition(final int position) {
  output.printLine("Change caret position to " + Integer.toString(position));
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.changeCaretPosition(JTextComponentOperator.this, position);
        return(null);
    }
    public String getDescription() {
View Full Code Here

       Integer.toString(caretPosition) + " position " +
       "in text component\n    : " +
       toStringSource());
  output.printGolden("Typing text \"" + text + "\" in text component");
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.typeText(JTextComponentOperator.this, text, caretPosition);
        return(null);
    }
    public String getDescription() {
View Full Code Here

       Integer.toString(startPosition) + " to " +
       Integer.toString(finalPosition) +
       " in text component\n    : " +
       toStringSource());
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.selectText(JTextComponentOperator.this, startPosition, finalPosition);
        return(null);
    }
    public String getDescription() {
View Full Code Here

    public void clearText() {
  output.printLine("Clearing text in text component\n    : " +
       toStringSource());
  output.printGolden("Clearing text in text component");
  makeComponentVisible();
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.clearText(JTextComponentOperator.this);
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * @param choosers Array of choosers to find menuItems to push.
     * @return Last pushed JMenuItem.
     * @throws TimeoutExpiredException
     */
    public JMenuItem pushMenu(final ComponentChooser[] choosers) {
  return((JMenuItem)produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
                    //TDB 1.5 menu workaround
                    getQueueTool().waitEmpty();
                    Object result = driver.pushMenu(JMenuOperator.this, converChoosers(choosers));
                    getQueueTool().waitEmpty();
View Full Code Here

     * Scrolls to the position defined by a ScrollAdjuster implementation.
     * @param adj defines scrolling direction, and so on.
     * @throws TimeoutExpiredException
     */
    public void scrollTo(final ScrollAdjuster adj) {
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scroll(JSplitPaneOperator.this, adj);
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * Moves the divider all the way to the left/top.
     */
    public void moveToMinimum() {
  output.printTrace("Scroll JSplitPane to minimum. JSplitPane :    \n" + toStringSource());
  output.printGolden("Scroll JSplitPane to minimum.");
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scrollToMinimum(JSplitPaneOperator.this, getOrientation());
        return(null);
    }
    public String getDescription() {
View Full Code Here

     * Moves the divider all the way to the right/bottom.
     */
    public void moveToMaximum() {
  output.printTrace("Scroll JSplitPane to maximum. JSplitPane :    \n" + toStringSource());
  output.printGolden("Scroll JSplitPane to maximum.");
  produceTimeRestricted(new Action() {
    public Object launch(Object obj) {
        driver.scrollToMaximum(JSplitPaneOperator.this, getOrientation());
        return(null);
    }
    public String getDescription() {
View Full Code Here

TOP

Related Classes of org.netbeans.jemmy.Action

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.