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

     */
    public void waitSelected(final boolean selected) {
  getOutput().printLine("Wait button to be selected \n    : "+
            toStringSource());
  getOutput().printGolden("Wait button to be selected");
  waitState(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
                    return(getState() == selected);
    }
    public String getDescription() {
        return("Items has been " +
View Full Code Here

    /**
     * Searches JButton inside component.
     * @return JButton which is used to expand this JComboBox.
     */
    public JButton findJButton() {
  return((JButton)waitSubComponent(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
        return(comp instanceof JButton);
    }
    public String getDescription() {
        return("Button for combobox popup menu opening");
View Full Code Here

    /**
     * Searches JTextField inside component.
     * @return JTextField if JComboBox is editable, null otherwise.
     */
    public JTextField findJTextField() {
  return((JTextField)waitSubComponent(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
        return(comp instanceof JTextField);
    }
    public String getDescription() {
        return("ComboBox's text field");
View Full Code Here

     */
    public int waitItem(final String item, final StringComparator comparator) {
  getOutput().printLine("Wait item \"" + item + "\" available in combo box \n    : "+
            toStringSource());
  getOutput().printGolden("Wait item \"" + item + "\" available in combo box.");
  waitState(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
                    return findItemIndex(item, comparator) > -1;
    }
    public String getDescription() {
                    return "Item \"" + item + "\" available in combo box.";
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.