Package com.googlecode.androidannotations.annotations

Class Summary
ResId  
 

Annotation Types Summary
AfterInject Methods annotated with @AfterInject will be called after the constructor is called in an enhanced class.
AfterTextChange This annotation is intended to be used on methods to receive events defined by TextWatcher.afterTextChanged(Editable s) after the text is changed on the targeted TextView or subclass of TextView.
AfterViews Methods annotated with @AfterViews will be called after Activity.setContentView(int) is called by the generated activity.
App Injects the application.
Background Should be used on method that must be run in a background thread.
Bean Injects an instance of a class annotated with EBean.
BeforeTextChange This annotation is intended to be used on methods to receive events defined by TextWatcher.beforeTextChanged(CharSequence s, int start, int count, int after) before the text is changed on the targeted TextView or subclass of TextView.
Click Should be used on click listener methods in activity classes The method may have zero or one parameter, that MUST be of type android.view.View .
EActivity Should be used on Activity classes to enable usage of AndroidAnnotations Any view related code should happen in an AfterViews annotated method.
EApplication Should be used on android.app.Application classes to enable usage of AndroidAnnotations Most annotations are supported in EApplication classes
EBean Should be used on custom classes to enable usage of AndroidAnnotations Any view related code should happen in an AfterViews annotated method.

Most annotations are supported in EBean classes
EFragment Should be used on Fragment classes to enable usage of AndroidAnnotations The annotation value should be one of R.layout.* fields, or none if you want to handle the view creation by yourself.
EProvider Use this annotation to enhance an Android ContentProvider
EReceiver Use this annotation to enhance an Android BroadcastReceiver
EService Use this annotation to enhance an Android Service
EView Should be used on custom classes that extend View to enable usage of AndroidAnnotations Any view related code should happen in an AfterViews annotated method.

Supported annotations in @EView : ViewById AfterViews Click ItemClick ItemLongClick ItemSelected LongClick Touch
EViewGroup Should be used on custom classes that extend ViewGroup to enable usage of AndroidAnnotations Any view related code should happen in an AfterViews annotated method.

Supported annotations in @EViewGroup : ViewById AfterViews Click ItemClick ItemLongClick ItemSelected LongClick Touch
Extra Use on Extra fields in activity and service classes.
FragmentArg Use on fields in fragments.
FragmentById Use it on Fragment fields in activity classes The annotation value should be one of R.id.* fields.
FragmentByTag Use it on Fragment fields in activity classes The annotation value should be the tag name of the fragment.
FromHtml  
Fullscreen Should be used on Activity classes that must be fullscreen The activity must be annotated with EActivity.
HttpsClient Use this annotation to get an HttpClient instance with the specified KeyStore and TrustStore configured to perform an HTTPS request

All the parameters are optional

trustStore: int, Resource id of your trust store file ex R.raw.cacerts.bks Typically your servers trusted certificates (public key, Root Chain Authority etc)

trustStorePwd: String, Your trust store password (default is changeit)

keyStore: int, Resource id of your keystore Usually your private key (client certificate)

keyStorePwd: String, Your KeyStore password (default is changeit)

allowAllHostnames: boolean, if true, authorizes any TLS/SSL hostname (default true) If false, Hostname in certificate (DN) must match the URL.

Note: Prior to ICS, Android accepts [Key|Trust]store only in BKS format (Bouncycastle Key Store)
InstanceState Use on activity fields to save and restore their values when the system calls onSaveInstanceState(Bundle) and onCreate(Bundle).
ItemClick Should be used on item click listener methods for AdapterView classes The method may have 0 or 1 parameter, that will be the object from the adapter, at the selected position.
ItemLongClick Should be used on item long click listener methods for AdapterView classes The method may have 0 or 1 parameter, that will be the object from the adapter, at the selected position.
ItemSelect Should be used on item selected listener methods for AdapterView classes The method may have 1 or 2 parameters.
LongClick Should be used on long click listener methods in activity classes The method may have zero or one parameter, that MUST be of type android.view.View .
NonConfigurationInstance Use on activity fields to retain instances that are intensive to compute, on configuration changes.
NoTitle Should be used on Activity classes that must have no title.
OnActivityResult This annotation is intended to be used on methods to receive results from a previously started activity using Activity.startActivityForResult(Intent, int) The annotation value must be an integer constant that represents the requestCode associated with the given result.
OptionsItem Should be used on option items listener methods in activity classes The method may have zero or one parameter, that MUST be of type android.view.MenuItem .
OptionsMenu Should be used on Activity classes to set the id of the options menu.
OrmLiteDao Injects an OrmLite Dao, configured with the provided mode and helper classes
RoboGuice Should be used on Activity classes that use the RoboGuice framework
RootContext Use it on Context fields in EBean classes The field MUST be of a type that extends android.content.Context.
SeekBarProgressChange This annotation is intended to be used on methods to receive events defined by SeekBar.OnSeekBarChangeListener.onProgressChanged(android.widget.SeekBar, int, boolean) when the progress level of a SeekBar has changed.
SeekBarTouchStart This annotation is intended to be used on methods to receive events defined by SeekBar.OnSeekBarChangeListener.onStartTrackingTouch(SeekBar seekBar) when the user begins to move the cursor of the targeted SeekBar.
SeekBarTouchStop This annotation is intended to be used on methods to receive events defined by SeekBar.OnSeekBarChangeListener.onStopTrackingTouch(SeekBar seekBar) when the user has finished to move the cursor of the targeted SeekBar.
SystemService Use it on manager fields in activity classes
TextChange This annotation is intended to be used on methods to receive events defined by TextWatcher.onTextChanged(CharSequence s, int start, int before, int count) when the text is changed on the targeted TextView or subclass of TextView.
Touch Should be used on touch listener methods in activity classes The method may have one or two parameters, the first parameter must be a android.view.MotionEvent and the second one must be a android.view.View.
Trace Use this annotation to log at runtime the execution time of the targeted method.
Transactional Should be used on method that must be transactional.
UiThread Should be used on method that must be run in the Ui thread The annotation parameter delay is the delay (in milliseconds) until the method will be executed.
ViewById Use it on View fields in activity classes The field MUST be of a type that extends android.view.View.
 



Copyright © 2010-2013. All Rights Reserved.