KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > faces > core > component > UIExoComponent


1 /*******************************************************************************
2  * Copyright 2001-2003 The eXo Platform SARL All rights reserved. * Please look
3  * at license.txt in info directory for more license detail. *
4  ******************************************************************************/

5 package org.exoplatform.faces.core.component;
6
7 import java.io.IOException JavaDoc;
8 import java.util.List JavaDoc;
9 import javax.faces.component.UIComponent;
10 import javax.faces.context.FacesContext;
11 import javax.faces.event.PhaseId;
12 import org.exoplatform.faces.FacesConstants;
13 import org.exoplatform.faces.core.Util;
14 import org.exoplatform.faces.core.renderer.html.Decorator;
15 import org.exoplatform.text.template.xhtml.XhtmlDataHandlerManager;
16 import org.exoplatform.text.template.xhtml.Element;
17
18 /**
19  * Jul 30, 2004
20  *
21  * @author: Tuan Nguyen
22  * @email: tuan08@users.sourceforge.net
23  * @version: $Id: UIExoComponent.java,v 1.10 2004/10/27 02:52:15 tuan08 Exp $
24  */

25 public interface UIExoComponent extends XhtmlDataHandlerManager {
26   final static public String JavaDoc ACTION = FacesConstants.ACTION;
27   final static public String JavaDoc SAVE_ACTION = FacesConstants.SAVE_ACTION;
28   final static public String JavaDoc CANCEL_ACTION =
29     Util.encodeActionPhase(FacesConstants.CANCEL_ACTION, PhaseId.APPLY_REQUEST_VALUES);
30   final static public String JavaDoc EDIT_ACTION = FacesConstants.EDIT_ACTION;
31   final static public String JavaDoc BACK_ACTION = FacesConstants.BACK_ACTION;
32   final static public String JavaDoc DELETE_ACTION = FacesConstants.DELETE_ACTION;
33   final static public String JavaDoc REMOVE_ACTION = FacesConstants.DELETE_ACTION;
34   final static public String JavaDoc UPDATE_ACTION = FacesConstants.UPDATE_ACTION;
35   final static public String JavaDoc VIEW_ACTION = FacesConstants.VIEW_ACTION;
36   public static final String JavaDoc COMPONENT_FAMILY = "org.exoplatform.faces.core.component.UIExoComponent";
37   final static public String JavaDoc UICOMPONENT = "uicomponent";
38   final static public String JavaDoc XHTMLMP_KIT = "xhtmlmp";
39   
40   final static public String JavaDoc OBJECTID = "objectId" ;
41
42   public String JavaDoc getId();
43   public void setId(String JavaDoc id) ;
44   
45   public boolean isRendered() ;
46   public void setRendered(boolean b) ;
47   
48   public boolean canDecodeInvalidState() ;
49   
50   public UIExoComponent setDecorator(Decorator decorator) ;
51   
52   public void decode(FacesContext context) ;
53   
54   public void processDecodes(FacesContext context) ;
55   
56   public String JavaDoc getClazz();
57   public UIExoComponent setClazz(String JavaDoc s);
58
59   public String JavaDoc getBaseURL();
60   public String JavaDoc getBaseURL(FacesContext context);
61
62   public List JavaDoc getChildren();
63
64   public UIExoComponent findComponentById(String JavaDoc id);
65   
66   public UIExoComponent findRenderedComponentById(String JavaDoc id);
67
68   public UIComponent getAncestorOfType(Class JavaDoc classType);
69
70   public Object JavaDoc getChildComponentOfType(Class JavaDoc classType);
71
72   public void setRenderedComponent(String JavaDoc id);
73
74   public void setRenderedComponent(Class JavaDoc type);
75
76   public void setRenderedSibling(Class JavaDoc type);
77
78   public UIComponent getSibling(Class JavaDoc type);
79   
80   public UIComponent getParent();
81   
82   public void decorate(FacesContext context) throws IOException JavaDoc;
83   
84   public void encodeBegin(FacesContext context) throws IOException JavaDoc;
85
86   public void encodeChildren(FacesContext context) throws IOException JavaDoc;
87
88   public void encodeEnd(FacesContext context) throws IOException JavaDoc;
89   
90   public void registerActionListener(UIExoComponent parent) ;
91   public void registerComponentObserver(UIExoComponent parent) ;
92   
93   public Element getTemplate() ;
94 }
Popular Tags