package org.magicnexus.classes.ui.cli.view;

import java.io.PrintStream;

import org.magicnexus.classes.ui.cli.bc.MainViewBreadcrumb;
import org.magicnexus.classes.ui.cli.menu.MainMenu;
import org.magicnexus.interfaces.ui.cli.bc.IBreadcrumb;
import org.magicnexus.interfaces.ui.cli.menu.IMenu;
import org.magicnexus.interfaces.ui.cli.view.IView;


public class MainView extends AbstractView
{
	
	@Override
	public IMenu getMenu()
	{
		return new MainMenu();
	}
	
	@Override
	public IBreadcrumb getBreadcrumb()
	{
		return new MainViewBreadcrumb();
	}
	
	@Override
	public void display(PrintStream out)
	{
		clearScreen(out);
		printLine(out);
		printBreadcrumbs(out, getBreadcrumb());
		printMenu(out, getMenu());
	}
	
	@Override
	public IView getPrevious()
	{
		return this;
	}
	
}
