KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > tools > jsfext > component > EventComponent


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23 package com.sun.enterprise.tools.jsfext.component;
24
25
26 /**
27  * <p> This <code>UIComponent</code> exists so that custom events may be
28  * queued and triggered at appropriate times. This will allow
29  * "beforeEncode", "afterEncode", and even "command" events to be
30  * associated with components by wrapping 1 or more components with
31  * this component.</p>
32  *
33  * @author Ken Paulsen (ken.paulsen@sun.com)
34  */

35 public class EventComponent extends TemplateComponentBase {
36     /**
37      * <p> Constructor for <code>EventComponent</code>.</p>
38      */

39     public EventComponent() {
40     super();
41     setRendererType("com.sun.enterprise.tools.jsfext.EventComponent");
42     setLayoutDefinitionKey(LAYOUT_KEY);
43     }
44
45     /**
46      * <p> Return the family for this component.</p>
47      */

48     public String JavaDoc getFamily() {
49     return "com.sun.enterprise.tools.jsfext.EventComponent";
50     }
51
52     /**
53      * <p> Restore the state of this component.</p>
54     public void restoreState(FacesContext _context,Object _state) {
55     Object _values[] = (Object[]) _state;
56     super.restoreState(_context, _values[0]);
57     }
58     */

59
60     /**
61      * <p> Save the state of this component.</p>
62     public Object saveState(FacesContext _context) {
63     Object _values[] = new Object[1];
64     _values[0] = super.saveState(_context);
65     return _values;
66     }
67      */

68
69     /**
70      * <p> This is the location of the XML file that declares the layout for
71      * the EventComponent. (lava/event.xml)</p>
72      */

73     public static final String JavaDoc LAYOUT_KEY = "lava/event.xml";
74 }
75
Popular Tags