org.apache.myfaces.custom.datalist
Class HtmlDataList

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
                          extended by org.apache.myfaces.custom.datalist.HtmlDataList
All Implemented Interfaces:
javax.faces.component.NamingContainer, javax.faces.component.StateHolder, UserRoleAware, ExtendedComponentBase

public class HtmlDataList
extends AbstractHtmlDataList


Field Summary
static java.lang.String COMPONENT_FAMILY
           
static java.lang.String COMPONENT_TYPE
           
static java.lang.String DEFAULT_RENDERER_TYPE
           
 
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
HtmlDataList()
           
 
Method Summary
 java.lang.String getEnabledOnUserRole()
          If user is in given role, this component will be rendered normally.
 java.lang.String getFamily()
           
 java.lang.String getItemOnClick()
          OnClick handler to be applied to individual items in the list
 java.lang.String getItemStyleClass()
          CSS class to be applied to individual items in the list
 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
 java.lang.String getRowCountVar()
          A parameter name, under which the rowCount is set in request scope similar to the var parameter.
 java.lang.String getRowIndexVar()
          A parameter name, under which the current rowIndex is set in request scope similar to the var parameter.
 java.lang.String getVisibleOnUserRole()
          If user is in given role, this component will be rendered normally.
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setEnabledOnUserRole(java.lang.String enabledOnUserRole)
           
 void setItemOnClick(java.lang.String itemOnClick)
           
 void setItemStyleClass(java.lang.String itemStyleClass)
           
 void setLayout(java.lang.String layout)
           
 void setRowCountVar(java.lang.String rowCountVar)
           
 void setRowIndexVar(java.lang.String rowIndexVar)
           
 void setVisibleOnUserRole(java.lang.String visibleOnUserRole)
           
 
Methods inherited from class org.apache.myfaces.custom.datalist.AbstractHtmlDataList
processChildren, processDecodes, processUpdates, processValidators, setRowIndex
 
Methods inherited from class org.apache.myfaces.component.html.ext.HtmlDataTableHack
checkUpdateModelError, clearRowStates, createDataModel, deleteRowStateForRow, encodeBegin, encodeEnd, getClientId, getDataModel, getDerivedRowKeyPrefix, getDerivedSubClientId, getRowCount, getRowData, getRowIndex, getRowKey, hasErrorMessages, isForceId, isForceIdIndex, isPreserveRowStates, isRowAvailable, restoreDescendantComponentStates, restoreDescendantComponentStates, saveDescendantComponentStates, saveDescendantComponentStates, setDataModel, setDerivedRowKeyPrefix, setForceId, setForceIdIndex, setPreserveRowStates, setRowKey, setValue, setValueBinding
 
Methods inherited from class javax.faces.component.html.HtmlDataTable
getBgcolor, getBorder, getCellpadding, getCellspacing, getColumnClasses, getDir, getFooterClass, getFrame, getHeaderClass, getLang, getOnclick, getOndblclick, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRowClasses, getRules, getStyle, getStyleClass, getSummary, getTitle, getWidth, setBgcolor, setBorder, 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, queueEvent, setFirst, setFooter, setHeader, setRows, setVar
 
Methods inherited from class javax.faces.component.UIComponentBase
addFacesListener, decode, encodeChildren, findComponent, getAttributes, getChildCount, getChildren, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_FAMILY

public static final java.lang.String COMPONENT_FAMILY
See Also:
Constant Field Values

COMPONENT_TYPE

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

DEFAULT_RENDERER_TYPE

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

HtmlDataList

public HtmlDataList()
Method Detail

getFamily

public java.lang.String getFamily()
Overrides:
getFamily in class javax.faces.component.UIData

getRowCountVar

public java.lang.String getRowCountVar()
Description copied from class: AbstractHtmlDataList
A parameter name, under which the rowCount is set in request scope similar to the var parameter.

Specified by:
getRowCountVar in class AbstractHtmlDataList

setRowCountVar

public void setRowCountVar(java.lang.String rowCountVar)

getRowIndexVar

public java.lang.String getRowIndexVar()
Description copied from class: AbstractHtmlDataList
A parameter name, under which the current rowIndex is set in request scope similar to the var parameter.

Specified by:
getRowIndexVar in class AbstractHtmlDataList

setRowIndexVar

public void setRowIndexVar(java.lang.String rowIndexVar)

getLayout

public java.lang.String getLayout()
Description copied from class: AbstractHtmlDataList
simple|unorderedList|orderedList Default: simple

Specified by:
getLayout in class AbstractHtmlDataList

setLayout

public void setLayout(java.lang.String layout)

getItemStyleClass

public java.lang.String getItemStyleClass()
Description copied from class: AbstractHtmlDataList
CSS class to be applied to individual items in the list

Specified by:
getItemStyleClass in class AbstractHtmlDataList

setItemStyleClass

public void setItemStyleClass(java.lang.String itemStyleClass)

getItemOnClick

public java.lang.String getItemOnClick()
Description copied from class: AbstractHtmlDataList
OnClick handler to be applied to individual items in the list

Specified by:
getItemOnClick in class AbstractHtmlDataList

setItemOnClick

public void setItemOnClick(java.lang.String itemOnClick)

getEnabledOnUserRole

public java.lang.String getEnabledOnUserRole()
Description copied from interface: UserRoleAware
If user is in given role, this component will be rendered normally. If not, no hyperlink is rendered but all nested tags (=body) are rendered.

Returns:

setEnabledOnUserRole

public void setEnabledOnUserRole(java.lang.String enabledOnUserRole)

getVisibleOnUserRole

public java.lang.String getVisibleOnUserRole()
Description copied from interface: UserRoleAware
If user is in given role, this component will be rendered normally. If not, nothing is rendered and the body of this tag will be skipped.

Returns:

setVisibleOnUserRole

public void setVisibleOnUserRole(java.lang.String visibleOnUserRole)

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class HtmlDataTableHack

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class HtmlDataTableHack


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