|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.trinidadinternal.ui.BaseRenderer
org.apache.myfaces.trinidadinternal.ui.ElementRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.FormElementRenderer
org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.OptionContainerRenderer
public abstract class OptionContainerRenderer
Nested Class Summary | |
---|---|
protected static class |
OptionContainerRenderer.OptionInfo
The base option information class. |
protected static class |
OptionContainerRenderer.OptionRenderer
This inner class provides a base option renderer implementation, complete with accessors that dereference the option information. |
Field Summary |
---|
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.FormElementRenderer |
---|
PDA_SPACE, VISIBLE_FORM_ELEMENT_RENDERED |
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.XhtmlLafRenderer |
---|
TRANSPARENT_GIF |
Fields inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
NO_CHILD_INDEX |
Fields inherited from interface org.apache.myfaces.trinidadinternal.ui.laf.base.BaseLafConstants |
---|
NBSP_CHAR, NBSP_STRING, NOT_FOUND, ONE, TWO, URI_DELIMITER, ZERO |
Constructor Summary | |
---|---|
OptionContainerRenderer()
|
Method Summary | |
---|---|
protected OptionContainerRenderer.OptionInfo |
createOptionInfo(UIXRenderingContext context,
UINode node)
Subclasses can override this method to create an OptionInfo subclass, populated with information, leveraging populateOptionInfo as needed. |
protected java.lang.Object |
getOnChange(UIXRenderingContext context,
UINode node)
Returns the onChange handler. |
protected OptionContainerRenderer.OptionInfo |
getOptionInfo(UIXRenderingContext context)
Returns the cached option information. |
protected abstract Renderer |
getOptionRenderer(UIXRenderingContext context)
Subclasses should implement this method to return the specifc option renderer to use. |
protected java.lang.Integer |
getSelectedIndex(UIXRenderingContext context,
UINode node)
Returns the value associated with the selected index attribute |
protected java.lang.String |
getSelectedValue(UIXRenderingContext context,
UINode node)
Returns the value associated with the selected value attribute |
protected Selection |
getSelection(UIXRenderingContext context,
UINode node)
|
protected abstract java.lang.Boolean |
isMultipleSelection(UIXRenderingContext context,
UINode node)
|
protected void |
populateOptionInfo(UIXRenderingContext context,
UINode node,
OptionContainerRenderer.OptionInfo info)
|
protected void |
postrender(UIXRenderingContext context,
UINode node)
Override to add support for rendering syle elements |
protected void |
prerender(UIXRenderingContext context,
UINode node)
Override to add support for rendering syle elements |
protected void |
renderAsNonElement(UIXRenderingContext context,
UINode node)
|
protected void |
renderEventHandlers(UIXRenderingContext context,
UINode node)
Renders event handlers for the node. |
protected boolean |
renderSelectItem(UIXRenderingContext context,
UINode node,
javax.faces.component.UIComponent component,
javax.faces.model.SelectItem item,
java.lang.String value,
boolean isSelected,
boolean renderedOne,
int index)
Render a single select item. |
protected void |
renderSelectItemOptions(UIXRenderingContext context,
UINode node,
javax.faces.component.UIComponent component,
java.util.List<javax.faces.model.SelectItem> items)
|
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.laf.base.xhtml.FormElementRenderer |
---|
doRenderStyleAttrs, getDefaultDisabledStyleClass, getDefaultStyleClass, getDisabled, getID, getOnBlur, getOnFocus, getReadOnly, getStyleClass, getText, getTransformedName, isHiddenLabelRequired, needsUniqueID, render, renderAsElement, renderAsNonElementContent, renderReadOnlyAsElement, renderShortDescAsHiddenLabel |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.ElementRenderer |
---|
getElementName, getRenderer, renderAttribute, renderAttribute, renderAttribute, renderAttribute |
Methods inherited from class org.apache.myfaces.trinidadinternal.ui.BaseRenderer |
---|
getNextRenderedChildIndex, getNextRenderedChildNode, getVisibleIndexedChildCount, renderBetweenIndexedChildren, renderBetweenIndexedChildren, renderChild, renderContent, renderIndexedChild, renderIndexedChild, renderNamedChild, renderNamedChild, skipChild, skipNode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OptionContainerRenderer()
Method Detail |
---|
protected void renderAsNonElement(UIXRenderingContext context, UINode node) throws java.io.IOException
renderAsNonElement
in class FormElementRenderer
java.io.IOException
protected void prerender(UIXRenderingContext context, UINode node) throws java.io.IOException
XhtmlLafRenderer
prerender
in class XhtmlLafRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
ElementRenderer.renderAttributes(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
,
ElementRenderer.getElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void postrender(UIXRenderingContext context, UINode node) throws java.io.IOException
XhtmlLafRenderer
postrender
in class FormElementRenderer
context
- the rendering contextnode
- the current UINode
java.io.IOException
ElementRenderer.getElementName(org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext, org.apache.myfaces.trinidadinternal.ui.UINode)
protected void renderEventHandlers(UIXRenderingContext context, UINode node) throws java.io.IOException
renderEventHandlers
in class XhtmlLafRenderer
java.io.IOException
protected abstract java.lang.Boolean isMultipleSelection(UIXRenderingContext context, UINode node)
protected java.lang.Object getOnChange(UIXRenderingContext context, UINode node) throws java.io.IOException
java.io.IOException
protected java.lang.String getSelectedValue(UIXRenderingContext context, UINode node)
protected java.lang.Integer getSelectedIndex(UIXRenderingContext context, UINode node)
protected Selection getSelection(UIXRenderingContext context, UINode node)
protected OptionContainerRenderer.OptionInfo createOptionInfo(UIXRenderingContext context, UINode node)
protected final void populateOptionInfo(UIXRenderingContext context, UINode node, OptionContainerRenderer.OptionInfo info)
protected OptionContainerRenderer.OptionInfo getOptionInfo(UIXRenderingContext context)
protected abstract Renderer getOptionRenderer(UIXRenderingContext context)
protected void renderSelectItemOptions(UIXRenderingContext context, UINode node, javax.faces.component.UIComponent component, java.util.List<javax.faces.model.SelectItem> items) throws java.io.IOException
java.io.IOException
protected boolean renderSelectItem(UIXRenderingContext context, UINode node, javax.faces.component.UIComponent component, javax.faces.model.SelectItem item, java.lang.String value, boolean isSelected, boolean renderedOne, int index) throws java.io.IOException
renderedOne
- true if an item has already been rendered
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |