Search in sources :

Example 1 with ModelBoundPresenterWidget

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());
}
Also used : ModelBoundPresenterWidget(org.ovirt.engine.ui.common.presenter.ModelBoundPresenterWidget) UICommand(org.ovirt.engine.ui.uicommonweb.UICommand)

Aggregations

ModelBoundPresenterWidget (org.ovirt.engine.ui.common.presenter.ModelBoundPresenterWidget)1 UICommand (org.ovirt.engine.ui.uicommonweb.UICommand)1