Interface for factory-pattern object creation.
This object represents a Factory in the factory pattern. Objects should be created via the method Efl.Ui.View_Factory.create_with_event, which will in turn call the necessary APIs from this interface. Objects created this way should be removed using Efl.Ui.Factory.release.
It is recommended to not create your own Efl.Ui.Factory and use event handler as much as possible.
Since 1.23
⇒ Efl.Ui.Property_Bind (interface)
Release a UI object and disconnect from models.
void efl_ui_factory_release(Eo *obj, Eina_Iterator *ui_views);
create protected
Create a UI object from the necessary properties in the specified model.
Eina_Future *efl_ui_factory_create(Eo *obj, Eina_Iterator *models);
Efl.Ui.Factory_Bind | ||
---|---|---|
factory_bind | bind the factory with the given key string. when the data is ready or changed, factory create the object and bind the data to the key action and process promised work. Note: the input Efl.Ui.Factory need to be Efl.Ui.Property_Bind.property_bind at least once. | |
Efl.Ui.Property_Bind | ||
property_bind | bind property data with the given key string. when the data is ready or changed, bind the data to the key action and process promised work. |
Event emitted when an item has processed Efl.Object.finalize, but before all the factory are done building it. Note: If the Efl.Ui.Factory keeps a cache of objects, this will be called when objects are pulled from the cache.
EFL_UI_FACTORY_EVENT_ITEM_BUILDING(Efl_Gfx_Entity *)
Event emitted when an item is under construction (between the Efl.Object.constructor and Efl.Object.finalize call on the item). Note: If the Efl.Ui.Factory keeps a cache of objects, this won't be called when objects are pulled from the cache.
EFL_UI_FACTORY_EVENT_ITEM_CONSTRUCTING(Efl_Gfx_Entity *)
Event emitted when an item has been successfully created by the factory and is about to be used by an Efl.Ui.View.
EFL_UI_FACTORY_EVENT_ITEM_CREATED(Efl_Gfx_Entity *)
Event emitted when an item is being released by the Efl.Ui.Factory. It must be assumed that after this call, the object can be recycles to another Efl.Ui.View and there can be more than one call for the same item.
EFL_UI_FACTORY_EVENT_ITEM_RELEASING(Efl_Gfx_Entity *)
Efl.Ui.Property_Bind | ||
---|---|---|
properties,changed | Event dispatched when a property on the object has changed due to a user interaction on the object that a model could be interested in. | |
property,bound | Event dispatched when a property on the object is bound to a model. This is useful to avoid generating too many events. |