org.openfaces.component.table
Class AbstractTable
java.lang.Object
UIData
org.openfaces.component.OUIData
org.openfaces.component.table.AbstractTable
- All Implemented Interfaces:
- FilterableComponent, OUIComponent, TableStyles
- Direct Known Subclasses:
- DataTable, TreeTable
public abstract class AbstractTable
- extends OUIData
- implements TableStyles, FilterableComponent
| Methods inherited from class org.openfaces.component.OUIData |
broadcast, encodeBegin, encodeEnd, getFamily, getFirst, getFooter, getHeader, getOnblur, getOnclick, getOncontextmenu, getOndblclick, getOnfocus, getOnkeydown, getOnkeypress, getOnkeyup, getOnmousedown, getOnmousemove, getOnmouseout, getOnmouseover, getOnmouseup, getRolloverClass, getRolloverStyle, getRowCount, getRowData, getRowIndex, getRows, getStyle, getStyleClass, getUiDataValue, getVar, isRowAvailable, isRowAvailableAfterRestoring, queueEvent, restoreDescendantComponentStates, saveDescendantComponentStates, setFirst, setFooter, setHeader, setOnblur, setOnclick, setOncontextmenu, setOndblclick, setOnfocus, setOnkeydown, setOnkeypress, setOnkeyup, setOnmousedown, setOnmousemove, setOnmouseout, setOnmouseover, setOnmouseup, setRolloverClass, setRolloverStyle, setRowIndex, setRows, setStyle, setStyleClass, setUiDataValue, setValueExpression, setVar |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractTable
public AbstractTable()
processSaveState
public java.lang.Object processSaveState(FacesContext context)
saveState
public java.lang.Object saveState(FacesContext context)
- Overrides:
saveState in class OUIData
restoreState
public void restoreState(FacesContext context,
java.lang.Object stateObj)
- Overrides:
restoreState in class OUIData
invokeBeforeProcessDecodes
public void invokeBeforeProcessDecodes(FacesContext context)
processRestoreState
public void processRestoreState(FacesContext context,
java.lang.Object state)
getValue
public java.lang.Object getValue()
setValue
public void setValue(java.lang.Object value)
getHeaderSectionStyle
public java.lang.String getHeaderSectionStyle()
- Specified by:
getHeaderSectionStyle in interface TableStyles
setHeaderSectionStyle
public void setHeaderSectionStyle(java.lang.String headerSectionStyle)
getHeaderSectionClass
public java.lang.String getHeaderSectionClass()
- Specified by:
getHeaderSectionClass in interface TableStyles
setHeaderSectionClass
public void setHeaderSectionClass(java.lang.String headerSectionClass)
getBodySectionStyle
public java.lang.String getBodySectionStyle()
- Specified by:
getBodySectionStyle in interface TableStyles
setBodySectionStyle
public void setBodySectionStyle(java.lang.String bodySectionStyle)
getBodySectionClass
public java.lang.String getBodySectionClass()
- Specified by:
getBodySectionClass in interface TableStyles
setBodySectionClass
public void setBodySectionClass(java.lang.String bodySectionClass)
getFooterSectionStyle
public java.lang.String getFooterSectionStyle()
- Specified by:
getFooterSectionStyle in interface TableStyles
setFooterSectionStyle
public void setFooterSectionStyle(java.lang.String footerSectionStyle)
getFooterSectionClass
public java.lang.String getFooterSectionClass()
- Specified by:
getFooterSectionClass in interface TableStyles
setFooterSectionClass
public void setFooterSectionClass(java.lang.String footerSectionClass)
getRenderedColumns
public java.util.List<BaseColumn> getRenderedColumns()
- Specified by:
getRenderedColumns in interface TableStyles
getAllColumns
public java.util.List<BaseColumn> getAllColumns()
getCellspacing
public java.lang.String getCellspacing()
setCellspacing
public void setCellspacing(java.lang.String cellspacing)
getCellpadding
public java.lang.String getCellpadding()
setCellpadding
public void setCellpadding(java.lang.String cellpadding)
getBorder
public int getBorder()
setBorder
public void setBorder(int border)
getColumnsOrder
public java.lang.Iterable<java.lang.String> getColumnsOrder()
setColumnsOrder
public void setColumnsOrder(java.lang.Iterable<java.lang.String> columnsOrder)
getSortedAscendingImageUrl
public java.lang.String getSortedAscendingImageUrl()
setSortedAscendingImageUrl
public void setSortedAscendingImageUrl(java.lang.String sortedAscendingImageUrl)
getSortedDescendingImageUrl
public java.lang.String getSortedDescendingImageUrl()
setSortedDescendingImageUrl
public void setSortedDescendingImageUrl(java.lang.String sortedDescendingImageUrl)
getAlign
public java.lang.String getAlign()
setAlign
public void setAlign(java.lang.String align)
getBgcolor
public java.lang.String getBgcolor()
setBgcolor
public void setBgcolor(java.lang.String bgcolor)
getDir
public java.lang.String getDir()
setDir
public void setDir(java.lang.String dir)
getRules
public java.lang.String getRules()
setRules
public void setRules(java.lang.String rules)
getWidth
public java.lang.String getWidth()
setWidth
public void setWidth(java.lang.String width)
getTabindex
public java.lang.String getTabindex()
setTabindex
public void setTabindex(java.lang.String tabindex)
getHorizontalGridLines
public java.lang.String getHorizontalGridLines()
- Specified by:
getHorizontalGridLines in interface TableStyles
setHorizontalGridLines
public void setHorizontalGridLines(java.lang.String horizontalGridLines)
- Specified by:
setHorizontalGridLines in interface TableStyles
getVerticalGridLines
public java.lang.String getVerticalGridLines()
- Specified by:
getVerticalGridLines in interface TableStyles
setVerticalGridLines
public void setVerticalGridLines(java.lang.String verticalGridLines)
- Specified by:
setVerticalGridLines in interface TableStyles
getCommonHeaderSeparator
public java.lang.String getCommonHeaderSeparator()
- Specified by:
getCommonHeaderSeparator in interface TableStyles
setCommonHeaderSeparator
public void setCommonHeaderSeparator(java.lang.String commonHeaderSeparator)
- Specified by:
setCommonHeaderSeparator in interface TableStyles
getCommonFooterSeparator
public java.lang.String getCommonFooterSeparator()
- Specified by:
getCommonFooterSeparator in interface TableStyles
setCommonFooterSeparator
public void setCommonFooterSeparator(java.lang.String commonFooterSeparator)
- Specified by:
setCommonFooterSeparator in interface TableStyles
getHeaderHorizSeparator
public java.lang.String getHeaderHorizSeparator()
- Specified by:
getHeaderHorizSeparator in interface TableStyles
setHeaderHorizSeparator
public void setHeaderHorizSeparator(java.lang.String headerHorizSeparator)
- Specified by:
setHeaderHorizSeparator in interface TableStyles
getHeaderVertSeparator
public java.lang.String getHeaderVertSeparator()
- Specified by:
getHeaderVertSeparator in interface TableStyles
setHeaderVertSeparator
public void setHeaderVertSeparator(java.lang.String headerVertSeparator)
- Specified by:
setHeaderVertSeparator in interface TableStyles
getMultiHeaderSeparator
public java.lang.String getMultiHeaderSeparator()
- Specified by:
getMultiHeaderSeparator in interface TableStyles
setMultiHeaderSeparator
public void setMultiHeaderSeparator(java.lang.String multiHeaderSeparator)
- Specified by:
setMultiHeaderSeparator in interface TableStyles
getMultiFooterSeparator
public java.lang.String getMultiFooterSeparator()
- Specified by:
getMultiFooterSeparator in interface TableStyles
setMultiFooterSeparator
public void setMultiFooterSeparator(java.lang.String multiFooterSeparator)
- Specified by:
setMultiFooterSeparator in interface TableStyles
getFooterHorizSeparator
public java.lang.String getFooterHorizSeparator()
- Specified by:
getFooterHorizSeparator in interface TableStyles
setFooterHorizSeparator
public void setFooterHorizSeparator(java.lang.String footerHorizSeparator)
- Specified by:
setFooterHorizSeparator in interface TableStyles
getFooterVertSeparator
public java.lang.String getFooterVertSeparator()
- Specified by:
getFooterVertSeparator in interface TableStyles
setFooterVertSeparator
public void setFooterVertSeparator(java.lang.String footerVertSeparator)
- Specified by:
setFooterVertSeparator in interface TableStyles
getBodyRowStyle
public java.lang.String getBodyRowStyle()
- Specified by:
getBodyRowStyle in interface TableStyles
setBodyRowStyle
public void setBodyRowStyle(java.lang.String bodyRowStyle)
- Specified by:
setBodyRowStyle in interface TableStyles
getBodyRowClass
public java.lang.String getBodyRowClass()
- Specified by:
getBodyRowClass in interface TableStyles
setBodyRowClass
public void setBodyRowClass(java.lang.String bodyRowClass)
- Specified by:
setBodyRowClass in interface TableStyles
getBodyOddRowStyle
public java.lang.String getBodyOddRowStyle()
- Specified by:
getBodyOddRowStyle in interface TableStyles
setBodyOddRowStyle
public void setBodyOddRowStyle(java.lang.String bodyOddRowStyle)
- Specified by:
setBodyOddRowStyle in interface TableStyles
getBodyOddRowClass
public java.lang.String getBodyOddRowClass()
- Specified by:
getBodyOddRowClass in interface TableStyles
setBodyOddRowClass
public void setBodyOddRowClass(java.lang.String bodyOddRowClass)
- Specified by:
setBodyOddRowClass in interface TableStyles
getHeaderRowStyle
public java.lang.String getHeaderRowStyle()
- Specified by:
getHeaderRowStyle in interface TableStyles
setHeaderRowStyle
public void setHeaderRowStyle(java.lang.String headerRowStyle)
- Specified by:
setHeaderRowStyle in interface TableStyles
getHeaderRowClass
public java.lang.String getHeaderRowClass()
- Specified by:
getHeaderRowClass in interface TableStyles
setHeaderRowClass
public void setHeaderRowClass(java.lang.String headerRowClass)
- Specified by:
setHeaderRowClass in interface TableStyles
getCommonHeaderRowStyle
public java.lang.String getCommonHeaderRowStyle()
setCommonHeaderRowStyle
public void setCommonHeaderRowStyle(java.lang.String commonHeaderRowStyle)
getCommonHeaderRowClass
public java.lang.String getCommonHeaderRowClass()
setCommonHeaderRowClass
public void setCommonHeaderRowClass(java.lang.String commonHeaderRowClass)
getFooterRowStyle
public java.lang.String getFooterRowStyle()
- Specified by:
getFooterRowStyle in interface TableStyles
setFooterRowStyle
public void setFooterRowStyle(java.lang.String footerRowStyle)
- Specified by:
setFooterRowStyle in interface TableStyles
getFooterRowClass
public java.lang.String getFooterRowClass()
- Specified by:
getFooterRowClass in interface TableStyles
setFooterRowClass
public void setFooterRowClass(java.lang.String footerRowClass)
- Specified by:
setFooterRowClass in interface TableStyles
getCommonFooterRowStyle
public java.lang.String getCommonFooterRowStyle()
setCommonFooterRowStyle
public void setCommonFooterRowStyle(java.lang.String commonFooterRowStyle)
getCommonFooterRowClass
public java.lang.String getCommonFooterRowClass()
setCommonFooterRowClass
public void setCommonFooterRowClass(java.lang.String commonFooterRowClass)
getApplyDefaultStyle
public boolean getApplyDefaultStyle()
- Specified by:
getApplyDefaultStyle in interface TableStyles
setApplyDefaultStyle
public void setApplyDefaultStyle(boolean applyDefaultStyle)
getUseAjax
public boolean getUseAjax()
setUseAjax
public void setUseAjax(boolean useAjax)
getSortedColumnStyle
public java.lang.String getSortedColumnStyle()
setSortedColumnStyle
public void setSortedColumnStyle(java.lang.String style)
getSortedColumnClass
public java.lang.String getSortedColumnClass()
setSortedColumnClass
public void setSortedColumnClass(java.lang.String styleClass)
getSortedColumnHeaderStyle
public java.lang.String getSortedColumnHeaderStyle()
setSortedColumnHeaderStyle
public void setSortedColumnHeaderStyle(java.lang.String style)
getSortedColumnHeaderClass
public java.lang.String getSortedColumnHeaderClass()
setSortedColumnHeaderClass
public void setSortedColumnHeaderClass(java.lang.String styleClass)
getSortedColumnBodyStyle
public java.lang.String getSortedColumnBodyStyle()
setSortedColumnBodyStyle
public void setSortedColumnBodyStyle(java.lang.String style)
getSortedColumnBodyClass
public java.lang.String getSortedColumnBodyClass()
setSortedColumnBodyClass
public void setSortedColumnBodyClass(java.lang.String styleClass)
getSortedColumnFooterStyle
public java.lang.String getSortedColumnFooterStyle()
setSortedColumnFooterStyle
public void setSortedColumnFooterStyle(java.lang.String style)
getSortedColumnFooterClass
public java.lang.String getSortedColumnFooterClass()
setSortedColumnFooterClass
public void setSortedColumnFooterClass(java.lang.String styleClass)
getSortableHeaderStyle
public java.lang.String getSortableHeaderStyle()
setSortableHeaderStyle
public void setSortableHeaderStyle(java.lang.String sortableHeaderStyle)
getSortableHeaderClass
public java.lang.String getSortableHeaderClass()
setSortableHeaderClass
public void setSortableHeaderClass(java.lang.String sortableHeaderClass)
getSortableHeaderRolloverStyle
public java.lang.String getSortableHeaderRolloverStyle()
setSortableHeaderRolloverStyle
public void setSortableHeaderRolloverStyle(java.lang.String sortableHeaderRolloverStyle)
getSortableHeaderRolloverClass
public java.lang.String getSortableHeaderRolloverClass()
setSortableHeaderRolloverClass
public void setSortableHeaderRolloverClass(java.lang.String sortableHeaderRolloverClass)
getSelection
public AbstractTableSelection getSelection()
getColumnResizing
public ColumnResizing getColumnResizing()
getColumnReordering
public ColumnReordering getColumnReordering()
getScrolling
public Scrolling getScrolling()
- Specified by:
getScrolling in interface TableStyles
setSelection
public void setSelection(AbstractTableSelection newSelection)
processDecodes
public void processDecodes(FacesContext context)
- Overrides:
processDecodes in class OUIData
processValidators
public void processValidators(FacesContext context)
- Overrides:
processValidators in class OUIData
processUpdates
public void processUpdates(FacesContext context)
- Overrides:
processUpdates in class OUIData
invokeBeforeRenderResponse
public void invokeBeforeRenderResponse(FacesContext context)
setSortColumnId
public void setSortColumnId(java.lang.String sortColumnId)
getSortColumnIndex
public int getSortColumnIndex()
setSortColumnIndex
public void setSortColumnIndex(int colIndex)
getSubHeaderRowStyle
public java.lang.String getSubHeaderRowStyle()
setSubHeaderRowStyle
public void setSubHeaderRowStyle(java.lang.String subHeaderRowStyle)
getSubHeaderRowClass
public java.lang.String getSubHeaderRowClass()
setSubHeaderRowClass
public void setSubHeaderRowClass(java.lang.String subHeaderRowClass)
getSubHeaderRowSeparator
public java.lang.String getSubHeaderRowSeparator()
setSubHeaderRowSeparator
public void setSubHeaderRowSeparator(java.lang.String subHeaderRowSeparator)
getAllRecordsFilterText
public java.lang.String getAllRecordsFilterText()
- Specified by:
getAllRecordsFilterText in interface FilterableComponent
- Returns:
- the default text for the "all records" filters in this component. This text
can also be customized on a per-filter basis for individual customization.
setAllRecordsFilterText
public void setAllRecordsFilterText(java.lang.String allRecordsFilterText)
- Specified by:
setAllRecordsFilterText in interface FilterableComponent
getEmptyRecordsFilterText
public java.lang.String getEmptyRecordsFilterText()
- Specified by:
getEmptyRecordsFilterText in interface FilterableComponent
- Returns:
- the default text for the "empty records" filters in this component. This text
can also be customized on a per-filter basis for individual customization.
setEmptyRecordsFilterText
public void setEmptyRecordsFilterText(java.lang.String emptyRecordsFilterText)
- Specified by:
setEmptyRecordsFilterText in interface FilterableComponent
getNonEmptyRecordsFilterText
public java.lang.String getNonEmptyRecordsFilterText()
- Specified by:
getNonEmptyRecordsFilterText in interface FilterableComponent
- Returns:
- the default text for the "non-empty records" filters in this component. This text
can also be customized on a per-filter basis for individual customization.
setNonEmptyRecordsFilterText
public void setNonEmptyRecordsFilterText(java.lang.String nonEmptyRecordsFilterText)
- Specified by:
setNonEmptyRecordsFilterText in interface FilterableComponent
getSortColumnId
public java.lang.String getSortColumnId()
isSortAscending
public boolean isSortAscending()
setSortAscending
public void setSortAscending(boolean value)
toggleSorting
public void toggleSorting(int columnIndex)
toggleSorting
public void toggleSorting(int columnIndex,
boolean ascending)
setParent
public void setParent(UIComponent parent)
getFilters
public java.util.List<Filter> getFilters()
- Specified by:
getFilters in interface FilterableComponent
- Returns:
- a modifiable set of filters attached to this component.
getFilteredValueByData
public java.lang.Object getFilteredValueByData(FacesContext context,
java.lang.Object data,
java.lang.Object expression)
- Specified by:
getFilteredValueByData in interface FilterableComponent
filterChanged
public void filterChanged(Filter filter)
- Specified by:
filterChanged in interface FilterableComponent
getAutoFilterDelay
public int getAutoFilterDelay()
- Specified by:
getAutoFilterDelay in interface FilterableComponent
setAutoFilterDelay
public void setAutoFilterDelay(int autoFilterDelay)
- Specified by:
setAutoFilterDelay in interface FilterableComponent
getRolloverRowStyle
public java.lang.String getRolloverRowStyle()
setRolloverRowStyle
public void setRolloverRowStyle(java.lang.String rolloverRowStyle)
getFocusedStyle
public java.lang.String getFocusedStyle()
setFocusedStyle
public void setFocusedStyle(java.lang.String focusedStyle)
getFocusedClass
public java.lang.String getFocusedClass()
setFocusedClass
public void setFocusedClass(java.lang.String focusedClass)
getRolloverRowClass
public java.lang.String getRolloverRowClass()
setRolloverRowClass
public void setRolloverRowClass(java.lang.String rolloverRowClass)
getNoDataMessage
public UIComponent getNoDataMessage()
getNoFilterDataMessage
public UIComponent getNoFilterDataMessage()
getNoDataRowStyle
public java.lang.String getNoDataRowStyle()
setNoDataRowStyle
public void setNoDataRowStyle(java.lang.String noDataRowStyle)
getNoDataRowClass
public java.lang.String getNoDataRowClass()
setNoDataRowClass
public void setNoDataRowClass(java.lang.String noDataRowClass)
getNoDataMessageAllowed
public boolean getNoDataMessageAllowed()
setNoDataMessageAllowed
public void setNoDataMessageAllowed(boolean noDataMessageAllowed)
isDataSourceEmpty
public abstract boolean isDataSourceEmpty()
getColumnIdVar
public java.lang.String getColumnIdVar()
setColumnIdVar
public void setColumnIdVar(java.lang.String columnIdVar)
getColumnIndexVar
public java.lang.String getColumnIndexVar()
setColumnIndexVar
public void setColumnIndexVar(java.lang.String columnIndexVar)
getRowIndexByClientSuffix
public int getRowIndexByClientSuffix(java.lang.String id)
getClientId
public java.lang.String getClientId(FacesContext context)
setId
public void setId(java.lang.String id)
getTotalRowCount
public int getTotalRowCount()
Copyright © 1998-2009 TeamDev Ltd. All Rights Reserved.