Package org.jboss.forge.addon.ui.metadata

Examples of org.jboss.forge.addon.ui.metadata.WithAttributes


      {
         ParameterizedType parameterizedType = (ParameterizedType) type;

         Type[] typeArguments = parameterizedType.getActualTypeArguments();
         Class<T> valueType = (Class<T>) typeArguments[0];
         WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
         UISelectOne<T> input = createSelectOne(name, valueType);
         preconfigureInput(input, withAttributes);
         return input;
      }
      else
View Full Code Here


      {
         ParameterizedType parameterizedType = (ParameterizedType) type;

         Type[] typeArguments = parameterizedType.getActualTypeArguments();
         Class<T> valueType = (Class<T>) typeArguments[0];
         WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
         UISelectMany<T> input = createSelectMany(name, valueType);
         preconfigureInput(input, withAttributes);
         return input;
      }
      else
View Full Code Here

      {
         ParameterizedType parameterizedType = (ParameterizedType) type;

         Type[] typeArguments = parameterizedType.getActualTypeArguments();
         Class<T> valueType = (Class<T>) typeArguments[0];
         WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
         UIInput<T> input = createInput(name, valueType);
         preconfigureInput(input, withAttributes);
         return input;
      }
      else
View Full Code Here

      {
         ParameterizedType parameterizedType = (ParameterizedType) type;

         Type[] typeArguments = parameterizedType.getActualTypeArguments();
         Class<T> valueType = (Class<T>) typeArguments[0];
         WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
         UIInputMany<T> input = createInputMany(name, valueType);
         preconfigureInput(input, withAttributes);
         return input;
      }
      else
View Full Code Here

      else
      {
         // FORGE-1781: Using String if parameter type is not defined
         valueType = (Class<T>) String.class;
      }
      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UISelectOne<T> input = createSelectOne(paramName, shortName, valueType);
      setupSelectComponent(input);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
View Full Code Here

      {
         // FORGE-1781: Using String if parameter type is not defined
         valueType = (Class<T>) String.class;
      }

      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UISelectMany<T> input = createSelectMany(paramName, shortName, valueType);
      setupSelectComponent(input);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
View Full Code Here

      else
      {
         // FORGE-1781: Using String if parameter type is not defined
         valueType = (Class<T>) String.class;
      }
      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UIInput<T> input = createInput(paramName, shortName, valueType);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
         enricher.enrich(injectionPoint, input);
View Full Code Here

      {
         // FORGE-1781: Using String if parameter type is not defined
         valueType = (Class<T>) String.class;
      }

      WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
      String paramName = (withAttributes == null || withAttributes.name().trim().isEmpty()) ? name
               : withAttributes.name();
      char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
      UIInputMany<T> input = createInputMany(paramName, shortName, valueType);
      preconfigureInput(input, withAttributes);
      for (InputComponentInjectionEnricher enricher : enrichers)
      {
         enricher.enrich(injectionPoint, input);
View Full Code Here

      {
         ParameterizedType parameterizedType = (ParameterizedType) type;

         Type[] typeArguments = parameterizedType.getActualTypeArguments();
         Class<T> valueType = (Class<T>) resolveRealType(typeArguments[0]);
         WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
         char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
         UISelectOne<T> input = createSelectOne(name, shortName, valueType);
         setupSelectComponent(input);
         preconfigureInput(input, withAttributes);
         for (InputComponentInjectionEnricher enricher : enrichers)
         {
View Full Code Here

      {
         ParameterizedType parameterizedType = (ParameterizedType) type;

         Type[] typeArguments = parameterizedType.getActualTypeArguments();
         Class<T> valueType = (Class<T>) resolveRealType(typeArguments[0]);
         WithAttributes withAttributes = injectionPoint.getAnnotated().getAnnotation(WithAttributes.class);
         char shortName = (withAttributes == null) ? InputComponents.DEFAULT_SHORT_NAME : withAttributes.shortName();
         UISelectMany<T> input = createSelectMany(name, shortName, valueType);
         setupSelectComponent(input);
         preconfigureInput(input, withAttributes);
         for (InputComponentInjectionEnricher enricher : enrichers)
         {
View Full Code Here

TOP

Related Classes of org.jboss.forge.addon.ui.metadata.WithAttributes

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.