Package org.uispec4j

Examples of org.uispec4j.UIComponent


   * Checks that there is a text component in the dialog displaying the given text.
   */
  public BasicHandler assertContainsText(final String text) {
    handlers.add(new InterceptionHandler() {
      public void process(Window window) {
        UIComponent component = window.findUIComponent(TextBox.class, text);
        if (component == null) {
          AssertAdapter.fail("Text not found: " + text);
        }
      }
    });
View Full Code Here


    }
    catch (ItemNotFoundException e) {
      Component[] components = findComponents(ComponentMatcher.ALL, swingClasses);
      List<String> names = new ArrayList<String>();
      for (Component component : components) {
        UIComponent uiComponent = UIComponentFactory.createUIComponent(component);
        String componentLabel = uiComponent.getLabel();
        String componentName = uiComponent.getName();
        if (componentLabel != null) {
          names.add(componentLabel);
        }
        else if (componentName != null) {
          names.add(componentName);
View Full Code Here

TOP

Related Classes of org.uispec4j.UIComponent

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.