KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > roller > ui > authoring > struts > formbeans > CategoriesForm


1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */

18
19 package org.apache.roller.ui.authoring.struts.formbeans;
20
21 import org.apache.roller.RollerException;
22 import org.apache.roller.pojos.WeblogCategoryData;
23 import org.apache.roller.ui.authoring.struts.forms.WeblogCategoryForm;
24
25
26 /**
27  * @struts.form name="categoriesForm"
28  */

29 public class CategoriesForm extends WeblogCategoryForm
30 {
31     private String JavaDoc mParentId = null;
32     private boolean mMoveContents = false;
33     private String JavaDoc mMoveToCategoryId = null;
34     private String JavaDoc[] mSelectedCategories = null;
35
36     public CategoriesForm()
37     {
38         super();
39     }
40
41     public CategoriesForm( WeblogCategoryData catData, java.util.Locale JavaDoc locale ) throws RollerException
42     {
43         super(catData, locale);
44     }
45
46     public String JavaDoc getParentId()
47     {
48         return mParentId;
49     }
50
51     public void setParentId(String JavaDoc parentId)
52     {
53         mParentId = parentId;
54     }
55
56     //-------------------------------------------------- Property moveContents
57

58     /** If true then contents should be moved when this Category is removed */
59     public boolean getMoveContents() { return mMoveContents; }
60
61     /** If true then contents should be moved when this Category is removed */
62     public void setMoveContents( boolean flag ) { mMoveContents = flag;}
63
64     //----------------------------------------------- Property moveToCategoryId
65

66     /** Category where contents should be moved if this Category is removed */
67     public String JavaDoc getMoveToCategoryId() { return mMoveToCategoryId; }
68
69     /** Category where contents should be moved if this Category is removed */
70     public void setMoveToCategoryId( String JavaDoc id ) { mMoveToCategoryId = id;}
71
72     //--------------------------------------------- Property selectedCategories
73

74     /** Get selected Categories */
75     public String JavaDoc[] getSelectedCategories() { return mSelectedCategories; }
76
77     /** Set selected Categories */
78     public void setSelectedCategories( String JavaDoc[] f ) {mSelectedCategories = f;}
79 }
80
81
Popular Tags