org.apache.myfaces.component.html.ext
Class SortableModel
java.lang.Object
   javax.faces.model.DataModel
javax.faces.model.DataModel
       org.apache.myfaces.component.html.ext.BaseSortableModel
org.apache.myfaces.component.html.ext.BaseSortableModel
           org.apache.myfaces.component.html.ext.SortableModel
org.apache.myfaces.component.html.ext.SortableModel
- public final class SortableModel 
- extends BaseSortableModel
 
 
 
 
| Constructor Summary | 
| SortableModel()No arg constructor for use as a managed-bean.
 | 
| SortableModel(Object model)Create a new SortableModel from the given instance.
 | 
 
 
 
| Methods inherited from class javax.faces.model.DataModel | 
| addDataModelListener, getDataModelListeners, removeDataModelListener | 
 
 
SortableModel
public SortableModel(Object model)
- Create a new SortableModel from the given instance.
 
- Parameters:
- model- This will be converted into a- DataModel
- See Also:
- setWrappedData(java.lang.Object)
 
SortableModel
public SortableModel()
- No arg constructor for use as a managed-bean.
 Must call setWrappedData before using this instance.
 
setWrappedData
public void setWrappedData(Object data)
- Sets the underlying data being managed by this instance.
 
- 
- Overrides:
- setWrappedDatain class- BaseSortableModel
 
- 
- Parameters:
- data- This Object will be converted into a- DataModel.
 
isSortable
public boolean isSortable(String property)
- Checks to see if the underlying collection is sortable by the given property.
 
- 
- Parameters:
- property- The name of the property to sort the underlying collection by.
- Returns:
- true, if the property implements java.lang.Comparable
 
getSortCriteria
public List getSortCriteria()
- 
 
setSortCriteria
public void setSortCriteria(List criteria)
- 
 
toString
public String toString()
- 
- Overrides:
- toStringin class- BaseSortableModel
 
- 
 
Copyright © 2012 The Apache Software Foundation. All Rights Reserved.