Package org.netbeans.jemmy

Examples of org.netbeans.jemmy.ComponentChooser


  getOutput().printLine("Wait items to be " +
            (selected ? "" : "un") + "selected in component \n    : "+
            toStringSource());
  getOutput().printGolden("Wait items to be " +
        (selected ? "" : "un") + "selected");
  waitState(new ComponentChooser() {
    public boolean checkComponent(Component comp) {
                    int[] indices = getSelectedIndices();
                    for(int i = 0; i < indices.length; i++) {
                        if(indices[i] != itemIndices[i]) {
                            return(false);
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

                           ((DescriptablePathChooser)chooser).getDescription() :
                           "Menu pushing");
        if(result instanceof JMenu) {
            for(int i = 1; i < chooser.getDepth(); i++) {
                final JMenu menu = (JMenu)result;
                final ComponentChooser popupChooser = new PopupMenuChooser(menu);
                action = new OneReleaseAction(chooser, i, oper, action.mousePressed) {
                        public MenuElement getMenuElement() {
                            Window win = JPopupMenuOperator.findJPopupWindow(popupChooser);
                            if(win != null && win.isShowing()) {
                                return(JPopupMenuOperator.findJPopupMenu(win, popupChooser));
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 Window getWindow() {
        if(getSource() instanceof Window) {
            return((Window)getSource());
        }
  Window window = (Window)getContainer(new ComponentChooser() {
                public boolean checkComponent(Component comp) {
                    return(comp instanceof Window);
                }
                public String getDescription() {
                    return("");
View Full Code Here

     * Waits for the component to be visible or unvisible.
     * @param visibility required visiblity.
     * @throws TimeoutExpiredException
     */
    public void waitComponentVisible(final boolean visibility) {
  waitState(new ComponentChooser() {
                public boolean checkComponent(Component comp) {
                    return(isVisible() == visibility);
                }
                public String getDescription() {
                    return("Component is " + (visibility ? "" : " not ") + "visible");
View Full Code Here

                }
            });
    }

    public void waitComponentShowing(final boolean visibility) {
  waitState(new ComponentChooser() {
                public boolean checkComponent(Component comp) {
                    return(isShowing() == visibility);
                }
                public String getDescription() {
                    return("Component is " + (visibility ? "" : " not ") + "showing");
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(isSelected() == selected);
    }
    public String getDescription() {
        return("Items has been " +
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.