|
||||||||||
| 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 |
| 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 | |
|---|---|
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 |
getEnabledOnUserRole()
If user is in given role, this component will be rendered normally. |
Collection<String> |
getEventNames()
|
String |
getFamily()
|
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 |
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 |
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 |
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. |
boolean |
isSortable()
Define if the table is sortable or not |
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 |
setEmbedded(boolean embedded)
|
void |
setEnabledOnUserRole(String enabledOnUserRole)
|
void |
setNewspaperColumns(int newspaperColumns)
|
void |
setNewspaperOrientation(String newspaperOrientation)
|
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 |
setValueType(String valueType)
|
void |
setVisibleOnUserRole(String visibleOnUserRole)
|
| Methods inherited from class javax.faces.component.html.HtmlDataTable |
|---|
getBgcolor, getBodyrows, getBorder, getCaptionClass, getCaptionStyle, 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, setBodyrows, 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, createUniqueId, getFooter, getHeader, getValue, getVar, queueEvent, setFooter, setHeader, setVar |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addClientBehavior, addFacesListener, clearInitialState, decode, 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 |
|---|
encodeAll, 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 |
|---|
addClientBehavior, 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.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 class AbstractHtmlDataTablepublic void setDetailStampExpandedDefault(boolean detailStampExpandedDefault)
public 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)
public 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 String getEnabledOnUserRole()
UserRoleAware
public void setEnabledOnUserRole(String enabledOnUserRole)
public String getVisibleOnUserRole()
UserRoleAware
public void setVisibleOnUserRole(String visibleOnUserRole)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||