use of com.helger.jcodemodel.JMethod in project androidannotations by androidannotations.
the class OnSeekBarChangeListenerHolder method createOnProgressChanged.
private void createOnProgressChanged() {
JMethod onProgressChangedMethod = listenerClass.method(JMod.PUBLIC, holder.getCodeModel().VOID, "onProgressChanged");
onProgressChangedMethod.annotate(Override.class);
onProgressChangedBody = onProgressChangedMethod.body();
onProgressChangedSeekBarParam = onProgressChangedMethod.param(holder.getClasses().SEEKBAR, "seekBar");
onProgressChangedProgressParam = onProgressChangedMethod.param(holder.getCodeModel().INT, "progress");
onProgressChangedFromUserParam = onProgressChangedMethod.param(holder.getCodeModel().BOOLEAN, "fromUser");
}
use of com.helger.jcodemodel.JMethod in project androidannotations by androidannotations.
the class OnSeekBarChangeListenerHolder method createOnStopTrackingTouch.
private void createOnStopTrackingTouch() {
JMethod onStopTrackingTouchMethod = listenerClass.method(JMod.PUBLIC, holder.getCodeModel().VOID, "onStopTrackingTouch");
onStopTrackingTouchMethod.annotate(Override.class);
onStopTrackingTouchBody = onStopTrackingTouchMethod.body();
onStopTrackingTouchSeekBarParam = onStopTrackingTouchMethod.param(holder.getClasses().SEEKBAR, "seekBar");
}
use of com.helger.jcodemodel.JMethod in project androidannotations by androidannotations.
the class PageChangeHolder method createPageScroll.
private void createPageScroll() {
JMethod method = listenerClass.method(JMod.PUBLIC, holder.getCodeModel().VOID, "onPageScrolled");
method.annotate(Override.class);
pageScrolledBody = method.body();
JPrimitiveType intClass = holder.getCodeModel().INT;
pageScrolledPositionParam = method.param(intClass, "position");
pageScrolledPositionOffsetParam = method.param(holder.getCodeModel().FLOAT, "positionOffset");
pageScrolledPositionOffsetPixelsParam = method.param(intClass, "positionOffsetPixels");
}
use of com.helger.jcodemodel.JMethod in project androidannotations by androidannotations.
the class PageChangeHolder method createPageSelected.
private void createPageSelected() {
JMethod method = listenerClass.method(JMod.PUBLIC, holder.getCodeModel().VOID, "onPageSelected");
method.annotate(Override.class);
pageSelectedBody = method.body();
JPrimitiveType intClass = holder.getCodeModel().INT;
pageSelectedPositionParam = method.param(intClass, "position");
}
use of com.helger.jcodemodel.JMethod in project androidannotations by androidannotations.
the class PreferenceActivityDelegate method setOnBuildHeadersBlock.
private void setOnBuildHeadersBlock() {
JMethod method = getGeneratedClass().method(PUBLIC, codeModel().VOID, "onBuildHeaders");
method.annotate(Override.class);
onBuildHeadersBlock = method.body();
onBuildHeadersTargetParam = method.param(getClasses().LIST.narrow(getClasses().PREFERENCE_ACTIVITY_HEADER), "target");
}
Aggregations