org.androidannotations.handler
Class ItemSelectHandler

java.lang.Object
  extended by org.androidannotations.handler.BaseAnnotationHandler<EComponentWithViewSupportHolder>
      extended by org.androidannotations.handler.AbstractListenerHandler
          extended by org.androidannotations.handler.ItemSelectHandler
All Implemented Interfaces:
AnnotationHandler<EComponentWithViewSupportHolder>

public class ItemSelectHandler
extends AbstractListenerHandler


Field Summary
 
Fields inherited from class org.androidannotations.handler.BaseAnnotationHandler
androidManifest, androidSystemServices, processHolder, processingEnv, rClass, validatedModel, validatorHelper
 
Constructor Summary
ItemSelectHandler(ProcessingEnvironment processingEnvironment)
           
 
Method Summary
protected  com.sun.codemodel.JMethod createListenerMethod(com.sun.codemodel.JDefinedClass listenerAnonymousClass)
           
protected  com.sun.codemodel.JClass getListenerClass()
           
protected  String getSetterName()
           
protected  com.sun.codemodel.JType getViewClass()
           
protected  void makeCall(com.sun.codemodel.JBlock listenerMethodBody, com.sun.codemodel.JInvocation call, TypeMirror returnType)
           
protected  void processParameters(com.sun.codemodel.JMethod listenerMethod, com.sun.codemodel.JInvocation itemSelectedCall, List<? extends VariableElement> parameters)
           
 void validate(Element element, AnnotationElements validatedElements, IsValid valid)
           
 
Methods inherited from class org.androidannotations.handler.AbstractListenerHandler
getHolder, getMethodName, process, setAndroidEnvironment
 
Methods inherited from class org.androidannotations.handler.BaseAnnotationHandler
classes, codeModel, generateApiClass, getTarget, processingEnvironment, refClass, refClass, setProcessHolder, setValidatedModel, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemSelectHandler

public ItemSelectHandler(ProcessingEnvironment processingEnvironment)
Method Detail

validate

public void validate(Element element,
                     AnnotationElements validatedElements,
                     IsValid valid)
Overrides:
validate in class AbstractListenerHandler

makeCall

protected void makeCall(com.sun.codemodel.JBlock listenerMethodBody,
                        com.sun.codemodel.JInvocation call,
                        TypeMirror returnType)
Specified by:
makeCall in class AbstractListenerHandler

processParameters

protected void processParameters(com.sun.codemodel.JMethod listenerMethod,
                                 com.sun.codemodel.JInvocation itemSelectedCall,
                                 List<? extends VariableElement> parameters)
Specified by:
processParameters in class AbstractListenerHandler

createListenerMethod

protected com.sun.codemodel.JMethod createListenerMethod(com.sun.codemodel.JDefinedClass listenerAnonymousClass)
Specified by:
createListenerMethod in class AbstractListenerHandler

getSetterName

protected String getSetterName()
Specified by:
getSetterName in class AbstractListenerHandler

getListenerClass

protected com.sun.codemodel.JClass getListenerClass()
Specified by:
getListenerClass in class AbstractListenerHandler

getViewClass

protected com.sun.codemodel.JType getViewClass()
Overrides:
getViewClass in class AbstractListenerHandler


Copyright © 2010-2014. All Rights Reserved.