siteform.java

来自「OPIAM stands for Open Identity and Acces」· Java 代码 · 共 67 行

JAVA
67
字号
/*
 * OPIAM Suite
 *
 * Distributable under LGPL license.
 * See terms of license at gnu.org.
 */

package opiam.admin.applis.demo.forms;

import opiam.admin.applis.demo.beans.Site;

import opiam.admin.faare.struts.utils.FormUtils;

import org.apache.struts.action.ActionForm;

import java.io.Serializable;


/**
 * This class describes the site formBean.
 */
public class SiteForm extends ActionForm implements Serializable
{
    /** Site object. */
    private Site site = new Site();

    /**
     * Gets the site.
     *
     * @return The site.
     */
    public Site getSite()
    {
        return site;
    }

    /**
     * Sets the site.
     *
     * @param site  The site to set.
     */
    public void setSite(Site site)
    {
        this.site = site;
    }

    /**
     * Reset all the value of the object.
     */
    public void reset()
    {
        site = null;
    }


    /**
     * Sets the description multivalued attribute.
     *
     * @param value  The description to set.
     * @see The "Tag MultiEdit" paragraph in the Integrator guide.
     */
    public void setDescriptionMod(String value)
    {
        site.setDescription(FormUtils.getMultiVal(value));
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?