// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) deadcode 
// Source File Name:   Summary.java

package com.symantec.itools.frameworks.wizard;

import java.awt.Component;

public class Summary
{

    public Summary(String s)
    {
        stringSummary = s;
    }

    public Summary(Component component)
    {
        panelSummary = component;
    }

    public Summary(Component component, String s)
    {
        stringSummary = s;
        panelSummary = component;
    }

    public Summary()
    {
        stringSummary = null;
        panelSummary = null;
    }

    public boolean hasPanelSummary()
    {
        return panelSummary != null;
    }

    public boolean hasStringSummary()
    {
        return stringSummary != null;
    }

    public Component getPanelSummary()
    {
        return panelSummary;
    }

    public void setPanelSummary(Component component)
    {
        panelSummary = component;
    }

    public String getStringSummary()
    {
        return stringSummary;
    }

    public void setStringSummary(String s)
    {
        stringSummary = s;
    }

    public int getPreferredSummary()
    {
        return 2;
    }

    public static final int SUMMARY_PANEL_WIDTH = 200;
    public static final int PANEL_SUMMARY = 0;
    public static final int TEXT_SUMMARY = 1;
    public static final int NO_PREFERENCE = 2;
    private String stringSummary;
    private Component panelSummary;
}
