org.apache.myfaces.custom.datascroller
Class HtmlDataScrollerRenderer
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.renderkit.html.HtmlRenderer
org.apache.myfaces.custom.datascroller.HtmlDataScrollerRenderer
- public class HtmlDataScrollerRenderer
- extends HtmlRenderer
- Version:
- $Revision: 1.19 $ $Date: 2005/01/04 01:42:23 $
$Log: HtmlDataScrollerRenderer.java,v $
Revision 1.19 2005/01/04 01:42:23 svieujot
Bugfix for last page.
Revision 1.18 2005/01/04 00:28:07 svieujot
dataScroller, add rowsCountVar, displayedRowsCountVar, firstRowIndexVar and lastRowIndexVar attributes.
Revision 1.17 2004/12/18 16:31:21 tomsp
fixed issue MYFACES-1
Revision 1.16 2004/10/13 11:50:57 matze
renamed packages to org.apache
Revision 1.15 2004/09/02 08:57:17 manolito
missing setTransient
Revision 1.14 2004/08/25 16:02:12 manolito
Prevent division by zero in getPageIndex
- Author:
- Thomas Spiegl (latest modification by $Author: svieujot $)
Method Summary |
void |
decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
void |
encodeChildren(javax.faces.context.FacesContext facescontext,
javax.faces.component.UIComponent uicomponent)
|
void |
encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
|
protected javax.faces.component.UIData |
findUIData(HtmlDataScroller scroller,
javax.faces.component.UIComponent component)
|
protected javax.faces.component.html.HtmlCommandLink |
getLink(javax.faces.context.FacesContext facesContext,
HtmlDataScroller scroller,
java.lang.String text,
int pageIndex)
|
protected javax.faces.component.html.HtmlCommandLink |
getLink(javax.faces.context.FacesContext facesContext,
HtmlDataScroller scroller,
javax.faces.component.UIComponent facetComp,
java.lang.String facetName)
|
protected int |
getPageCount(javax.faces.component.UIData uiData)
|
protected int |
getPageIndex(javax.faces.component.UIData uiData)
|
boolean |
getRendersChildren()
|
protected void |
renderPaginator(javax.faces.context.FacesContext facesContext,
HtmlDataScroller scroller,
javax.faces.component.UIData uiData)
|
Methods inherited from class javax.faces.render.Renderer |
convertClientId, encodeBegin, getConvertedValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FACET_FIRST
protected static final java.lang.String FACET_FIRST
FACET_PREVOIUS
protected static final java.lang.String FACET_PREVOIUS
FACET_NEXT
protected static final java.lang.String FACET_NEXT
FACET_LAST
protected static final java.lang.String FACET_LAST
FACET_FAST_FORWARD
protected static final java.lang.String FACET_FAST_FORWARD
FACET_FAST_REWIND
protected static final java.lang.String FACET_FAST_REWIND
PAGE_NAVIGATION
protected static final java.lang.String PAGE_NAVIGATION
RENDERER_TYPE
public static final java.lang.String RENDERER_TYPE
- See Also:
- Constant Field Values
HtmlDataScrollerRenderer
public HtmlDataScrollerRenderer()
getRendersChildren
public boolean getRendersChildren()
decode
public void decode(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
encodeChildren
public void encodeChildren(javax.faces.context.FacesContext facescontext,
javax.faces.component.UIComponent uicomponent)
throws java.io.IOException
- Overrides:
encodeChildren
in class HtmlRenderer
- Throws:
java.io.IOException
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent)
throws java.io.IOException
- Throws:
java.io.IOException
renderPaginator
protected void renderPaginator(javax.faces.context.FacesContext facesContext,
HtmlDataScroller scroller,
javax.faces.component.UIData uiData)
throws java.io.IOException
- Throws:
java.io.IOException
getLink
protected javax.faces.component.html.HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext,
HtmlDataScroller scroller,
java.lang.String text,
int pageIndex)
getLink
protected javax.faces.component.html.HtmlCommandLink getLink(javax.faces.context.FacesContext facesContext,
HtmlDataScroller scroller,
javax.faces.component.UIComponent facetComp,
java.lang.String facetName)
getPageIndex
protected int getPageIndex(javax.faces.component.UIData uiData)
getPageCount
protected int getPageCount(javax.faces.component.UIData uiData)
findUIData
protected javax.faces.component.UIData findUIData(HtmlDataScroller scroller,
javax.faces.component.UIComponent component)