| com.sun.rave.web.ui.renderer.AbstractRenderer com.sun.rave.web.ui.renderer.HyperlinkRenderer
All known Subclasses: com.sun.rave.web.ui.renderer.TabRenderer, com.sun.rave.web.ui.renderer.ImageHyperlinkRenderer,
HyperlinkRenderer | public class HyperlinkRenderer extends AbstractRenderer (Code) | | This class is responsible for rendering the
Hyperlink component for the
HTML Render Kit. The
Hyperlink component can be used as an anchor, a
plain hyperlink or a hyperlink that submits the form depending on how the
properites are filled out for the component
|
Method Summary | |
public void | decode(FacesContext context, UIComponent component) Decode will determine if this component was the one that submitted the form. | public void | encodeChildren(FacesContext context, UIComponent component) | protected void | finishRenderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) | public boolean | getRendersChildren() | protected String | getStyles(FacesContext context, UIComponent component) | protected void | renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) Render the attributes for an anchor tag. | protected void | renderChildren(FacesContext context, UIComponent component) This method is called by renderEnd. | protected void | renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) | protected void | renderLink(FacesContext context, UIComponent component, ResponseWriter writer) | protected void | renderStart(FacesContext context, UIComponent component, ResponseWriter writer) |
decode | public void decode(FacesContext context, UIComponent component)(Code) | | Decode will determine if this component was the one that submitted the form.
It determines this by looking for the hidden field with the link's name
appended with an "_submittedField"
If this hidden field contains the id of the component then this component submitted
the form.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be decoded exception: NullPointerException - if context orcomponent is null |
encodeChildren | public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code) | | |
finishRenderAttributes | protected void finishRenderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | |
getRendersChildren | public boolean getRendersChildren()(Code) | | |
getStyles | protected String getStyles(FacesContext context, UIComponent component)(Code) | | This function returns the style classes necessary to display the
Hyperlink component as it's state indicates
the style classes needed to display the current state of the component |
renderAttributes | protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the attributes for an anchor tag. The onclick attribute will contain
extra javascript that will appropriately submit the form if the URL field is
not set.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be rendered Parameters: writer - ResponseWriter to which the elementattributes should be rendered exception: IOException - if an input/output error occurs |
renderChildren | protected void renderChildren(FacesContext context, UIComponent component) throws IOException(Code) | | This method is called by renderEnd. It is provided so renderers that
extend HyperlinkRenderer (such as TabRenderer) may override it in order
to prevent children from always being rendered.
Parameters: context - The current FacesContext. Parameters: component - The current component. |
renderEnd | protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Close off the anchor tag.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be rendered Parameters: writer - ResponseWriter to which the elementend should be rendered exception: IOException - if an input/output error occurs |
renderLink | protected void renderLink(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | |
renderStart | protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code) | | Render the start of an anchor (hyperlink) tag.
Parameters: context - FacesContext for the current request Parameters: component - UIComponent to be rendered Parameters: writer - ResponseWriter to which the elementstart should be rendered exception: IOException - if an input/output error occurs |
Methods inherited from com.sun.rave.web.ui.renderer.AbstractRenderer | protected void addBooleanAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) protected void addCoreAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String styles) throws IOException(Code)(Java Doc) protected void addIntegerAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) protected static void addStringAttributes(FacesContext context, UIComponent component, ResponseWriter writer, String names) throws IOException(Code)(Java Doc) public void decode(FacesContext context, UIComponent component)(Code)(Java Doc) public void encodeBegin(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeChildren(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) public void encodeEnd(FacesContext context, UIComponent component) throws IOException(Code)(Java Doc) protected Application getApplication()(Code)(Java Doc) protected Object getAsObject(FacesContext context, UIComponent component, String value)(Code)(Java Doc) protected String getAsString(FacesContext context, UIComponent component)(Code)(Java Doc) protected ExternalContext getExternalContext()(Code)(Java Doc) protected FacesContext getFacesContext()(Code)(Java Doc) protected Object getSubmittedValue(FacesContext context, UIComponent component)(Code)(Java Doc) protected boolean isDisabled(UIComponent component)(Code)(Java Doc) protected boolean isPortlet(FacesContext context)(Code)(Java Doc) protected boolean isReadOnly(UIComponent component)(Code)(Java Doc) protected void renderAttributes(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void renderEnd(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void renderMarkup(FacesContext context, UIComponent component, ResponseWriter writer, Markup markup) throws IOException(Code)(Java Doc) protected void renderStart(FacesContext context, UIComponent component, ResponseWriter writer) throws IOException(Code)(Java Doc) protected void setSubmittedValue(FacesContext context, UIComponent component)(Code)(Java Doc)
|
|
|