|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.render.Renderer
org.apache.myfaces.trinidad.render.CoreRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer
org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.TableRenderer
public abstract class TableRenderer
| Field Summary | |
|---|---|
static boolean |
DEFAULT_REPEAT_CONTROL_BAR
Whether the table should repeat its control bars above and below the table by default if not specified by the -tr-repeat-control-bar skin property. |
| Fields inherited from class org.apache.myfaces.trinidadinternal.renderkit.core.xhtml.XhtmlRenderer |
|---|
TRANSPARENT_GIF |
| Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
|---|
CHAR_UNDEFINED, NO_CHILD_INDEX |
| Constructor Summary | |
|---|---|
TableRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
|
| Method Summary | |
|---|---|
static org.apache.myfaces.trinidad.event.RangeChangeEvent |
createRangeChangeEvent(org.apache.myfaces.trinidad.component.CollectionComponent table,
int newStart)
|
protected TableRenderingContext |
createRenderingContext(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component)
Creates the correct subclass of the TableRenderingContext to use for this Renderer. |
protected java.util.Map<java.lang.String,java.lang.String> |
createResourceKeyMap()
|
protected void |
decode(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean facesBean,
java.lang.String clientId)
|
protected void |
decodeSelection(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent treeTable)
|
protected void |
encodeAll(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected void |
findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
|
protected java.lang.String |
getDefaultStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected java.lang.String |
getEmptyText(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
static java.lang.String |
getHeaderFormatClass(TableRenderingContext tContext,
boolean isColumnHeader)
|
static java.util.Set<java.lang.Object> |
getPartialRowKeys(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
java.lang.String clientId)
Returns the set of row keys identified by PPR. |
boolean |
getRendersChildren()
|
static java.lang.String |
getRowHeaderFormatClass()
|
protected org.apache.myfaces.trinidad.render.CoreRenderer |
getSharedHideShowNode()
Returns the shared UINode used to render detail hide/show |
protected org.apache.myfaces.trinidad.render.CoreRenderer |
getSharedNavBarRenderer()
Returns the shared Renderer used to render navbars |
protected java.lang.Object |
getWidth(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected abstract void |
renderControlBar(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
Renders the control bar |
protected void |
renderNavigationFooterBars(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Render the navigation header bars, i.e. |
protected void |
renderNavigationHeaderBars(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Render the navigation header bars, i.e. |
protected abstract void |
renderSingleRow(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
|
protected int |
renderSpecialColumns(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent treeTable,
int physicalColumnIndex)
used to render special column headers, like select and details. |
protected abstract void |
renderSubControlBar(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component,
boolean isUpper)
Render sthe area with the filter and links, if necessary |
protected void |
renderTableAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.Object cellPadding,
java.lang.Object border)
renders attributes on the outermost table element. |
protected abstract void |
renderTableContent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
Renders the actual table content, with headers |
protected boolean |
renderTableWithoutColumns(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
Render an empty table, if necessary. |
static void |
setSelectionResourceKeyMap(org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext)
Sets the skinResourceKeyMap on the RenderingContext with a map which maps SkinSelectors.AF_COLUMN_CELL* styles to SkinSelectors.AF_TABLE_SELECT_MANY or SkinSelectors.AF_TABLE_SELECT_ONE styles. |
protected boolean |
shouldRenderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
Returns true if the component should render an ID. |
| Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
|---|
afterEncode, beforeEncode, decode, decodeBehaviors, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeComponentResources, encodeEnd, encodeEnd, getBehaviorParameters, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isOpera, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderId, renderStyleClass, renderStyleClasses, setRenderingProperty, setupChildrenEncodingContext, setupEncodingContext, setupEncodingContext, tearDownChildrenEncodingContext, tearDownEncodingContext, tearDownEncodingContext, toActionUri, toChar, toInt, toLong, toResourceUri, toString, toUri, visitChildrenForEncoding |
| Methods inherited from class javax.faces.render.Renderer |
|---|
convertClientId, getConvertedValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean DEFAULT_REPEAT_CONTROL_BAR
| Constructor Detail |
|---|
public TableRenderer(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
| Method Detail |
|---|
protected void findTypeConstants(org.apache.myfaces.trinidad.bean.FacesBean.Type type)
findTypeConstants in class XhtmlRendererpublic boolean getRendersChildren()
getRendersChildren in class javax.faces.render.Renderer
protected void decode(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean facesBean,
java.lang.String clientId)
decode in class org.apache.myfaces.trinidad.render.CoreRenderer
protected final void decodeSelection(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent treeTable)
public static org.apache.myfaces.trinidad.event.RangeChangeEvent createRangeChangeEvent(org.apache.myfaces.trinidad.component.CollectionComponent table,
int newStart)
public static java.util.Set<java.lang.Object> getPartialRowKeys(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
java.lang.String clientId)
protected void encodeAll(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
encodeAll in class org.apache.myfaces.trinidad.render.CoreRendererjava.io.IOException
protected java.lang.String getDefaultStyleClass(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
getDefaultStyleClass in class XhtmlRenderer
protected void renderTableAttributes(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean,
java.lang.Object cellPadding,
java.lang.Object border)
throws java.io.IOException
java.io.IOException
protected TableRenderingContext createRenderingContext(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
javax.faces.component.UIComponent component)
protected abstract void renderSingleRow(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
java.io.IOException
protected boolean renderTableWithoutColumns(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
java.io.IOException
protected int renderSpecialColumns(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent treeTable,
int physicalColumnIndex)
throws java.io.IOException
java.io.IOException
protected void renderNavigationHeaderBars(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
java.io.IOException
protected void renderNavigationFooterBars(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
throws java.io.IOException
java.io.IOException
protected abstract void renderControlBar(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
java.io.IOException
protected abstract void renderSubControlBar(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component,
boolean isUpper)
throws java.io.IOException
java.io.IOException
protected abstract void renderTableContent(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
throws java.io.IOException
java.io.IOException
protected java.lang.String getEmptyText(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.Object getWidth(javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
protected final org.apache.myfaces.trinidad.render.CoreRenderer getSharedHideShowNode()
protected org.apache.myfaces.trinidad.render.CoreRenderer getSharedNavBarRenderer()
public static java.lang.String getRowHeaderFormatClass()
public static java.lang.String getHeaderFormatClass(TableRenderingContext tContext,
boolean isColumnHeader)
isColumnHeader - true if the style for a column header is needed.
public static void setSelectionResourceKeyMap(org.apache.myfaces.trinidad.context.RenderingContext rc,
TableRenderingContext tContext)
protected boolean shouldRenderId(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
XhtmlRenderer
shouldRenderId in class XhtmlRendererprotected java.util.Map<java.lang.String,java.lang.String> createResourceKeyMap()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||