org.apache.myfaces.custom.datalist
Class AbstractHtmlDataList

java.lang.Object
  extended by javax.faces.component.UIComponent
      extended by javax.faces.component.UIComponentBase
          extended by javax.faces.component.UIData
              extended by javax.faces.component.html.HtmlDataTable
                  extended by org.apache.myfaces.component.html.ext.HtmlDataTableHack
                      extended by org.apache.myfaces.custom.datalist.AbstractHtmlDataList
All Implemented Interfaces:
javax.faces.component.NamingContainer, javax.faces.component.StateHolder, UserRoleAware, ExtendedComponentBase
Direct Known Subclasses:
HtmlDataList

public abstract class AbstractHtmlDataList
extends HtmlDataTableHack
implements UserRoleAware

Similar to dataTable, but does not render a table. Instead the layout attribute controls how each dataRow is rendered. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (Wed, 03 Sep 2008) $
Author:
Manfred Geiler (latest modification by $Author: lu4242 $)

Field Summary
static java.lang.String COMPONENT_TYPE
           
 
Fields inherited from class javax.faces.component.html.HtmlDataTable
COMPONENT_FAMILY
 
Fields inherited from class javax.faces.component.UIComponent
bindings
 
Fields inherited from interface org.apache.myfaces.component.UserRoleAware
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR
 
Fields inherited from interface javax.faces.component.NamingContainer
SEPARATOR_CHAR
 
Constructor Summary
AbstractHtmlDataList()
           
 
Method Summary
abstract  java.lang.String getItemStyleClass()
          CSS class to be applied to individual items in the list
abstract  java.lang.String getLayout()
          simple|unorderedList|orderedList simple = for each dataRow all children are simply rendered unorderedList = the list is rendered as HTML unordered list (= bullet list) orderedList = the list is rendered as HTML ordered list Default: simple
abstract  java.lang.String getRowCountVar()
          A parameter name, under which the rowCount is set in request scope similar to the var parameter.
abstract  java.lang.String getRowIndexVar()
          A parameter name, under which the current rowIndex is set in request scope similar to the var parameter.
 void processChildren(javax.faces.context.FacesContext context, int processAction)
          Iterates over all children, processes each according to the specified process action if the child is rendered.
 void processDecodes(javax.faces.context.FacesContext context)
          Throws NullPointerException if context is null.
 void processUpdates(javax.faces.context.FacesContext context)
           
 void processValidators(javax.faces.context.FacesContext context)
           
 void setRowIndex(int rowIndex)
           
 
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlDataTableHack
checkUpdateModelError, clearRowStates, createDataModel, deleteRowStateForRow, encodeBegin, encodeEnd, getClientId, getDataModel, getRowCount, getRowData, getRowIndex, hasErrorMessages, isForceId, isForceIdIndex, isPreserveRowStates, isRowAvailable, restoreDescendantComponentStates, restoreState, saveDescendantComponentStates, saveState, setDataModel, setForceId, setForceIdIndex, setPreserveRowStates, setValue, setValueBinding
 
Methods inherited from class javax.faces.component.html.HtmlDataTable
getBgcolor, getBorder, getCaptionClass, getCaptionStyle, getCellpadding, getCellspacing, getColumnClasses, getDir, getFamily, getFooterClass, getFrame, getHeaderClass, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRowClasses, getRules, getStyle, getStyleClass, getSummary, getTitle, getWidth, setBgcolor, setBorder, setCaptionClass, setCaptionStyle, setCellpadding, setCellspacing, setColumnClasses, setDir, setFooterClass, setFrame, setHeaderClass, setLang, setOnclick, setOndblclick, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRowClasses, setRules, setStyle, setStyleClass, setSummary, setTitle, setWidth
 
Methods inherited from class javax.faces.component.UIData
broadcast, getFirst, getFooter, getHeader, getRows, getValue, getVar, invokeOnComponent, queueEvent, setFirst, setFooter, setHeader, setRows, setValueExpression, setVar
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class javax.faces.component.UIComponent
encodeAll, getContainerClientId, getValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.myfaces.component.UserRoleAware
getEnabledOnUserRole, getVisibleOnUserRole, setEnabledOnUserRole, setVisibleOnUserRole
 

Field Detail

COMPONENT_TYPE

public static final java.lang.String COMPONENT_TYPE
See Also:
Constant Field Values
Constructor Detail

AbstractHtmlDataList

public AbstractHtmlDataList()
Method Detail

processDecodes

public void processDecodes(javax.faces.context.FacesContext context)
Throws NullPointerException if context is null. Sets row index to -1, calls processChildren, sets row index to -1.

Overrides:
processDecodes in class javax.faces.component.UIData

processUpdates

public void processUpdates(javax.faces.context.FacesContext context)
Overrides:
processUpdates in class HtmlDataTableHack
See Also:
UIData.processUpdates(javax.faces.context.FacesContext)

processValidators

public void processValidators(javax.faces.context.FacesContext context)
Overrides:
processValidators in class HtmlDataTableHack
See Also:
UIData.processValidators(javax.faces.context.FacesContext)

processChildren

public void processChildren(javax.faces.context.FacesContext context,
                            int processAction)
Iterates over all children, processes each according to the specified process action if the child is rendered.


setRowIndex

public void setRowIndex(int rowIndex)
Overrides:
setRowIndex in class HtmlDataTableHack

getRowCountVar

public abstract java.lang.String getRowCountVar()
A parameter name, under which the rowCount is set in request scope similar to the var parameter.


getRowIndexVar

public abstract java.lang.String getRowIndexVar()
A parameter name, under which the current rowIndex is set in request scope similar to the var parameter.


getLayout

public abstract java.lang.String getLayout()
simple|unorderedList|orderedList Default: simple


getItemStyleClass

public abstract java.lang.String getItemStyleClass()
CSS class to be applied to individual items in the list



Copyright © 2008 The Apache Software Foundation. All Rights Reserved.