APISonar


org.androidannotations.rclass.IRClass.Res.XML

> org > androidannotations > rclass > IRClass > Res > XML
org APIs androidannotations APIs rclass APIs IRClass APIs Res APIs XML APIs

Example 1
public void process(Element element, HasPreferences holder) throws Exception {
		JFieldRef preferenceId = annotationHelper.extractAnnotationFieldRefs(element, IRClass.Res.XML, false).get(0);

		holder.getPreferenceScreenInitializationBlock().add(JExpr.invoke("addPreferencesFromResource").arg(preferenceId));
	}
Example 2
protected void validate(Element element, ElementValidation valid) {
		validatorHelper.extendsPreferenceActivityOrPreferenceFragment(element, valid);
		validatorHelper.hasEActivityOrEFragment(element, valid);
		validatorHelper.resIdsExist(element, IRClass.Res.XML, IdValidatorHelper.FallbackStrategy.NEED_RES_ID, valid);
	}
Example 3
public void process(Element element, HasPreferenceHeaders holder) throws Exception {
		JFieldRef headerId = annotationHelper.extractAnnotationFieldRefs(element, IRClass.Res.XML, false).get(0);

		JBlock block = holder.getOnBuildHeadersBlock();
		JVar targetParam = holder.getOnBuildHeadersTargetParam();
		block.add(JExpr.invoke("loadHeadersFromResource").arg(headerId).arg(targetParam));
		block.add(JExpr._super().invoke("onBuildHeaders").arg(targetParam));
	}