package com.installshield.watchpoint.event.dialog.console;


import com.installshield.event.ui.*;
import com.installshield.wizard.console.*;
import com.installshield.util.*;

public class FrameMainConsoleImpl {

    public void preConsoleInteractionMain(ISDialogFrameContext context) {

        ConsoleWizardUI consoleUI = (ConsoleWizardUI)context.getWizardUI();
        TTYDisplay tty = consoleUI.getTTY();

        //Display header information
        tty.printLine();
        tty.printHRule();
        tty.printLine(context.getISFrame().getTitle());
        tty.printLine();

        //set navigation options
        consoleUI.setCancelType(ConsoleWizardUI.CANCEL);
        consoleUI.showNext(true);
        consoleUI.showBack(true);
        consoleUI.showHelp(false);
        consoleUI.showCancel(true);

    }

    public void postConsoleInteractionMain(ISDialogFrameContext context) {

        ConsoleWizardUI consoleUI = (ConsoleWizardUI)context.getWizardUI();

        //show navigation
        consoleUI.displayOptions();
    }

}
