Efl.Ui.Factory (interface)

Description

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.

Inheritance

Members

release

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);


Inherited

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.

Events

item,building

Event triggered when an item has processed Efl.Object.finalize, but before all the factory are done building it. Note: if the Efl.Ui.Factory does keep a cache of object, this will be called when object are pulled out of the cache.
EFL_UI_FACTORY_EVENT_ITEM_BUILDING(Efl_Gfx_Entity *)


item,constructing

Event triggered 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 does keep a cache of objects, this won't be called when objects are pulled out of the cache.
EFL_UI_FACTORY_EVENT_ITEM_CONSTRUCTING(Efl_Gfx_Entity *)


item,created

Event triggered 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 *)


item,releasing

Event triggered when an item is being released by the Efl.Ui.Factory. It must be assumed that after this call, the object can be recycle 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 *)


Inherited

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.