KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > struts > webapp > tiles > skin > LayoutSettingsForm


1 /*
2  * $Id: LayoutSettingsForm.java 54929 2004-10-16 16:38:42Z germuska $
3  *
4  * Copyright 1999-2004 The Apache Software Foundation.
5  *
6  * Licensed under the Apache License, Version 2.0 (the "License");
7  * you may not use this file except in compliance with the License.
8  * You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing, software
13  * distributed under the License is distributed on an "AS IS" BASIS,
14  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  * See the License for the specific language governing permissions and
16  * limitations under the License.
17  */

18
19 package org.apache.struts.webapp.tiles.skin;
20
21 import org.apache.struts.action.ActionForm;
22
23 /**
24  * Struts form
25  */

26 public class LayoutSettingsForm extends ActionForm
27 {
28
29     /** Validate value */
30   protected String JavaDoc validate;
31
32    /**
33     * User selected key value
34     */

35    private String JavaDoc selected;
36
37    /**
38     * Access method for the selectedKey property.
39     *
40     * @return the current value of the selectedKey property
41     */

42    public String JavaDoc getSelected()
43    {
44       return selected;
45    }
46
47    /**
48     * Sets the value of the selectedKey property.
49     *
50     * @param aSelectedKey the new value of the selectedKey property
51     */

52    public void setSelected(String JavaDoc aSelectedKey)
53    {
54       selected = aSelectedKey;
55    }
56    /**
57     * Is this form submitted ?
58     */

59   public boolean isSubmitted()
60     {
61     return validate != null;
62     }
63
64    /**
65     * Is this form submitted ?
66     */

67   public void setValidate( String JavaDoc value)
68     {
69     this.validate = value;
70     }
71
72     /**
73      * Reset properties
74      */

75   public void reset()
76     {
77     selected = null;
78     validate = null;
79     }
80
81 }
82
Popular Tags