Quantcast
Channel: VMware Communities : Discussion List - vSphere Client SDK
Viewing all articles
Browse latest Browse all 2218

How to reference a Mediator class from a View

$
0
0

The Web Client framework automatically associates a View class and Mediator class together using the <fx:Metadata> tag in the view and the "set view" property in the mediator. However it seems this connection only goes in one direction. The mediator class can call directly into the view class but the view can't call its associated mediator.

 

Is there a straight forward way to call a function in the Mediator class when something happens in the view? For example, I've created a complicated method refresh() method in the mediator. I want to call mediator.refresh() from the view when an event occurs (say clicking a button). Is there a straight forward way to do this?


Thanks


Viewing all articles
Browse latest Browse all 2218

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>