use of org.ovirt.engine.ui.common.presenter.ModelBoundPresenterWidget in project ovirt-engine by oVirt.
the class TabModelProvider method modelBoundWidgetChange.
/**
* Called when the widget-model property of a model is changed
* TODO this seems important. What does it do? What is a widget model?
*/
@SuppressWarnings("unchecked")
void modelBoundWidgetChange() {
UICommand lastExecutedCommand = getModel().getLastExecutedCommand();
ModelBoundPresenterWidget<?> modelBoundPresenterWidget = getModelBoundWidget(lastExecutedCommand);
((ModelBoundPresenterWidget<Model>) modelBoundPresenterWidget).init(getModel().getWidgetModel());
}
Aggregations