Event Attributes
Specify Event Attributes
The following table lists the attributes you can set for events. To specify a value for an attribute, assign the attribute value on the same line as the event keyword. For example, all the events defined in the following events
block have protected ListenAccess
and private NotifyAccess
.
events (ListenAccess = protected, NotifyAccess = private) EventName1 EventName2 end
To define other events in the same class definition that have different attribute settings, create another events
block.
Event Attributes
Attribute Name | Class | Description |
---|---|---|
Hidden |
| If |
|
| Determines where you can create listeners for the event.
|
NotifyAccess |
| Determines where code can trigger the event
|
Framework attributes | Classes that use certain framework base classes have framework-specific attributes. See the documentation for the specific base class you are using for information on these attributes. |