Examples of BindView


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

  }

  private boolean generateViewIdentificationBlock(SourcePrinter srcWriter, JClassType type)
    {
      BindRootView bindRootView = type.getAnnotation(BindRootView.class);
      BindView bindView = type.getAnnotation(BindView.class);

      boolean ret = false;
      if (bindRootView != null && bindView != null)
      {
        throw new CruxGeneratorException("ViewBindable class ["+baseIntf.getQualifiedSourceName()+"] can be annotated with BindView or with BindRootView, but not with both...");
      }
      if (bindRootView != null)
      {
        srcWriter.println("this.__view = "+Screen.class.getCanonicalName()+".getRootView().getId();");
        ret = true;
      }
      else if (bindView != null)
      {
        srcWriter.println("this.__view = "+EscapeUtils.quote(bindView.value())+";");
        ret = true;
      }
      else
      {
        JClassType[] interfaces = type.getImplementedInterfaces();
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.