KickJava   Java API By Example, From Geeks To Geeks.

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


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  * Created on Apr 8, 2003
20  */

21 package org.apache.roller.ui.authoring.struts.formbeans;
22
23 import org.apache.roller.RollerException;
24 import org.apache.roller.pojos.BookmarkData;
25 import org.apache.roller.ui.authoring.struts.forms.BookmarkForm;
26
27 /**
28  * Extends the BookmarkForm so that additional properties may be added.
29  * These properties are not persistent and are only needed for the UI.
30  *
31  * @struts.form name="bookmarkFormEx"
32  */

33 public class BookmarkFormEx extends BookmarkForm
34 {
35     private String JavaDoc mFolderId = null;
36
37     /**
38      *
39      */

40     public BookmarkFormEx()
41     {
42         super();
43     }
44
45     /**
46      * @param dataHolder
47      */

48     public BookmarkFormEx(BookmarkData dataHolder, java.util.Locale JavaDoc locale) throws RollerException
49     {
50         copyFrom(dataHolder, locale);
51     }
52
53     /**
54      * @return
55      */

56     public String JavaDoc getFolderId()
57     {
58         return mFolderId;
59     }
60
61     /**
62      * @param string
63      */

64     public void setFolderId(String JavaDoc string)
65     {
66         mFolderId = string;
67     }
68
69     /**
70      * @see org.apache.roller.ui.authoring.struts.forms.BookmarkForm#setData(org.apache.roller.pojos.BookmarkData)
71      */

72     public void copyFrom(BookmarkData dataHolder, java.util.Locale JavaDoc locale) throws RollerException
73     {
74         super.copyFrom(dataHolder, locale);
75         mFolderId = dataHolder.getFolder().getId();
76     }
77 }
78
Popular Tags