Questions on event attributes
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have two questions about event attributes in MATLAB.
i) With a regular event, it's possible to set the ListenAccess attribute of the event to restrict access to where you can create listeners for that event. Is it possible to do something similar for property events (in particular, a property's PostSet event)?
ii) Say I have a class a with an event myEvent defined, which has default attributes. If I have a subclass b of a, is it possible to redefine some of the attributes of the myEvent event in b? In particular, can I make the myEvent event Hidden in b but not a?
Thanks for your help.
0 comentarios
Respuestas (1)
Sean de Wolski
el 14 de Mzo. de 2014
I think you are looking for the property attribute 'SetObservable'
Ver también
Categorías
Más información sobre Events en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!