KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > presentation > weblog > formbeans > CategoriesForm


1
2 package org.roller.presentation.weblog.formbeans;
3
4 import org.roller.RollerException;
5 import org.roller.pojos.WeblogCategoryData;
6 import org.roller.presentation.forms.WeblogCategoryForm;
7
8
9 /**
10  * @struts.form name="categoriesForm"
11  */

12 public class CategoriesForm extends WeblogCategoryForm
13 {
14     private String JavaDoc mParentId = null;
15     private boolean mMoveContents = false;
16     private String JavaDoc mMoveToCategoryId = null;
17     private String JavaDoc[] mSelectedCategories = null;
18
19     public CategoriesForm()
20     {
21         super();
22     }
23
24     public CategoriesForm( WeblogCategoryData catData, java.util.Locale JavaDoc locale ) throws RollerException
25     {
26         super(catData, locale);
27     }
28
29     public String JavaDoc getParentId()
30     {
31         return mParentId;
32     }
33
34     public void setParentId(String JavaDoc parentId)
35     {
36         mParentId = parentId;
37     }
38
39     //-------------------------------------------------- Property moveContents
40

41     /** If true then contents should be moved when this Category is removed */
42     public boolean getMoveContents() { return mMoveContents; }
43
44     /** If true then contents should be moved when this Category is removed */
45     public void setMoveContents( boolean flag ) { mMoveContents = flag;}
46
47     //----------------------------------------------- Property moveToCategoryId
48

49     /** Category where contents should be moved if this Category is removed */
50     public String JavaDoc getMoveToCategoryId() { return mMoveToCategoryId; }
51
52     /** Category where contents should be moved if this Category is removed */
53     public void setMoveToCategoryId( String JavaDoc id ) { mMoveToCategoryId = id;}
54
55     //--------------------------------------------- Property selectedCategories
56

57     /** Get selected Categories */
58     public String JavaDoc[] getSelectedCategories() { return mSelectedCategories; }
59
60     /** Set selected Categories */
61     public void setSelectedCategories( String JavaDoc[] f ) {mSelectedCategories = f;}
62 }
63
64
Popular Tags