Class EventTarget
Inheritance
System.Object
EventTarget
Implements
System.ComponentModel.INotifyPropertyChanged
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Goui
Assembly: Goui.dll
Syntax
[JsonConverter(typeof(EventTargetJsonConverter))]
public abstract class EventTarget : INotifyPropertyChanged
Constructors
|
Improve this Doc
View Source
EventTarget(String)
Declaration
protected EventTarget(string tagName)
Parameters
Type |
Name |
Description |
System.String |
tagName |
|
Fields
|
Improve this Doc
View Source
IdPrefix
Declaration
public const char IdPrefix = '⦙'
Field Value
Type |
Description |
System.Char |
|
Properties
|
Improve this Doc
View Source
Id
Declaration
public string Id { get; protected set; }
Property Value
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
StateMessages
Declaration
public IReadOnlyList<Message> StateMessages { get; }
Property Value
Type |
Description |
System.Collections.Generic.IReadOnlyList<Message> |
|
|
Improve this Doc
View Source
TagName
Declaration
public string TagName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
|
Improve this Doc
View Source
AddEventListener(String, TargetEventHandler)
Declaration
public void AddEventListener(string eventType, TargetEventHandler handler)
Parameters
|
Improve this Doc
View Source
AddStateMessage(Message)
Declaration
protected void AddStateMessage(Message message)
Parameters
Type |
Name |
Description |
Message |
message |
|
|
Improve this Doc
View Source
Call(String, Object[])
Declaration
public void Call(string methodName, params object[] args)
Parameters
Type |
Name |
Description |
System.String |
methodName |
|
System.Object[] |
args |
|
|
Improve this Doc
View Source
GetElementById(String)
Declaration
public virtual EventTarget GetElementById(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
|
Improve this Doc
View Source
OnPropertyChanged(String)
Declaration
protected virtual void OnPropertyChanged(string propertyName)
Parameters
Type |
Name |
Description |
System.String |
propertyName |
|
|
Improve this Doc
View Source
Receive(Message)
Declaration
public void Receive(Message message)
Parameters
Type |
Name |
Description |
Message |
message |
|
|
Improve this Doc
View Source
RemoveEventListener(String, TargetEventHandler)
Declaration
public void RemoveEventListener(string eventType, TargetEventHandler handler)
Parameters
|
Improve this Doc
View Source
SaveStateMessageIfNeeded(Message)
Declaration
protected virtual bool SaveStateMessageIfNeeded(Message message)
Parameters
Type |
Name |
Description |
Message |
message |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Send(Message)
Declaration
public void Send(Message message)
Parameters
Type |
Name |
Description |
Message |
message |
|
|
Improve this Doc
View Source
SendSet(String, Object)
Declaration
protected void SendSet(string jsPropertyName, object value)
Parameters
Type |
Name |
Description |
System.String |
jsPropertyName |
|
System.Object |
value |
|
|
Improve this Doc
View Source
SetProperty<T>(ref T, T, String, String)
Declaration
protected bool SetProperty<T>(ref T backingStore, T newValue, string jsPropertyName, string propertyName = "")
Parameters
Type |
Name |
Description |
T |
backingStore |
|
T |
newValue |
|
System.String |
jsPropertyName |
|
System.String |
propertyName |
|
Returns
Type |
Description |
System.Boolean |
|
Type Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
|
Improve this Doc
View Source
TriggerEvent(String)
Declaration
protected virtual bool TriggerEvent(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
TriggerEventFromMessage(Message)
Declaration
protected virtual bool TriggerEventFromMessage(Message message)
Parameters
Type |
Name |
Description |
Message |
message |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
UpdateStateMessages(Action<List<Message>>)
Declaration
protected void UpdateStateMessages(Action<List<Message>> updater)
Parameters
Type |
Name |
Description |
System.Action<System.Collections.Generic.List<Message>> |
updater |
|
Events
|
Improve this Doc
View Source
MessageSent
Declaration
public event Action<Message> MessageSent
Event Type
Type |
Description |
System.Action<Message> |
|
|
Improve this Doc
View Source
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged