Package org.cruxframework.crux.core.client.screen.views

Examples of org.cruxframework.crux.core.client.screen.views.Target


    if (returnTypeClass!= null && viewType.isAssignableFrom(returnTypeClass))
    { 
      if(parameters.length == 0)
      {
        String viewName;
        Target target = method.getAnnotation(Target.class);
        if (target != null)
        {
          viewName = target.value();
        }
        else if (name.startsWith("get"))
        {
          if (name.length() > 3)
          {
View Full Code Here


    if (widgetType.isAssignableFrom(returnTypeClass))
    {
      if(method.getParameters().length == 0)
      {
        String widgetName;
        Target target = method.getAnnotation(Target.class);
        if (target != null)
        {
          widgetName = target.value();
          generateWrapperMethod(sourceWriter, returnType, name, widgetName);
        }
        else if (returnTypeClass != null && name.startsWith("get"))
        {
          widgetName = name.substring(3);
View Full Code Here

    checkMethodSignature(method);

    String name = method.getName();

    String widgetName;
    Target target = method.getAnnotation(Target.class);
    if (target != null)
    {
      widgetName = target.value();
    }
    else
    {
      if (name.length() > 3)
      {
View Full Code Here

   
    JClassType returnTypeClass = returnType.isClassOrInterface();
    if (returnTypeClass != null)
    {
      String controllerName = null;
      Target target = method.getAnnotation(Target.class);
      if (target != null)
      {
        controllerName = target.value();
        String controller = ClientControllers.getController(controllerName, Device.valueOf(getDeviceFeatures()));
        JClassType controllerType = context.getTypeOracle().findType(controller);
        if (controllerType == null)
        {
          throw new CruxGeneratorException("Error generating method ["+method.getName()+"] from ControllerAccessor ["+method.getEnclosingType().getQualifiedSourceName()+"]. Can not identify the controller type.");
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.core.client.screen.views.Target

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.