Source code: renderkits/renderkit/SerializedView.java
1 /*
2 * $Id: SerializedView.java,v 1.3 2005/12/14 22:27:38 rlubke Exp $
3 */
4
5 /*
6 * The contents of this file are subject to the terms
7 * of the Common Development and Distribution License
8 * (the License). You may not use this file except in
9 * compliance with the License.
10 *
11 * You can obtain a copy of the License at
12 * https://javaserverfaces.dev.java.net/CDDL.html or
13 * legal/CDDLv1.0.txt.
14 * See the License for the specific language governing
15 * permission and limitations under the License.
16 *
17 * When distributing Covered Code, include this CDDL
18 * Header Notice in each file and include the License file
19 * at legal/CDDLv1.0.txt.
20 * If applicable, add the following below the CDDL Header,
21 * with the fields enclosed by brackets [] replaced by
22 * your own identifying information:
23 * "Portions Copyrighted [year] [name of copyright owner]"
24 *
25 * [Name of File] [ver.__] [Date]
26 *
27 * Copyright 2005 Sun Microsystems Inc. All Rights Reserved
28 */
29
30 package renderkits.renderkit;
31
32 import java.io.Serializable;
33
34 /**
35 * <p>Convenience struct for encapsulating tree structure and
36 * component state.</p>
37 */
38 public class SerializedView extends Object implements Serializable {
39 private Object structure = null;
40 private Object state = null;
41
42 public SerializedView(Object newStructure, Object newState) {
43 structure = newStructure;
44 state = newState;
45 }
46
47 public Object getStructure() {
48 return structure;
49 }
50
51 public Object getState() {
52 return state;
53 }
54 }
55