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.

답변 (1개)

Sean de Wolski
Sean de Wolski 2014년 3월 14일

0 개 추천

I think you are looking for the property attribute 'SetObservable'

댓글 수: 1

Sam Roberts
Sam Roberts 2014년 3월 14일
Hi Sean,
Thanks - but no, that's not it. The property already has its SetObservable set to true. I want to restrict which classes are able to create a listener to the PostSet event.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Events에 대해 자세히 알아보기

제품

태그

질문:

2014년 3월 14일

댓글:

2014년 3월 14일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by