package com.installshield.watchpoint.event.dialog.swing;


import com.installshield.event.ui.*;
import com.installshield.wizard.swing.*;
import com.installshield.ui.controls.*;

public class FrameBegin {

    public void buttonClickednext(ISControlContext context) {
        	
        SwingWizardUI wizardUI = (SwingWizardUI)context.getWizardUI();
        wizardUI.doNext();
    }

    public void buttonClickedcancel(ISControlContext context) {
    	
        SwingWizardUI wizardUI = (SwingWizardUI)context.getWizardUI();
        wizardUI.doCancel();

    }

    public void initializeUIBegin(ISDialogFrameContext context) {
        ISFrame frame = context.getISFrame();

        ISButton nextButton = frame.getButton("next");
        if (nextButton != null) {
            nextButton.setEnabled(true);
        }

        ISButton cancelButton = frame.getButton("cancel");
        if (cancelButton != null) {
            cancelButton.setEnabled(true);
        }

    }
}