| java.lang.Object com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase com.sun.rave.web.ui.component.util.descriptors.LayoutFacet
LayoutFacet | public class LayoutFacet extends LayoutElementBase implements LayoutElement(Code) | | This class defines the descriptor for LayoutFacet. A LayoutFacet
descriptor provides information needed to attempt to obtain a Facet
from the UIComponent. If the Facet doesn't exist, it also has the
opportunity to provide a "default" in place of the facet.
author: Ken Paulsen (ken.paulsen@sun.com) |
Method Summary | |
protected boolean | encodeThis(FacesContext context, UIComponent component) This method looks for the facet on the component. | public boolean | isRendered() Returns whether this LayoutFacet should be rendered. | public void | setRendered(boolean render) |
encodeThis | protected boolean encodeThis(FacesContext context, UIComponent component) throws IOException(Code) | | This method looks for the facet on the component. If found, it
renders it and returns false (so children will not be rendered). If
not found, it returns true so that children will be rendered.
Children of a LayoutFacet represent the default value for the
Facet.
Parameters: context - The FacesContext Parameters: parent - The parent UIComponent true if children are to be rendered, false otherwise. |
isRendered | public boolean isRendered()(Code) | | Returns whether this LayoutFacet should be rendered. When this
component is used to specify an actual facet (i.e. specifies a
UIComponent ), it should not be rendred. When it
defines a place holder for a facet, then it should be rendered.
true if LayoutFacet.encodeThis(FacesContext,UIComponent) shouldexecute |
setRendered | public void setRendered(boolean render)(Code) | | |
Methods inherited from com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase | public void addChildLayoutElement(LayoutElement element)(Code)(Java Doc) protected HandlerContext createHandlerContext(FacesContext context, EventObject event, String eventType)(Code)(Java Doc) public Object dispatchHandlers(FacesContext context, String eventType, EventObject event)(Code)(Java Doc) public Object dispatchHandlers(HandlerContext handlerCtx, List handlers)(Code)(Java Doc) public void encode(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public static void encodeChild(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) abstract protected boolean encodeThis(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public List getChildLayoutElements()(Code)(Java Doc) public List getHandlers(String type)(Code)(Java Doc) public List getHandlers(String type, UIComponent comp)(Code)(Java Doc) public Map getHandlersByTypeMap()(Code)(Java Doc) public String getId(FacesContext context, UIComponent parent)(Code)(Java Doc) public LayoutDefinition getLayoutDefinition()(Code)(Java Doc) public LayoutElement getParent()(Code)(Java Doc) public String getUnevaluatedId()(Code)(Java Doc) public Object resolveValue(FacesContext context, UIComponent parent, String value)(Code)(Java Doc) public void setHandlers(String type, List handlers)(Code)(Java Doc) public void setHandlersByTypeMap(Map map)(Code)(Java Doc) protected void setParent(LayoutElement parent)(Code)(Java Doc)
|
|
|