Examples of UIComponent


Examples of org.jibeframework.core.annotation.UIComponent

      compileScriptClass(scriptSource);
    }
    try {

      GroovyObject goo = (GroovyObject) scriptClass.newInstance();
      UIComponent ann = AnnotationUtils.findAnnotation(scriptClass, UIComponent.class);
      if (ann != null) {
        UIComponentMixin.applyMixin(ann.value(), goo, applicationContext);
      }
      Context context = Context.getCurrentContext();
      for (Map.Entry<Field, Object> f : injectionCache.entrySet()) {
        ReflectionUtils.makeAccessible(f.getKey());
        Object dependency = null;
View Full Code Here

Examples of org.jibeframework.core.annotation.UIComponent

          injectionCache.clear();
          Class<?> targetClass = this.scriptClass;
          while (targetClass != null && targetClass != Object.class) {
            for (Field field : targetClass.getDeclaredFields()) {
              if (!Modifier.isStatic(field.getModifiers())) {
                UIComponent dann = field.getAnnotation(UIComponent.class);
                if (dann != null) {
                  injectionCache.put(field, dann.value());
                } else {
                  UIController cann = field.getAnnotation(UIController.class);
                  if (cann != null) {
                    injectionCache.put(field, cann.value());
                  } else {
View Full Code Here

Examples of org.jibeframework.core.annotation.UIComponent

          if (!scripts.contains(path)) {
            String className = StringUtils.substringBeforeLast(StringUtils.substringAfter(path,
                p + separator).replace(separator.charAt(0), '.'), ".");
            Class<?> clazz = Class.forName(className);
            UIComponent uiAnn = AnnotationUtils.findAnnotation(clazz, UIComponent.class);
            if (uiAnn != null) {
              String beanName = uiAnn.value();
              scripts.add(f.getAbsolutePath());
              registerBean(beanName, f, "conversation");

            }
            UIController cntAnn = AnnotationUtils.findAnnotation(clazz, UIController.class);
View Full Code Here

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
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.