| java.lang.Object com.sun.rave.web.ui.component.util.descriptors.LayoutElementBase com.sun.rave.web.ui.component.util.descriptors.LayoutIf com.sun.rave.web.ui.component.util.descriptors.LayoutWhile
Method Summary | |
public void | encode(FacesContext context, UIComponent component) This implementation overrides the parent encode
method. | protected boolean | encodeThis(FacesContext context, UIComponent component) This method always returns true. | protected boolean | shouldContinue(UIComponent component) This method returns true if the condition of this LayoutWhile is
met, false otherwise. |
encode | public void encode(FacesContext context, UIComponent component) throws IOException(Code) | | This implementation overrides the parent encode
method. It does this to cause the encode process to loop while
LayoutWhile.shouldContinue(UIComponent) returns
true. Currently there is no infinite loop checking, so be
careful.
Parameters: context - The FacesContext Parameters: component - The UIComponent |
encodeThis | protected boolean encodeThis(FacesContext context, UIComponent component)(Code) | | This method always returns true. The condition is checked in
LayoutWhile.shouldContinue(UIComponent) instead of here because
the
LayoutWhile.encode(FacesContext,UIComponent) method
evaluates the condition and calls the super. Performing the check
here would cause the condition to be evaluated twice.
Parameters: context - The FacesContext Parameters: component - The UIComponent true |
shouldContinue | protected boolean shouldContinue(UIComponent component)(Code) | | This method returns true if the condition of this LayoutWhile is
met, false otherwise. This provides the functionality for
iteratively displaying a portion of the layout tree.
Parameters: component - The UIComponent true if children are to be rendered, false otherwise. |
Methods inherited from com.sun.rave.web.ui.component.util.descriptors.LayoutIf | protected boolean encodeThis(FacesContext context, UIComponent component)(Code)(Java Doc) public String getCondition()(Code)(Java Doc)
|
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)
|
|
|