/*******************************************************************************
* Copyright (c) 2016 Weasis Team and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Nicolas Roduit - initial API and implementation
*******************************************************************************/
package org.weasis.core.api.gui.model;
/**
* The listener interface for receiving viewModelChange events. The class that is interested in processing a
* viewModelChange event implements this interface, and the object created with that class is registered with a
* component using the component's <code>addViewModelChangeListener<code> method. When the viewModelChange event occurs,
* that object's appropriate method is invoked.
*
* @see ViewModelChangeEvent
*/
@FunctionalInterface
public interface ViewModelChangeListener {
void handleViewModelChanged(ViewModel viewModel);
}