package uk.co.mmckenzie.visual;

import java.util.ArrayList;

import javafx.fxml.FXML;
import javafx.scene.control.TabPane;

public class MainController implements Controller
{
	private static ArrayList<Controller> allControllers = new ArrayList<>();
	
	@FXML
	private TabPane tabPane;
	
	@FXML
	private void initialize()
	{
	}

	@Override
	public void update()
	{
		for (Controller c: MainController.allControllers)
		{
			c.update();
		}
	}
	
	public static void addListener(Controller c)
	{
		MainController.allControllers.add(c);
	}
	
	public static boolean removeListener(Controller c)
	{
		return MainController.allControllers.remove(c);
	}
}
