public class UIRichList extends UIComponentBase implements IDataContainer, Serializable
Modifier and Type | Field and Description |
---|---|
protected Map<String,IRichListRenderer> |
viewRenderers
map of available IRichListRenderer instances
|
SORT_CASEINSENSITIVE, SORT_CASESENSITIVE
Constructor and Description |
---|
UIRichList()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
bind()
Method called to bind the RichList component state to the data model value
|
void |
clearSort()
Clear the current sorting settings back to the defaults
|
int |
getCurrentPage()
Return the current page the list is displaying
|
String |
getCurrentSortColumn()
Return the currently sorted column if any
|
UIComponent |
getEmptyMessage()
Return the UI Component to be used as the "no items available" message
|
String |
getFamily() |
String |
getInitialSortColumn() |
int |
getPageCount()
Return the count of max available pages
|
int |
getPageSize()
Returns the current page size used for this list, or -1 for no paging.
|
boolean |
getRefreshOnBind()
Get the refreshOnBind flag.
|
Object |
getValue()
Get the value (for this component the value is an object used as the DataModel)
|
String |
getViewMode()
Get the view mode for this Rich List
|
IRichListRenderer |
getViewRenderer() |
boolean |
isCurrentSortDescending()
Returns the current sort direction.
|
boolean |
isDataAvailable()
Returns true if a row of data is available
|
boolean |
isInitialSortDescending() |
Object |
nextRow()
Returns the next row of data from the data model
|
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setCurrentPage(int index)
Set the current page to display.
|
void |
setInitialSortColumn(String initialSortColumn) |
void |
setInitialSortDescending(boolean initialSortDescending) |
void |
setPageSize(int val)
Sets the current page size used for the list.
|
void |
setRefreshOnBind(boolean refreshOnBind)
Set the refreshOnBind flag.
|
void |
setValue(Object value)
Set the value (for this component the value is an object used as the DataModel)
|
void |
setViewMode(String viewMode)
Set the current view mode for this Rich List
|
void |
sort(String column,
boolean descending,
String mode)
Sort the dataset using the specified sort parameters
|
addFacesListener, broadcast, decode, encodeBegin, encodeChildren, encodeEnd, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getRendersChildren, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding
protected final Map<String,IRichListRenderer> viewRenderers
public String getFamily()
getFamily
in class UIComponent
UIComponent.getFamily()
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
StateHolder.restoreState(javax.faces.context.FacesContext, java.lang.Object)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
StateHolder.saveState(javax.faces.context.FacesContext)
public Object getValue()
public void setValue(Object value)
value
- the valuepublic void clearSort()
public String getViewMode()
public void setViewMode(String viewMode)
viewMode
- the view mode as a Stringpublic boolean getRefreshOnBind()
public void setRefreshOnBind(boolean refreshOnBind)
refreshOnBind
- the refreshOnBindpublic UIComponent getEmptyMessage()
public String getCurrentSortColumn()
getCurrentSortColumn
in interface IDataContainer
public boolean isCurrentSortDescending()
IDataContainer
isCurrentSortDescending
in interface IDataContainer
IDataContainer.isCurrentSortDescending()
public String getInitialSortColumn()
public void setInitialSortColumn(String initialSortColumn)
initialSortColumn
- The initialSortColumn to set.public boolean isInitialSortDescending()
public void setInitialSortDescending(boolean initialSortDescending)
initialSortDescending
- The initialSortDescending to set.public int getPageSize()
getPageSize
in interface IDataContainer
public void setPageSize(int val)
val
- intpublic int getPageCount()
IDataContainer
getPageCount
in interface IDataContainer
IDataContainer.getPageCount()
public int getCurrentPage()
getCurrentPage
in interface IDataContainer
public void setCurrentPage(int index)
IDataContainer
setCurrentPage
in interface IDataContainer
index
- Zero based page index to displayIDataContainer.setCurrentPage(int)
public boolean isDataAvailable()
isDataAvailable
in interface IDataContainer
public Object nextRow()
nextRow
in interface IDataContainer
public void sort(String column, boolean descending, String mode)
sort
in interface IDataContainer
column
- Column to sortdescending
- True for descending sort, false for ascendingmode
- Sort mode to use (see IDataContainer constants)public void bind()
public IRichListRenderer getViewRenderer()
Copyright © 2005–2017 Alfresco Software. All rights reserved.