Examples of focus()


Examples of abbot.tester.JComponentTester.focus()

    HomePieceOfFurniture homePiece = (HomePieceOfFurniture)homeSelectedItems.get(0);
    assertEquals("Wrong home piece name", pieceTestName, homePiece.getName());
   
    // 11. Transfer focus to tree
    JComponent catalogView = (JComponent)controller.getFurnitureCatalogController().getView();
    tester.focus(catalogView);       
    // Check plan view has focus
    assertTrue("Catalog tree doesn't have the focus", catalogView.isFocusOwner());
    // Select the piece added to catalog
    controller.getFurnitureCatalogController().setSelectedFurniture(addedCatalogFurniture);
    // Delete new catalog piece of furniture
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Component.focus()

          } else {
            return focusPreviousWidget(c);
          }
        }
      } else {
        c.focus();
        return true;
      }
    } else {
      El.fly(w.getElement()).focus();
      return true;
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Component.focus()

  public static boolean focusWidget(Widget w, boolean forward) {
    if (w instanceof Component) {
      Component c = (Component) w;
      if (c instanceof Field<?>) {
        c.focus();
        return true;
      }
      if (c.getFocusSupport().isIgnore()) {
        if (isContainer(c)) {
          stepInto(c, null, forward);
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Component.focus()

    FocusFrame.get().unframe();
    ce.stopEvent();
    for (int i = 0; i < getItemCount(); i++) {
      Component c = getItem(i);
      if (c.isEnabled() && !c.getFocusSupport().isIgnore()) {
        c.focus();
        break;
      }
    }
  }
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.button.Button.focus()

    if (c != null && c.getData("gxt-overflow") != null) {
      pe.stopEvent();
      ToolBar bar = (ToolBar) component.getParent();
      ToolBarLayout layout = bar.getLayout();
      Button more = layout.getMoreButton();
      more.focus();
      return;
    }

    if (!focusNextWidget(component)) {
      component.focus();
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.form.Field.focus()

                }

                attachPropertiesEditor(engine, tab);
                if (propertiesEditor.getFieldsMap().containsKey("jcr:title")) {
                    Field title = propertiesEditor.getFieldsMap().get("jcr:title");
                    title.focus();
                }
            }

            // synch non18n properties
            if (previousNon18nProperties != null && !previousNon18nProperties.isEmpty()) {
View Full Code Here

Examples of com.gargoylesoftware.htmlunit.html.HtmlButtonInput.focus()

        HtmlPage menuPage = (HtmlPage)menuFrame.getEnclosedPage();
        HtmlButtonInput commandButton = (HtmlButtonInput)menuPage.getFormByName("MenuForm").getHtmlElementById("refreshButton");
        HtmlPage commandResult = null;
        if(commandButton != null){
          //System.out.println("command button text:"+commandButton.asText());
          commandButton.focus();
          //System.out.println("command button script:"+commandButton.getOnClickAttribute());
          commandResult = (HtmlPage)commandButton.click();
        }

        //System.out.println("alerts size:"+collectedAlerts.size());
View Full Code Here

Examples of com.google.collide.client.editor.FocusManager.focus()

    autocompleteProposals = null;

    FocusManager focusManager = editor.getFocusManager();
    if (hadFocus && !focusManager.hasFocus()) {
      focusManager.focus();
    }
  }

  @Override
  public void positionAndShow(AutocompleteProposals items) {
View Full Code Here

Examples of com.google.gwt.dom.client.Element.focus()

        elemStyle.setTop(-10, Unit.PX);
        elemStyle.setWidth(0, Unit.PX);
        elemStyle.setHeight(0, Unit.PX);

        contentPanel.getElement().appendChild(e);
        e.focus();
        contentPanel.getElement().removeChild(e);
    }

    /** For internal use only. May be removed or replaced in the future. */
    public void setVaadinModality(boolean modality) {
View Full Code Here

Examples of com.google.gwt.dom.client.Element.focus()

                }
            }

            if(match!=null)
            {
                match.focus();
                index =i;
                break;
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.