KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > beehive > netui > tags > divpanel > DivPanelState


1 /*
2  * Copyright 2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not 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.
15  *
16  * $Header:$
17  */

18 package org.apache.beehive.netui.tags.divpanel;
19
20 import org.apache.beehive.netui.pageflow.requeststate.INameable;
21
22 import java.io.Serializable JavaDoc;
23
24 public class DivPanelState implements INameable, Serializable JavaDoc
25 {
26     private String JavaDoc _name;
27     private String JavaDoc _firstPage;
28
29     /**
30      * Set the ObjectName of the INameable object. This should only
31      * be set once. If it is called a second time an IllegalStateException
32      * should be thrown
33      * @param name the Object's name.
34      * @throws IllegalStateException if this method is called more than once for an object
35      */

36     public void setObjectName(String JavaDoc name)
37     {
38         _name = name;
39     }
40
41     /**
42      * Returns the ObjectName of the INameable object.
43      * @return the ObjectName.
44      */

45     public String JavaDoc getObjectName()
46     {
47         return _name;
48     }
49
50     public String JavaDoc getFirstPage()
51     {
52         return _firstPage;
53     }
54
55     public void setFirstPage(String JavaDoc firstPage)
56     {
57         _firstPage = firstPage;
58     }
59 }
60
Popular Tags