|
||||||||||
| 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.HtmlDataTablepublic Collection<String> getEventNames()
getEventNames in interface javax.faces.component.behavior.ClientBehaviorHoldergetEventNames 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.ClientBehaviorHolderaddClientBehavior in class javax.faces.component.html.HtmlDataTablepublic String getSortProperty()
AbstractHtmlDataTableThe 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 AbstractHtmlDataTablepublic void setSortProperty(String sortProperty)
setSortProperty in class AbstractHtmlDataTablepublic boolean isSortable()
AbstractHtmlDataTable
isSortable in class AbstractHtmlDataTablepublic void setSortable(boolean sortable)
public boolean isEmbedded()
AbstractHtmlDataTable
isEmbedded in class AbstractHtmlDataTablepublic void setEmbedded(boolean embedded)
public boolean isDetailStampExpandedDefault()
AbstractHtmlDataTable
isDetailStampExpandedDefault in interface DetailTogglerModelisDetailStampExpandedDefault in class AbstractHtmlDataTablepublic void setDetailStampExpandedDefault(boolean detailStampExpandedDefault)
setDetailStampExpandedDefault in class AbstractHtmlDataTablepublic String getDetailStampLocation()
AbstractHtmlDataTable
getDetailStampLocation in class AbstractHtmlDataTablepublic void setDetailStampLocation(String detailStampLocation)
public String getRowOnMouseOver()
AbstractHtmlDataTable
getRowOnMouseOver in class AbstractHtmlDataTablepublic void setRowOnMouseOver(String rowOnMouseOver)
public String getRowOnMouseOut()
AbstractHtmlDataTable
getRowOnMouseOut in class AbstractHtmlDataTablepublic void setRowOnMouseOut(String rowOnMouseOut)
public String getRowOnClick()
AbstractHtmlDataTable
getRowOnClick in class AbstractHtmlDataTablepublic void setRowOnClick(String rowOnClick)
public String getRowOnDblClick()
AbstractHtmlDataTable
getRowOnDblClick in class AbstractHtmlDataTablepublic void setRowOnDblClick(String rowOnDblClick)
public String getRowOnKeyDown()
AbstractHtmlDataTable
getRowOnKeyDown in class AbstractHtmlDataTablepublic void setRowOnKeyDown(String rowOnKeyDown)
public String getRowOnKeyPress()
AbstractHtmlDataTable
getRowOnKeyPress in class AbstractHtmlDataTablepublic void setRowOnKeyPress(String rowOnKeyPress)
public String getRowOnKeyUp()
AbstractHtmlDataTable
getRowOnKeyUp in class AbstractHtmlDataTablepublic void setRowOnKeyUp(String rowOnKeyUp)
public String getRowStyleClass()
AbstractHtmlDataTable
getRowStyleClass in class AbstractHtmlDataTablepublic void setRowStyleClass(String rowStyleClass)
public String getRowStyle()
AbstractHtmlDataTable
getRowStyle in class AbstractHtmlDataTablepublic void setRowStyle(String rowStyle)
public String getRowOnMouseDown()
AbstractHtmlDataTable
getRowOnMouseDown in class AbstractHtmlDataTablepublic void setRowOnMouseDown(String rowOnMouseDown)
public String getRowOnMouseMove()
AbstractHtmlDataTable
getRowOnMouseMove in class AbstractHtmlDataTablepublic void setRowOnMouseMove(String rowOnMouseMove)
public String getRowOnMouseUp()
AbstractHtmlDataTable
getRowOnMouseUp in class AbstractHtmlDataTablepublic void setRowOnMouseUp(String rowOnMouseUp)
public String getRowGroupStyle()
AbstractHtmlDataTable
getRowGroupStyle in class AbstractHtmlDataTablepublic void setRowGroupStyle(String rowGroupStyle)
public String getRowGroupStyleClass()
AbstractHtmlDataTable
getRowGroupStyleClass in class AbstractHtmlDataTablepublic void setRowGroupStyleClass(String rowGroupStyleClass)
public String getBodyStyle()
AbstractHtmlDataTable
getBodyStyle in class AbstractHtmlDataTablepublic void setBodyStyle(String bodyStyle)
public String getBodyStyleClass()
AbstractHtmlDataTable
getBodyStyleClass in class AbstractHtmlDataTablepublic void setBodyStyleClass(String bodyStyleClass)
public int getNewspaperColumns()
AbstractHtmlDataTable
getNewspaperColumns in interface NewspaperTablegetNewspaperColumns in class AbstractHtmlDataTablepublic void setNewspaperColumns(int newspaperColumns)
public String getNewspaperOrientation()
AbstractHtmlDataTable
getNewspaperOrientation in interface NewspaperTablegetNewspaperOrientation in class AbstractHtmlDataTablepublic void setNewspaperOrientation(String newspaperOrientation)
public boolean isPreserveDataModel()
AbstractHtmlDataTable
isPreserveDataModel in class AbstractHtmlDataTablepublic void setPreserveDataModel(boolean preserveDataModel)
protected boolean isSetPreserveSort()
isSetPreserveSort in class AbstractHtmlDataTablepublic boolean isPreserveSort()
AbstractHtmlDataTable
isPreserveSort in class AbstractHtmlDataTablepublic void setPreserveSort(boolean preserveSort)
public boolean isRenderedIfEmpty()
AbstractHtmlDataTable
isRenderedIfEmpty in class AbstractHtmlDataTablepublic void setRenderedIfEmpty(boolean renderedIfEmpty)
public String getRowIndexVar()
AbstractHtmlDataTable
getRowIndexVar in class AbstractHtmlDataTablepublic void setRowIndexVar(String rowIndexVar)
public String getRowCountVar()
AbstractHtmlDataTable
getRowCountVar in class AbstractHtmlDataTablepublic void setRowCountVar(String rowCountVar)
public String getPreviousRowDataVar()
AbstractHtmlDataTable
getPreviousRowDataVar in class AbstractHtmlDataTablepublic void setPreviousRowDataVar(String previousRowDataVar)
public String getSortedColumnVar()
AbstractHtmlDataTable
getSortedColumnVar in class AbstractHtmlDataTablepublic void setSortedColumnVar(String sortedColumnVar)
public String getAlign()
AbstractHtmlDataTable
getAlign in class AbstractHtmlDataTablepublic void setAlign(String align)
public String getRowId()
AbstractHtmlDataTable
getRowId in class AbstractHtmlDataTablepublic void setRowId(String rowId)
public String getDatafld()
AbstractHtmlDataTable
getDatafld in class AbstractHtmlDataTablepublic void setDatafld(String datafld)
public String getDatasrc()
AbstractHtmlDataTable
getDatasrc in class AbstractHtmlDataTablepublic void setDatasrc(String datasrc)
public String getDataformatas()
AbstractHtmlDataTable
getDataformatas in class AbstractHtmlDataTablepublic void setDataformatas(String dataformatas)
public String getValueType()
AbstractHtmlDataTable
getValueType in class AbstractHtmlDataTablepublic void setValueType(String valueType)
public boolean isAjaxRowRender()
AbstractHtmlDataTable
isAjaxRowRender in class AbstractHtmlDataTablepublic void setAjaxRowRender(boolean ajaxRowRender)
public boolean isAjaxBodyRender()
AbstractHtmlDataTable
isAjaxBodyRender in class AbstractHtmlDataTablepublic 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.HtmlDataTablepublic void setStyle(String style)
setStyle in class javax.faces.component.html.HtmlDataTablepublic String getStyleClass()
getStyleClass in class javax.faces.component.html.HtmlDataTablepublic void setStyleClass(String styleClass)
setStyleClass in class javax.faces.component.html.HtmlDataTablepublic String getOnclick()
getOnclick in class javax.faces.component.html.HtmlDataTablepublic void setOnclick(String onclick)
setOnclick in class javax.faces.component.html.HtmlDataTablepublic String getOndblclick()
getOndblclick in class javax.faces.component.html.HtmlDataTablepublic void setOndblclick(String ondblclick)
setOndblclick in class javax.faces.component.html.HtmlDataTablepublic String getOnkeydown()
getOnkeydown in class javax.faces.component.html.HtmlDataTablepublic void setOnkeydown(String onkeydown)
setOnkeydown in class javax.faces.component.html.HtmlDataTablepublic String getOnkeypress()
getOnkeypress in class javax.faces.component.html.HtmlDataTablepublic void setOnkeypress(String onkeypress)
setOnkeypress in class javax.faces.component.html.HtmlDataTablepublic String getOnkeyup()
getOnkeyup in class javax.faces.component.html.HtmlDataTablepublic void setOnkeyup(String onkeyup)
setOnkeyup in class javax.faces.component.html.HtmlDataTablepublic String getOnmousedown()
getOnmousedown in class javax.faces.component.html.HtmlDataTablepublic void setOnmousedown(String onmousedown)
setOnmousedown in class javax.faces.component.html.HtmlDataTablepublic String getOnmousemove()
getOnmousemove in class javax.faces.component.html.HtmlDataTablepublic void setOnmousemove(String onmousemove)
setOnmousemove in class javax.faces.component.html.HtmlDataTablepublic String getOnmouseout()
getOnmouseout in class javax.faces.component.html.HtmlDataTablepublic void setOnmouseout(String onmouseout)
setOnmouseout in class javax.faces.component.html.HtmlDataTablepublic String getOnmouseover()
getOnmouseover in class javax.faces.component.html.HtmlDataTablepublic void setOnmouseover(String onmouseover)
setOnmouseover in class javax.faces.component.html.HtmlDataTablepublic String getOnmouseup()
getOnmouseup in class javax.faces.component.html.HtmlDataTablepublic void setOnmouseup(String onmouseup)
setOnmouseup in class javax.faces.component.html.HtmlDataTablepublic String getDir()
getDir in class javax.faces.component.html.HtmlDataTablepublic void setDir(String dir)
setDir in class javax.faces.component.html.HtmlDataTablepublic String getLang()
getLang in class javax.faces.component.html.HtmlDataTablepublic void setLang(String lang)
setLang in class javax.faces.component.html.HtmlDataTablepublic String getTitle()
getTitle in class javax.faces.component.html.HtmlDataTablepublic 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 | |||||||||