package org.apache.ofbiz.contrib.gui.scenes;

import javafx.event.EventHandler;
import javafx.fxml.Initializable;
import javafx.scene.Node;

import java.io.File;
import java.net.URL;
import java.util.ResourceBundle;
import java.util.WeakHashMap;

/**
 * Created by zack on 31/07/15.
 */
public abstract class ViewModelController<V extends Node, M> implements Initializable {
    protected final V view;
    protected ResourceBundle resources;

    public ViewModelController(V view) {
        this.view = view;
    }

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        this.resources = resources;
    }

    public abstract void initView(M item);

    public abstract void updateView(M item, int flag);
}
