@OnCreateLayout static Component onCreateLayout( ComponentContext c, @TreeProp TreePropNumberType propA, @TreeProp TreePropStringType propB, @Prop(optional = true) TreePropTestResult resultPropA, @Prop TreePropTestResult resultPropB) { if (resultPropA != null) { resultPropA.mProp = propA; } resultPropB.mProp = propB; return null; } }
@OnPrepare static void onPrepare( ComponentContext c, @TreeProp TreePropNumberType propA, @Prop TreePropTestResult resultPropA) { resultPropA.mProp = propA; }
@OnCreateTreeProp static TreePropStringType onCreateTreePropB( SectionContext c, @TreeProp TreePropStringType propB) { return new TreePropStringType(propB.getValue() + "_changed"); }
@OnCreateTreeProp static TreePropStringType onCreateTreePropB( ComponentContext c, @TreeProp TreePropStringType propB) { return new TreePropStringType(propB.getValue() + "_changed"); }
@OnCreateLayout static Component onCreateLayout( final ComponentContext c, @TreeProp TreePropNumberType propA, @TreeProp TreePropStringType propB, @Prop(optional = true) TreePropSectionTestLeafGroupSpec.Result resultPropA, @Prop TreePropSectionTestLeafGroupSpec.Result resultPropB) { if (resultPropA != null && propA != null) { resultPropA.mProp = new TreePropNumberType(propA.getValue() + 1); } if (resultPropB != null && propB != null) { resultPropB.mProp = new TreePropStringType(propB.getValue() + "_changed_again"); } return Column.create(c).build(); } }
@OnExitedRange(name = "prefetch") public void testExitedPrefetchMethod(ComponentContext c, @Prop T arg2, @TreeProp int arg3) {} }
@OnExitedRange(name = "exit") public void testExitedRangeMethod(ComponentContext c, @Prop T arg2, @TreeProp int arg3) {}
@OnCreateChildren static Children onCreateChildren( final SectionContext c, @TreeProp TreePropNumberType propA, @TreeProp TreePropStringType propB, @Prop(optional = true) Result resultPropA, @Prop Result resultPropB) { if (resultPropA != null) { resultPropA.mProp = propA; } resultPropB.mProp = propB; return Children.create() .child( SingleComponentSection.create(c) .component( TreePropSectionTestLeafLayout.create(c) .resultPropA(resultPropA) .resultPropB(resultPropB))) .build(); } }
@OnEvent(Object.class) public void testEventMethod( @Prop boolean arg0, @State int arg1, @Param Object arg2, @TreeProp long arg3, @Prop @Nullable Component arg4) {}
@OnEvent(Object.class) public void testEventMethod( @Prop boolean arg0, @Prop @Nullable Component arg4, @State int arg1, @Param Object arg2, @TreeProp long arg3) {}
@OnMount static <S extends Object> void onMount( @Prop(optional = true) boolean prop5, @State(canUpdateLazily = true) long state1, @State S state2, @TreeProp TestTreeProp treeProp) {}
@OnCreateLayout public void onCreateLayout( @Prop boolean arg0, @State int arg1, @Param Object arg2, @TreeProp long arg3, @State(canUpdateLazily = true) boolean arg4) {}
@OnCreateLayout public void onCreateLayout( @Prop boolean arg0, @State int arg1, @Param Object arg2, @TreeProp long arg3, @State(canUpdateLazily = true) boolean arg4) {}
@OnCreateLayout public void onCreateLayout( @Prop boolean arg0, @State int arg1, @Param Object arg2, @TreeProp long arg3, @State(canUpdateLazily = true) boolean arg4) {}