1 5 package org.exoplatform.faces.core.component; 6 7 import java.io.IOException ; 8 import java.util.List ; 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 25 public interface UIExoComponent extends XhtmlDataHandlerManager { 26 final static public String ACTION = FacesConstants.ACTION; 27 final static public String SAVE_ACTION = FacesConstants.SAVE_ACTION; 28 final static public String CANCEL_ACTION = 29 Util.encodeActionPhase(FacesConstants.CANCEL_ACTION, PhaseId.APPLY_REQUEST_VALUES); 30 final static public String EDIT_ACTION = FacesConstants.EDIT_ACTION; 31 final static public String BACK_ACTION = FacesConstants.BACK_ACTION; 32 final static public String DELETE_ACTION = FacesConstants.DELETE_ACTION; 33 final static public String REMOVE_ACTION = FacesConstants.DELETE_ACTION; 34 final static public String UPDATE_ACTION = FacesConstants.UPDATE_ACTION; 35 final static public String VIEW_ACTION = FacesConstants.VIEW_ACTION; 36 public static final String COMPONENT_FAMILY = "org.exoplatform.faces.core.component.UIExoComponent"; 37 final static public String UICOMPONENT = "uicomponent"; 38 final static public String XHTMLMP_KIT = "xhtmlmp"; 39 40 final static public String OBJECTID = "objectId" ; 41 42 public String getId(); 43 public void setId(String 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 getClazz(); 57 public UIExoComponent setClazz(String s); 58 59 public String getBaseURL(); 60 public String getBaseURL(FacesContext context); 61 62 public List getChildren(); 63 64 public UIExoComponent findComponentById(String id); 65 66 public UIExoComponent findRenderedComponentById(String id); 67 68 public UIComponent getAncestorOfType(Class classType); 69 70 public Object getChildComponentOfType(Class classType); 71 72 public void setRenderedComponent(String id); 73 74 public void setRenderedComponent(Class type); 75 76 public void setRenderedSibling(Class type); 77 78 public UIComponent getSibling(Class type); 79 80 public UIComponent getParent(); 81 82 public void decorate(FacesContext context) throws IOException ; 83 84 public void encodeBegin(FacesContext context) throws IOException ; 85 86 public void encodeChildren(FacesContext context) throws IOException ; 87 88 public void encodeEnd(FacesContext context) throws IOException ; 89 90 public void registerActionListener(UIExoComponent parent) ; 91 public void registerComponentObserver(UIExoComponent parent) ; 92 93 public Element getTemplate() ; 94 } | Popular Tags |