|
||||||||||
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 |
---|
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 arc,
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()
|
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
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 arc,
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 |
getEmptyText(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
static java.lang.String |
getHeaderFormatClass(TableRenderingContext tContext,
boolean isColumnHeader)
|
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(org.apache.myfaces.trinidad.bean.FacesBean bean)
|
protected abstract void |
renderControlBar(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
Renders the control bar |
protected void |
renderNavigationHeaderBars(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component,
org.apache.myfaces.trinidad.bean.FacesBean bean)
Render the navigation header bars, i.e. all the bars that appear above the actual data table. eg. title, controlbar and subcontrolbar |
protected abstract void |
renderSingleRow(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
|
protected int |
renderSpecialColumns(javax.faces.context.FacesContext context,
org.apache.myfaces.trinidad.context.RenderingContext arc,
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 arc,
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 arc,
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 arc,
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 arc,
TableRenderingContext tContext,
javax.faces.component.UIComponent component)
Render an empty table, if necessary. |
static void |
setSelectionResourceKeyMap(org.apache.myfaces.trinidad.context.RenderingContext arc,
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 |
---|
delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeEnd, encodeEnd, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isIE, isInaccessibleMode, isPDA, isScreenReaderMode, renderEncodedActionURI, renderEncodedResourceURI, renderId, renderStyleClass, renderStyleClasses, setRenderingProperty, toChar, toInt, toLong, toString, toUri |
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 |
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 XhtmlRenderer
public boolean getRendersChildren()
getRendersChildren
in class javax.faces.render.Renderer
public void decode(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
decode
in class javax.faces.render.Renderer
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)
protected void encodeAll(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
encodeAll
in class org.apache.myfaces.trinidad.render.CoreRenderer
java.io.IOException
protected void renderTableAttributes(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, 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 arc, javax.faces.component.UIComponent component)
protected abstract void renderSingleRow(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, 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 arc, 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 arc, 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 arc, 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 arc, 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 arc, 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 arc, TableRenderingContext tContext, javax.faces.component.UIComponent component) throws java.io.IOException
java.io.IOException
protected java.lang.String getEmptyText(org.apache.myfaces.trinidad.bean.FacesBean bean)
protected java.lang.Object getWidth(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 arc, TableRenderingContext tContext)
protected boolean shouldRenderId(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component)
XhtmlRenderer
shouldRenderId
in class XhtmlRenderer
protected 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 |