KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > roller > presentation > bookmarks > formbeans > BookmarkFormEx


1 /*
2  * Created on Apr 8, 2003
3  */

4 package org.roller.presentation.bookmarks.formbeans;
5
6 import org.roller.RollerException;
7 import org.roller.pojos.BookmarkData;
8 import org.roller.presentation.forms.BookmarkForm;
9
10 /**
11  * Extends the BookmarkForm so that additional properties may be added.
12  * These properties are not persistent and are only needed for the UI.
13  *
14  * @struts.form name="bookmarkFormEx"
15  */

16 public class BookmarkFormEx extends BookmarkForm
17 {
18     private String JavaDoc mFolderId = null;
19
20     /**
21      *
22      */

23     public BookmarkFormEx()
24     {
25         super();
26     }
27
28     /**
29      * @param dataHolder
30      */

31     public BookmarkFormEx(BookmarkData dataHolder, java.util.Locale JavaDoc locale) throws RollerException
32     {
33         copyFrom(dataHolder, locale);
34     }
35
36     /**
37      * @return
38      */

39     public String JavaDoc getFolderId()
40     {
41         return mFolderId;
42     }
43
44     /**
45      * @param string
46      */

47     public void setFolderId(String JavaDoc string)
48     {
49         mFolderId = string;
50     }
51
52     /**
53      * @see org.roller.presentation.forms.BookmarkForm#setData(org.roller.pojos.BookmarkData)
54      */

55     public void copyFrom(BookmarkData dataHolder, java.util.Locale JavaDoc locale) throws RollerException
56     {
57         super.copyFrom(dataHolder, locale);
58         mFolderId = dataHolder.getFolder().getId();
59     }
60 }
61
Popular Tags