|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
javax.faces.component.UIData
javax.faces.component.html.HtmlDataTable
org.apache.myfaces.component.html.ext.HtmlDataTableHack
org.apache.myfaces.component.html.ext.AbstractHtmlDataTable
org.apache.myfaces.component.html.ext.HtmlDataTable
public class HtmlDataTable
Nested Class Summary | |
---|---|
protected static class |
HtmlDataTable.PropertyKeys
|
Field Summary | |
---|---|
static String |
COMPONENT_FAMILY
|
static String |
COMPONENT_TYPE
|
static String |
DEFAULT_RENDERER_TYPE
|
Fields inherited from class org.apache.myfaces.component.html.ext.AbstractHtmlDataTable |
---|
DETAIL_STAMP_FACET_NAME, DETAIL_STAMP_ROW_FACET_NAME, NEWSPAPER_COLUMNS_PROPERTY, NEWSPAPER_ORIENTATION_PROPERTY, SPACER_FACET_NAME, TABLE_BODY_FACET_NAME, TABLE_ROW_FACET_NAME |
Fields inherited from class javax.faces.component.UIComponent |
---|
BEANINFO_KEY, bindings, COMPOSITE_COMPONENT_TYPE_KEY, COMPOSITE_FACET_NAME, CURRENT_COMPONENT, CURRENT_COMPOSITE_COMPONENT, FACETS_KEY, VIEW_LOCATION_KEY |
Fields inherited from interface org.apache.myfaces.component.UserRoleAware |
---|
ENABLED_ON_USER_ROLE_ATTR, VISIBLE_ON_USER_ROLE_ATTR |
Fields inherited from interface org.apache.myfaces.component.NewspaperTable |
---|
NEWSPAPER_HORIZONTAL_ORIENTATION |
Fields inherited from interface javax.faces.component.NamingContainer |
---|
SEPARATOR_CHAR |
Constructor Summary | |
---|---|
HtmlDataTable()
|
Method Summary | |
---|---|
void |
addClientBehavior(String eventName,
javax.faces.component.behavior.ClientBehavior behavior)
|
String |
getAlign()
HTML: Specifies the horizontal alignment of this element. |
String |
getBodyStyle()
Corresponds to the HTML style attribute for the table body tag |
String |
getBodyStyleClass()
Corresponds to the HTML class attribute for the table body tag. |
String |
getDatafld()
Reserved for future use. |
String |
getDataformatas()
Reserved for future use. |
String |
getDatasrc()
Reserved for future use. |
String |
getDetailStampLocation()
before|after - where to render the detailStamp, before the actual row or after it. |
String |
getDir()
|
String |
getEnabledOnUserRole()
If user is in given role, this component will be rendered normally. |
Collection<String> |
getEventNames()
|
String |
getFamily()
|
String |
getLang()
|
int |
getNewspaperColumns()
The number of columns to wrap the table over. |
String |
getNewspaperOrientation()
The orientation of the newspaper columns in the newspaper table - "horizontal" or "vertical". |
String |
getOnclick()
|
String |
getOndblclick()
|
String |
getOnkeydown()
|
String |
getOnkeypress()
|
String |
getOnkeyup()
|
String |
getOnmousedown()
|
String |
getOnmousemove()
|
String |
getOnmouseout()
|
String |
getOnmouseover()
|
String |
getOnmouseup()
|
String |
getPreviousRowDataVar()
A parameter name, under which the previous RowData Object is set in request scope similar to the rowIndexVar and rowCountVar parameters. |
String |
getRowCountVar()
A parameter name, under which the rowCount is set in request scope similar to the var parameter. |
String |
getRowGroupStyle()
Corresponds to the HTML style attribute for grouped rows. |
String |
getRowGroupStyleClass()
StyleClass for grouped rows. |
String |
getRowId()
The id to use for |
String |
getRowIndexVar()
A parameter name, under which the current rowIndex is set in request scope similar to the var parameter. |
String |
getRowOnClick()
Defines a JavaScript onclick event handler for each table row |
String |
getRowOnDblClick()
Defines a JavaScript ondblclick event handler for each table row |
String |
getRowOnKeyDown()
Defines a JavaScript onkeydown event handler for each table row |
String |
getRowOnKeyPress()
Defines a JavaScript onkeypress event handler for each table row |
String |
getRowOnKeyUp()
Defines a JavaScript onkeyup event handler for each table row |
String |
getRowOnMouseDown()
Defines a JavaScript onmpusedown event handler for each table row |
String |
getRowOnMouseMove()
Defines a JavaScript onmousemove event handler for each table row |
String |
getRowOnMouseOut()
Defines a JavaScript onmouseout event handler for each table row |
String |
getRowOnMouseOver()
Defines a JavaScript onmouseover event handler for each table row |
String |
getRowOnMouseUp()
Defines a JavaScript onmouseup event handler for each table row |
String |
getRowStyle()
Corresponds to the HTML style attribute for the row tr tag. |
String |
getRowStyleClass()
Corresponds to the HTML class attribute for the row tr tag. |
String |
getSortedColumnVar()
A parameter name, under which the a boolean is set in request scope similar to the var parameter. |
String |
getSortProperty()
The name of a javabean property on which the table is sorted. |
String |
getStyle()
|
String |
getStyleClass()
|
String |
getTitle()
|
String |
getValueType()
Indicate the expected type of the EL expression pointed by value property. |
String |
getVisibleOnUserRole()
If user is in given role, this component will be rendered normally. |
boolean |
isAjaxBodyRender()
Indicate if the "body" can be a target for an ajax render operation. |
boolean |
isAjaxRowRender()
Indicate if "row" can be a target for an ajax render operation. |
boolean |
isDetailStampExpandedDefault()
true|false - true if the detailStamp should be expanded by default. |
boolean |
isEmbedded()
Avoids rendering the html table tags, thus, giving you a table rendering just rows. |
boolean |
isPreserveDataModel()
Indicates whether the state of the whole DataModel should be saved and restored. |
boolean |
isPreserveSort()
Indicates whether the state of the sortColumn and sortAscending attribute should be saved and restored and written back to the model during the update model phase. |
boolean |
isRenderedIfEmpty()
Indicates whether this table should be rendered if the underlying DataModel is empty. |
protected boolean |
isSetPreserveSort()
|
boolean |
isSortable()
Define if the table is sortable or not |
void |
setAjaxBodyRender(boolean ajaxBodyRender)
|
void |
setAjaxRowRender(boolean ajaxRowRender)
|
void |
setAlign(String align)
|
void |
setBodyStyle(String bodyStyle)
|
void |
setBodyStyleClass(String bodyStyleClass)
|
void |
setDatafld(String datafld)
|
void |
setDataformatas(String dataformatas)
|
void |
setDatasrc(String datasrc)
|
void |
setDetailStampExpandedDefault(boolean detailStampExpandedDefault)
|
void |
setDetailStampLocation(String detailStampLocation)
|
void |
setDir(String dir)
|
void |
setEmbedded(boolean embedded)
|
void |
setEnabledOnUserRole(String enabledOnUserRole)
|
void |
setLang(String lang)
|
void |
setNewspaperColumns(int newspaperColumns)
|
void |
setNewspaperOrientation(String newspaperOrientation)
|
void |
setOnclick(String onclick)
|
void |
setOndblclick(String ondblclick)
|
void |
setOnkeydown(String onkeydown)
|
void |
setOnkeypress(String onkeypress)
|
void |
setOnkeyup(String onkeyup)
|
void |
setOnmousedown(String onmousedown)
|
void |
setOnmousemove(String onmousemove)
|
void |
setOnmouseout(String onmouseout)
|
void |
setOnmouseover(String onmouseover)
|
void |
setOnmouseup(String onmouseup)
|
void |
setPreserveDataModel(boolean preserveDataModel)
|
void |
setPreserveSort(boolean preserveSort)
|
void |
setPreviousRowDataVar(String previousRowDataVar)
|
void |
setRenderedIfEmpty(boolean renderedIfEmpty)
|
void |
setRowCountVar(String rowCountVar)
|
void |
setRowGroupStyle(String rowGroupStyle)
|
void |
setRowGroupStyleClass(String rowGroupStyleClass)
|
void |
setRowId(String rowId)
|
void |
setRowIndexVar(String rowIndexVar)
|
void |
setRowOnClick(String rowOnClick)
|
void |
setRowOnDblClick(String rowOnDblClick)
|
void |
setRowOnKeyDown(String rowOnKeyDown)
|
void |
setRowOnKeyPress(String rowOnKeyPress)
|
void |
setRowOnKeyUp(String rowOnKeyUp)
|
void |
setRowOnMouseDown(String rowOnMouseDown)
|
void |
setRowOnMouseMove(String rowOnMouseMove)
|
void |
setRowOnMouseOut(String rowOnMouseOut)
|
void |
setRowOnMouseOver(String rowOnMouseOver)
|
void |
setRowOnMouseUp(String rowOnMouseUp)
|
void |
setRowStyle(String rowStyle)
|
void |
setRowStyleClass(String rowStyleClass)
|
void |
setSortable(boolean sortable)
|
void |
setSortedColumnVar(String sortedColumnVar)
|
void |
setSortProperty(String sortProperty)
|
void |
setStyle(String style)
|
void |
setStyleClass(String styleClass)
|
void |
setTitle(String title)
|
void |
setValueBinding(String name,
javax.faces.el.ValueBinding binding)
|
void |
setValueExpression(String name,
javax.el.ValueExpression expression)
|
void |
setValueType(String valueType)
|
void |
setVisibleOnUserRole(String visibleOnUserRole)
|
Methods inherited from class javax.faces.component.html.HtmlDataTable |
---|
getBgcolor, getBodyrows, getBorder, getCaptionClass, getCaptionStyle, getCellpadding, getCellspacing, getColumnClasses, getFooterClass, getFrame, getHeaderClass, getRowClasses, getRules, getSummary, getWidth, setBgcolor, setBodyrows, setBorder, setCaptionClass, setCaptionStyle, setCellpadding, setCellspacing, setColumnClasses, setFooterClass, setFrame, setHeaderClass, setRowClasses, setRules, setSummary, setWidth |
Methods inherited from class javax.faces.component.UIData |
---|
broadcast, createUniqueId, getFooter, getHeader, getValue, getVar, queueEvent, setFooter, setHeader, setVar |
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, clearInitialState, decode, encodeAll, encodeChildren, getAttributes, getChildCount, getChildren, getClientBehaviors, getDefaultEventName, getFacesContext, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, initialStateMarked, isTransient, processRestoreState, processSaveState, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient |
Methods inherited from class javax.faces.component.UIComponent |
---|
getClientId, getCompositeComponentParent, getCurrentComponent, getCurrentCompositeComponent, getListenersForEventClass, getNamingContainer, getResourceBundleMap, getStateHelper, getStateHelper, getValueExpression, isCompositeComponent, isInView, isVisitable, popComponentFromEL, processEvent, pushComponentToEL, setInView, subscribeToEvent, unsubscribeFromEvent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.faces.component.behavior.ClientBehaviorHolder |
---|
getClientBehaviors, getDefaultEventName |
Field Detail |
---|
public static final String COMPONENT_FAMILY
public static final String COMPONENT_TYPE
public static final String DEFAULT_RENDERER_TYPE
Constructor Detail |
---|
public HtmlDataTable()
Method Detail |
---|
public String getFamily()
getFamily
in class javax.faces.component.html.HtmlDataTable
public Collection<String> getEventNames()
getEventNames
in interface javax.faces.component.behavior.ClientBehaviorHolder
getEventNames
in class javax.faces.component.html.HtmlDataTable
public void addClientBehavior(String eventName, javax.faces.component.behavior.ClientBehavior behavior)
addClientBehavior
in interface javax.faces.component.behavior.ClientBehaviorHolder
addClientBehavior
in class javax.faces.component.html.HtmlDataTable
public String getSortProperty()
AbstractHtmlDataTable
The datamodel should contain objects that have this property; reflection will be used to sort the datamodel on that property using the default comparator for that type.
This value is part of the component state. However it is not directly settable by users; instead it is set by other components such as a CommandSortHeader.
getSortProperty
in class AbstractHtmlDataTable
public void setSortProperty(String sortProperty)
setSortProperty
in class AbstractHtmlDataTable
public boolean isSortable()
AbstractHtmlDataTable
isSortable
in class AbstractHtmlDataTable
public void setSortable(boolean sortable)
public boolean isEmbedded()
AbstractHtmlDataTable
isEmbedded
in class AbstractHtmlDataTable
public void setEmbedded(boolean embedded)
public boolean isDetailStampExpandedDefault()
AbstractHtmlDataTable
isDetailStampExpandedDefault
in interface DetailTogglerModel
isDetailStampExpandedDefault
in class AbstractHtmlDataTable
public void setDetailStampExpandedDefault(boolean detailStampExpandedDefault)
setDetailStampExpandedDefault
in class AbstractHtmlDataTable
public String getDetailStampLocation()
AbstractHtmlDataTable
getDetailStampLocation
in class AbstractHtmlDataTable
public void setDetailStampLocation(String detailStampLocation)
public String getRowOnMouseOver()
AbstractHtmlDataTable
getRowOnMouseOver
in class AbstractHtmlDataTable
public void setRowOnMouseOver(String rowOnMouseOver)
public String getRowOnMouseOut()
AbstractHtmlDataTable
getRowOnMouseOut
in class AbstractHtmlDataTable
public void setRowOnMouseOut(String rowOnMouseOut)
public String getRowOnClick()
AbstractHtmlDataTable
getRowOnClick
in class AbstractHtmlDataTable
public void setRowOnClick(String rowOnClick)
public String getRowOnDblClick()
AbstractHtmlDataTable
getRowOnDblClick
in class AbstractHtmlDataTable
public void setRowOnDblClick(String rowOnDblClick)
public String getRowOnKeyDown()
AbstractHtmlDataTable
getRowOnKeyDown
in class AbstractHtmlDataTable
public void setRowOnKeyDown(String rowOnKeyDown)
public String getRowOnKeyPress()
AbstractHtmlDataTable
getRowOnKeyPress
in class AbstractHtmlDataTable
public void setRowOnKeyPress(String rowOnKeyPress)
public String getRowOnKeyUp()
AbstractHtmlDataTable
getRowOnKeyUp
in class AbstractHtmlDataTable
public void setRowOnKeyUp(String rowOnKeyUp)
public String getRowStyleClass()
AbstractHtmlDataTable
getRowStyleClass
in class AbstractHtmlDataTable
public void setRowStyleClass(String rowStyleClass)
public String getRowStyle()
AbstractHtmlDataTable
getRowStyle
in class AbstractHtmlDataTable
public void setRowStyle(String rowStyle)
public String getRowOnMouseDown()
AbstractHtmlDataTable
getRowOnMouseDown
in class AbstractHtmlDataTable
public void setRowOnMouseDown(String rowOnMouseDown)
public String getRowOnMouseMove()
AbstractHtmlDataTable
getRowOnMouseMove
in class AbstractHtmlDataTable
public void setRowOnMouseMove(String rowOnMouseMove)
public String getRowOnMouseUp()
AbstractHtmlDataTable
getRowOnMouseUp
in class AbstractHtmlDataTable
public void setRowOnMouseUp(String rowOnMouseUp)
public String getRowGroupStyle()
AbstractHtmlDataTable
getRowGroupStyle
in class AbstractHtmlDataTable
public void setRowGroupStyle(String rowGroupStyle)
public String getRowGroupStyleClass()
AbstractHtmlDataTable
getRowGroupStyleClass
in class AbstractHtmlDataTable
public void setRowGroupStyleClass(String rowGroupStyleClass)
public String getBodyStyle()
AbstractHtmlDataTable
getBodyStyle
in class AbstractHtmlDataTable
public void setBodyStyle(String bodyStyle)
public String getBodyStyleClass()
AbstractHtmlDataTable
getBodyStyleClass
in class AbstractHtmlDataTable
public void setBodyStyleClass(String bodyStyleClass)
public int getNewspaperColumns()
AbstractHtmlDataTable
getNewspaperColumns
in interface NewspaperTable
getNewspaperColumns
in class AbstractHtmlDataTable
public void setNewspaperColumns(int newspaperColumns)
public String getNewspaperOrientation()
AbstractHtmlDataTable
getNewspaperOrientation
in interface NewspaperTable
getNewspaperOrientation
in class AbstractHtmlDataTable
public void setNewspaperOrientation(String newspaperOrientation)
public boolean isPreserveDataModel()
AbstractHtmlDataTable
isPreserveDataModel
in class AbstractHtmlDataTable
public void setPreserveDataModel(boolean preserveDataModel)
protected boolean isSetPreserveSort()
isSetPreserveSort
in class AbstractHtmlDataTable
public boolean isPreserveSort()
AbstractHtmlDataTable
isPreserveSort
in class AbstractHtmlDataTable
public void setPreserveSort(boolean preserveSort)
public boolean isRenderedIfEmpty()
AbstractHtmlDataTable
isRenderedIfEmpty
in class AbstractHtmlDataTable
public void setRenderedIfEmpty(boolean renderedIfEmpty)
public String getRowIndexVar()
AbstractHtmlDataTable
getRowIndexVar
in class AbstractHtmlDataTable
public void setRowIndexVar(String rowIndexVar)
public String getRowCountVar()
AbstractHtmlDataTable
getRowCountVar
in class AbstractHtmlDataTable
public void setRowCountVar(String rowCountVar)
public String getPreviousRowDataVar()
AbstractHtmlDataTable
getPreviousRowDataVar
in class AbstractHtmlDataTable
public void setPreviousRowDataVar(String previousRowDataVar)
public String getSortedColumnVar()
AbstractHtmlDataTable
getSortedColumnVar
in class AbstractHtmlDataTable
public void setSortedColumnVar(String sortedColumnVar)
public String getAlign()
AbstractHtmlDataTable
getAlign
in class AbstractHtmlDataTable
public void setAlign(String align)
public String getRowId()
AbstractHtmlDataTable
getRowId
in class AbstractHtmlDataTable
public void setRowId(String rowId)
public String getDatafld()
AbstractHtmlDataTable
getDatafld
in class AbstractHtmlDataTable
public void setDatafld(String datafld)
public String getDatasrc()
AbstractHtmlDataTable
getDatasrc
in class AbstractHtmlDataTable
public void setDatasrc(String datasrc)
public String getDataformatas()
AbstractHtmlDataTable
getDataformatas
in class AbstractHtmlDataTable
public void setDataformatas(String dataformatas)
public String getValueType()
AbstractHtmlDataTable
getValueType
in class AbstractHtmlDataTable
public void setValueType(String valueType)
public boolean isAjaxRowRender()
AbstractHtmlDataTable
isAjaxRowRender
in class AbstractHtmlDataTable
public void setAjaxRowRender(boolean ajaxRowRender)
public boolean isAjaxBodyRender()
AbstractHtmlDataTable
isAjaxBodyRender
in class AbstractHtmlDataTable
public void setAjaxBodyRender(boolean ajaxBodyRender)
public String getEnabledOnUserRole()
UserRoleAware
public void setEnabledOnUserRole(String enabledOnUserRole)
public String getVisibleOnUserRole()
UserRoleAware
public void setVisibleOnUserRole(String visibleOnUserRole)
public String getStyle()
getStyle
in class javax.faces.component.html.HtmlDataTable
public void setStyle(String style)
setStyle
in class javax.faces.component.html.HtmlDataTable
public String getStyleClass()
getStyleClass
in class javax.faces.component.html.HtmlDataTable
public void setStyleClass(String styleClass)
setStyleClass
in class javax.faces.component.html.HtmlDataTable
public String getOnclick()
getOnclick
in class javax.faces.component.html.HtmlDataTable
public void setOnclick(String onclick)
setOnclick
in class javax.faces.component.html.HtmlDataTable
public String getOndblclick()
getOndblclick
in class javax.faces.component.html.HtmlDataTable
public void setOndblclick(String ondblclick)
setOndblclick
in class javax.faces.component.html.HtmlDataTable
public String getOnkeydown()
getOnkeydown
in class javax.faces.component.html.HtmlDataTable
public void setOnkeydown(String onkeydown)
setOnkeydown
in class javax.faces.component.html.HtmlDataTable
public String getOnkeypress()
getOnkeypress
in class javax.faces.component.html.HtmlDataTable
public void setOnkeypress(String onkeypress)
setOnkeypress
in class javax.faces.component.html.HtmlDataTable
public String getOnkeyup()
getOnkeyup
in class javax.faces.component.html.HtmlDataTable
public void setOnkeyup(String onkeyup)
setOnkeyup
in class javax.faces.component.html.HtmlDataTable
public String getOnmousedown()
getOnmousedown
in class javax.faces.component.html.HtmlDataTable
public void setOnmousedown(String onmousedown)
setOnmousedown
in class javax.faces.component.html.HtmlDataTable
public String getOnmousemove()
getOnmousemove
in class javax.faces.component.html.HtmlDataTable
public void setOnmousemove(String onmousemove)
setOnmousemove
in class javax.faces.component.html.HtmlDataTable
public String getOnmouseout()
getOnmouseout
in class javax.faces.component.html.HtmlDataTable
public void setOnmouseout(String onmouseout)
setOnmouseout
in class javax.faces.component.html.HtmlDataTable
public String getOnmouseover()
getOnmouseover
in class javax.faces.component.html.HtmlDataTable
public void setOnmouseover(String onmouseover)
setOnmouseover
in class javax.faces.component.html.HtmlDataTable
public String getOnmouseup()
getOnmouseup
in class javax.faces.component.html.HtmlDataTable
public void setOnmouseup(String onmouseup)
setOnmouseup
in class javax.faces.component.html.HtmlDataTable
public String getDir()
getDir
in class javax.faces.component.html.HtmlDataTable
public void setDir(String dir)
setDir
in class javax.faces.component.html.HtmlDataTable
public String getLang()
getLang
in class javax.faces.component.html.HtmlDataTable
public void setLang(String lang)
setLang
in class javax.faces.component.html.HtmlDataTable
public String getTitle()
getTitle
in class javax.faces.component.html.HtmlDataTable
public void setTitle(String title)
setTitle
in class javax.faces.component.html.HtmlDataTable
public void setValueBinding(String name, javax.faces.el.ValueBinding binding)
setValueBinding
in class HtmlDataTableHack
public void setValueExpression(String name, javax.el.ValueExpression expression)
setValueExpression
in class HtmlDataTableHack
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |