org.apache.myfaces.component.html.ext
Class HtmlDataTableHack
java.lang.Object
javax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIData
javax.faces.component.html.HtmlDataTable
org.apache.myfaces.component.html.ext.HtmlDataTableHack
- All Implemented Interfaces:
- javax.faces.component.NamingContainer, javax.faces.component.StateHolder, ExtendedComponentBase
- Direct Known Subclasses:
- HtmlDataList, HtmlDataTable
public abstract class HtmlDataTableHack
- extends javax.faces.component.html.HtmlDataTable
- implements ExtendedComponentBase
Reimplement all UIData functionality to be able to have (protected) access
the internal DataModel.
- Version:
- $Revision: 472630 $ $Date: 2006-11-08 21:40:03 +0100 (Mi, 08 Nov 2006) $
- Author:
- Manfred Geiler (latest modification by $Author: grantsmith $)
Fields inherited from class javax.faces.component.html.HtmlDataTable |
COMPONENT_TYPE |
Fields inherited from class javax.faces.component.UIData |
COMPONENT_FAMILY |
Fields inherited from interface javax.faces.component.NamingContainer |
SEPARATOR_CHAR |
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, getFamily, getFirst, getFooter, getHeader, getRows, getValue, getVar, processDecodes, 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 |
HtmlDataTableHack
public HtmlDataTableHack()
isRowAvailable
public boolean isRowAvailable()
- Overrides:
isRowAvailable
in class javax.faces.component.UIData
getRowCount
public int getRowCount()
- Overrides:
getRowCount
in class javax.faces.component.UIData
getRowData
public java.lang.Object getRowData()
- Overrides:
getRowData
in class javax.faces.component.UIData
getRowIndex
public int getRowIndex()
- Overrides:
getRowIndex
in class javax.faces.component.UIData
getClientId
public java.lang.String getClientId(javax.faces.context.FacesContext context)
- Hack since RI does not call getRowIndex()
- Overrides:
getClientId
in class javax.faces.component.UIData
processUpdates
public void processUpdates(javax.faces.context.FacesContext context)
- Overrides:
processUpdates
in class javax.faces.component.UIData
- See Also:
UIData.processUpdates(javax.faces.context.FacesContext)
processValidators
public void processValidators(javax.faces.context.FacesContext context)
- Overrides:
processValidators
in class javax.faces.component.UIData
- See Also:
UIData.processValidators(javax.faces.context.FacesContext)
encodeBegin
public void encodeBegin(javax.faces.context.FacesContext context)
throws java.io.IOException
- Overrides:
encodeBegin
in class javax.faces.component.html.HtmlDataTable
- Throws:
java.io.IOException
- See Also:
UIData.encodeBegin(javax.faces.context.FacesContext)
setPreserveRowStates
public void setPreserveRowStates(boolean preserveRowStates)
isPreserveRowStates
public boolean isPreserveRowStates()
hasErrorMessages
protected boolean hasErrorMessages(javax.faces.context.FacesContext context)
encodeEnd
public void encodeEnd(javax.faces.context.FacesContext context)
throws java.io.IOException
- Overrides:
encodeEnd
in class javax.faces.component.UIData
- Throws:
java.io.IOException
- See Also:
UIComponentBase.encodeEnd(javax.faces.context.FacesContext)
setRowIndex
public void setRowIndex(int rowIndex)
- Overrides:
setRowIndex
in class javax.faces.component.UIData
restoreDescendantComponentStates
protected void restoreDescendantComponentStates(java.util.Iterator childIterator,
java.lang.Object state,
boolean restoreChildFacets)
saveDescendantComponentStates
protected java.lang.Object saveDescendantComponentStates(java.util.Iterator childIterator,
boolean saveChildFacets)
setValueBinding
public void setValueBinding(java.lang.String name,
javax.faces.el.ValueBinding binding)
- Overrides:
setValueBinding
in class javax.faces.component.UIData
setValue
public void setValue(java.lang.Object value)
- Overrides:
setValue
in class javax.faces.component.UIData
- See Also:
UIData.setValue(java.lang.Object)
getDataModel
protected javax.faces.model.DataModel getDataModel()
setDataModel
protected void setDataModel(javax.faces.model.DataModel datamodel)
createDataModel
protected javax.faces.model.DataModel createDataModel()
- Creates a new DataModel around the current value.
saveState
public java.lang.Object saveState(javax.faces.context.FacesContext context)
- Specified by:
saveState
in interface javax.faces.component.StateHolder
- Overrides:
saveState
in class javax.faces.component.html.HtmlDataTable
restoreState
public void restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
- Specified by:
restoreState
in interface javax.faces.component.StateHolder
- Overrides:
restoreState
in class javax.faces.component.html.HtmlDataTable
setForceId
public void setForceId(boolean b)
- Specified by:
setForceId
in interface ExtendedComponentBase
isForceId
public boolean isForceId()
- Specified by:
isForceId
in interface ExtendedComponentBase
Copyright © 2009. All Rights Reserved.