Java 类com.facebook.litho.annotations.FromEvent 实例源码

项目:redux-observable    文件:ProductComponentSpec.java   
@OnEvent(ClickEvent.class)
static void onClick(
        ComponentContext c,
        @FromEvent View view,
        @Prop final Product product) {

}
项目:redux-observable    文件:SingleBannerComponentSpec.java   
@OnEvent(ClickEvent.class)
static void onClick(
        ComponentContext c,
        @FromEvent View view,
        @Prop final SingleBannerSection payload) {

}
项目:redux-observable    文件:TripleBannersComponentSpec.java   
@OnEvent(ClickEvent.class)
static void onClickFirstBanner(
        ComponentContext c,
        @FromEvent View view,
        @Prop final TripleBannerSection payload) {

}
项目:redux-observable    文件:TripleBannersComponentSpec.java   
@OnEvent(ClickEvent.class)
static void onClickSecondBanner(
        ComponentContext c,
        @FromEvent View view,
        @Prop final TripleBannerSection payload) {

}
项目:redux-observable    文件:TripleBannersComponentSpec.java   
@OnEvent(ClickEvent.class)
static void onClickThirdBanner(
        ComponentContext c,
        @FromEvent View view,
        @Prop final TripleBannerSection payload) {

}
项目:litho-glide    文件:DemoListItemComponentSpec.java   
@OnEvent(ClickEvent.class)
static void onClick(
    ComponentContext c,
    @FromEvent View view,
    @Prop final String name) {
  final Intent intent = new Intent(c, DemoActivity.class);
  intent.putExtra("demoName", name);
  c.startActivity(intent);
}
项目:litho-picasso    文件:DemoListItemComponentSpec.java   
@OnEvent(ClickEvent.class)
static void onClick(
    ComponentContext c,
    @FromEvent View view,
    @Prop final String name) {
  final Intent intent = new Intent(c, DemoActivity.class);
  intent.putExtra("demoName", name);
  c.startActivity(intent);
}
项目:litho-glide    文件:FavouriteButtonSpec.java   
@OnEvent(ClickEvent.class)
static void onClick(
    ComponentContext c,
    @FromEvent View view) {
  FavouriteButton.toggleFavourited(c);
}
项目:litho-picasso    文件:FavouriteButtonSpec.java   
@OnEvent(ClickEvent.class)
static void onClick(
    ComponentContext c,
    @FromEvent View view) {
  FavouriteButton.toggleFavourited(c);
}