Page MenuHomePhabricator

Support Efl.Ui.Item_Factory
Open, HighPublic

Description

To support MVVM feature,
we need item factory which can generate Item Objects on the View.
This factory is generic factory class for supporting every item classes.

  1. we need to set class(style) on the factory,
  2. we need to caching items lifecycle managements,
  3. and we need to support easy binding way of model property data and other factories like images.
SanghyeonLee triaged this task as High priority.
SanghyeonLee added a project: efl: mvvm.
SanghyeonLee added subscribers: cedric, felipealmeida.

I agree with the goal, I just think that Efl.Ui.Item_Factory might be confusing as a name. Not sure if I have anything better to propose.

1 and 2 are very straight forward in what needs to be done. I am not sure what you have in mind for 3, but isn't that why we had this task regarding efl_part ? Or is it something different?

SanghyeonLee added a comment.EditedJan 15 2019, 2:06 AM

yes. 1,2 is already done and I updated it D7625.
3 is exactly same as efl_part task but only this T7627 is about real implementing task.

about the name of this class...
I want to make some generic class for supporting Efl.Ui.Item based object, so I copy the name on there, so if there are some other necessity comes about specific item class like Efl.Ui.List_Item or Efl.Ui.Grid_Item, Tree_Item, we could extend it to the Efl.Ui.XXX_Item_Factory.

but for avoiding ambiguity, we could name them Efl.Ui.View_Item_Factory or Efl.Ui.Item_Layout_Factory something like this, any good proposal is exist, please let me know :)