IActorItem
The base interface for all components (items) belonging to an actor.
Namespace: ControlBee.Interfaces
Extends: INotifyPropertyChanged
Properties
| Name | Type | Description |
|---|---|---|
Actor | IActorInternal | The actor that owns this item. |
ItemPath | string | The hierarchical path of this item within the actor. |
Name | string | The display name of this item. |
Desc | string | A description of this item. |
Visible | bool | Whether this item is visible in the UI. |
Methods
ProcessMessage
Processes an incoming message directed at this item.
bool ProcessMessage(ActorItemMessage message);
Parameters:
message— The message to process.
Returns: true if the message was handled; otherwise, false.
UpdateSubItem
Updates the state of all sub-items owned by this item.
void UpdateSubItem();
InjectProperties
Injects configuration properties from the given data source.
void InjectProperties(ISystemPropertiesDataSource dataSource);
Parameters:
dataSource— The data source containing the properties to inject.
Init
Initializes this item after construction.
void Init();
PostInit
Performs post-initialization tasks after all items have been initialized.
void PostInit();