Interface Efl.Ui.IFactory
Interface for factory-pattern object creation. This object represents a Factory in the factory pattern. Objects should be created via the method Efl.Ui.ViewFactory.CreateWithEvent (object still in beta stage), which will in turn call the necessary APIs from this interface. Objects created this way should be removed using Efl.Ui.IFactory.Release(Eina.Iterator<Efl.Gfx.IEntity>).
It is recommended to not create your own Efl.Ui.IFactory and use event handler as much as possible.
Syntax
public interface IFactory : IFactoryBind, IPropertyBind, IWrapper, IDisposable
Methods
Release(Iterator<IEntity>)
Release a UI object and disconnect from models.
Declaration
void Release(Iterator<IEntity> ui_views)
Parameters
Type | Name | Description |
---|---|---|
Eina.Iterator<Efl.Gfx.IEntity> | ui_views | Object to remove. |
Events
ItemBuildingEvent
Event triggered when an item has processed Efl.Object.FinalizeAdd(), but before all the factory are done building it. Note: if the Efl.Ui.IFactory does keep a cache of object, this will be called when object are pulled out of the cache.
Declaration
event EventHandler<FactoryItemBuildingEventArgs> ItemBuildingEvent
Event Type
Type | Description |
---|---|
System.EventHandler<Efl.Ui.FactoryItemBuildingEventArgs> |
ItemConstructingEvent
Event triggered when an item is under construction (between the Efl.Object.constructor and Efl.Object.FinalizeAdd() call on the item). Note: If the Efl.Ui.IFactory does keep a cache of objects, this won't be called when objects are pulled out of the cache.
Declaration
event EventHandler<FactoryItemConstructingEventArgs> ItemConstructingEvent
Event Type
Type | Description |
---|---|
System.EventHandler<Efl.Ui.FactoryItemConstructingEventArgs> |
ItemCreatedEvent
Event triggered when an item has been successfully created by the factory and is about to be used by an Efl.Ui.IView.
Declaration
event EventHandler<FactoryItemCreatedEventArgs> ItemCreatedEvent
Event Type
Type | Description |
---|---|
System.EventHandler<Efl.Ui.FactoryItemCreatedEventArgs> |
ItemReleasingEvent
Event triggered when an item is being released by the Efl.Ui.IFactory. It must be assumed that after this call, the object can be recycle to another Efl.Ui.IView and there can be more than one call for the same item.
Declaration
event EventHandler<FactoryItemReleasingEventArgs> ItemReleasingEvent
Event Type
Type | Description |
---|---|
System.EventHandler<Efl.Ui.FactoryItemReleasingEventArgs> |