// Decompiled by Jad v1.5.7g. Copyright 2000 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/SiliconValley/Bridge/8617/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi 
// Source File Name:   PubForm.java

package com.keyshop.pub.controller;

import com.keyshop.pub.model.PubBean;
import org.apache.struts.action.ActionForm;

public class PubForm extends ActionForm
{

    private String selected[];
    private int currentPageNo;
    private String pageType;
    private String actionType;
    public PubBean bean;
    public static final String PAGETYPE_ADD = "add";
    public static final String PAGETYPE_EDIT = "edit";
    public boolean saveSuccessFlag;
    public boolean updateSuccessFlag;

    public PubForm()
    {
        currentPageNo = 1;
        bean = new PubBean();
        saveSuccessFlag = false;
        updateSuccessFlag = false;
    }

    public void clear()
    {
        pageType = "";
        actionType = "";
        setSelected(null);
        setCurrentPageNo(1);
    }

    public String[] getSelected()
    {
        return selected;
    }

    public void setSelected(String selected[])
    {
        this.selected = selected;
    }

    public int getCurrentPageNo()
    {
        return currentPageNo;
    }

    public void setCurrentPageNo(int currentPageNo)
    {
        this.currentPageNo = currentPageNo;
    }

    public String getPageType()
    {
        return pageType;
    }

    public void setPageType(String pageType)
    {
        this.pageType = pageType;
    }

    public String getActionType()
    {
        return actionType;
    }

    public void setActionType(String actionType)
    {
        this.actionType = actionType;
    }

    public boolean isSaveSuccessFlag()
    {
        return saveSuccessFlag;
    }

    public boolean isUpdateSuccessFlag()
    {
        return updateSuccessFlag;
    }

    public void setSaveSuccessFlag(boolean saveSuccessFlag)
    {
        this.saveSuccessFlag = saveSuccessFlag;
    }

    public void setUpdateSuccessFlag(boolean updateSuccessFlag)
    {
        this.updateSuccessFlag = updateSuccessFlag;
    }

    public PubBean getBean()
    {
        return bean;
    }

    public void setBean(PubBean bean)
    {
        this.bean = bean;
    }

    public boolean isEditPage()
    {
        return "edit".equals(pageType);
    }
}
