Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.ComponentChooser


    public void waitExpanded(final TreePath path) {
        if(path != null) {
            getOutput().printLine("Wait \"" + path.toString() + "\" path to be expanded in component \n    : "+
                                  toStringSource());
            getOutput().printGolden("Wait \"" + path.toString() + "\" path to be expanded");
            waitState(new ComponentChooser() {
                    public boolean checkComponent(Component comp) {
                        return(isExpanded(path));
                    }
                    public String getDescription() {
                        return("Has \"" + path.toString() + "\" path expanded");
View Full Code Here


     */
    public void waitExpanded(final int row) {
  getOutput().printLine("Wait " + Integer.toString(row) + "'th row to be expanded in component \n    : "+
            toStringSource());
  getOutput().printGolden("Wait " + Integer.toString(row) + "'th row to be expanded");
  waitState(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
        return(isExpanded(row));
    }
    public String getDescription() {
        return("Has " + Integer.toString(row) + "'th row expanded");
View Full Code Here

    public void waitCollapsed(final TreePath path) {
        if(path != null) {
            getOutput().printLine("Wait \"" + path.toString() + "\" path to be collapsed in component \n    : "+
                                  toStringSource());
            getOutput().printGolden("Wait \"" + path.toString() + "\" path to be collapsed");
            waitState(new ComponentChooser() {
                    public boolean checkComponent(Component comp) {
                        return(isCollapsed(path));
                    }
                    public String getDescription() {
                        return("Has \"" + path.toString() + "\" path collapsed");
View Full Code Here

     */
    public void waitCollapsed(final int row) {
  getOutput().printLine("Wait " + Integer.toString(row) + "'th row to be collapsed in component \n    : "+
            toStringSource());
  getOutput().printGolden("Wait " + Integer.toString(row) + "'th row to be collapsed");
  waitState(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
        return(isCollapsed(row));
    }
    public String getDescription() {
        return("Has " + Integer.toString(row) + "'th row collapsed");
View Full Code Here

    public void waitVisible(final TreePath path) {
        if(path != null) {
            getOutput().printLine("Wait \"" + path.toString() + "\" path to be visible in component \n    : "+
                                  toStringSource());
            getOutput().printGolden("Wait \"" + path.toString() + "\" path to be visible");
            waitState(new ComponentChooser() {
                    public boolean checkComponent(Component comp) {
                        return(isVisible(path));
                    }
                    public String getDescription() {
                        return("Has \"" + path.toString() + "\" path visible");
View Full Code Here

     */
    public void waitSelected(final TreePath[] paths) {
  getOutput().printLine("Wait right selection in component \n    : "+
            toStringSource());
  getOutput().printGolden("Wait right selection");
  waitState(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
        TreePath[] rpaths = getSelectionModel().getSelectionPaths();
                    if(rpaths != null) {
                        for(int i = 0; i < rpaths.length; i++) {
                            if(!rpaths[i].equals(paths[i])) {
View Full Code Here

    /**
     * Waits for the frame to be iconified or deiconified.
     * @param icon whether the frame needs to be iconified.
     */
    public void waitIcon(final boolean icon) {
        waitState(new ComponentChooser() {
                public boolean checkComponent(Component comp) {
                    return(((JInternalFrame)comp).isIcon() == icon);
                }
                public String getDescription() {
                    return("Iconified JInternalFrame");
View Full Code Here

    /**
     * Waits for the frame to be maximized or demaximized.
     * @param maximum whether the frame needs to be maximized.
     */
    public void waitMaximum(final boolean maximum) {
        waitState(new ComponentChooser() {
                public boolean checkComponent(Component comp) {
                    return(((JInternalFrame)comp).isMaximum() == maximum);
                }
                public String getDescription() {
                    return("Maximizied JInternalFrame");
View Full Code Here

  Container titlePane = findTitlePane();
  if(!isIcon() && titlePane != null) {
      if(titleOperator == null) {
    titleOperator = new ContainerOperator(titlePane);
    int bttCount = 0;
    if(getContainer(new ComponentChooser() {
      public boolean checkComponent(Component comp) {
          return(comp instanceof JDesktopPane);
      }
      public String getDescription() {
          return("Desctop pane");
View Full Code Here

     */
    public void waitClosed() {
  getOutput().printLine("Wait window to be closed \n    : "+
            getSource().toString());
  getOutput().printGolden("Wait window to be closed");
  waitState(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
        return(!comp.isVisible());
    }
    public String getDescription() {
        return("Closed window");
View Full Code Here

TOP

Related Classes of org.netbeans.jemmy.ComponentChooser

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.