com.logicaldoc.web.document
Class TrashBean

java.lang.Object
  extended by com.logicaldoc.web.components.SortableList
      extended by com.logicaldoc.web.document.TrashBean

public class TrashBean
extends SortableList

The TrashBean class is responsible for constructing the list of delted documents which will be bound to a ice:dataTable JSF component.

Since:
5.2
Author:
Matteo Caruso - Logical Objects

Field Summary
static java.lang.String CHILD_INDENT_STYLE_CLASS
           
static java.lang.String CHILD_ROW_STYLE_CLASS
           
protected static org.apache.commons.logging.Log log
           
 
Constructor Summary
TrashBean()
           
 
Method Summary
 void dispose()
          Cleans up the resources used by this class.
 int getCount()
           
 int getDisplayedRows()
           
 java.util.List<DocumentRecord> getDocuments()
          Gets the list of Document which will be used by the ice:dataTable component.
protected  boolean isDefaultAscending(java.lang.String sortColumn)
          Determines the sort order.
 boolean isSelectedAll()
           
 void refresh()
           
 java.lang.String restore()
          Restore all selected documents
 java.lang.String selectAll()
           
 void selectRow(com.icesoft.faces.component.ext.RowSelectorEvent e)
           
 void setDisplayedRows(int displayedRows)
           
 void setSelectedAll(boolean selectedAll)
           
protected  void sort(java.lang.String column, boolean ascending)
          Sorts the list of DocumentRecord data.
 java.lang.String unselectAll()
           
 
Methods inherited from class com.logicaldoc.web.components.SortableList
getSortColumn, isAscending, setAscending, setSortColumn, sort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log

CHILD_INDENT_STYLE_CLASS

public static final java.lang.String CHILD_INDENT_STYLE_CLASS
See Also:
Constant Field Values

CHILD_ROW_STYLE_CLASS

public static final java.lang.String CHILD_ROW_STYLE_CLASS
See Also:
Constant Field Values
Constructor Detail

TrashBean

public TrashBean()
Method Detail

dispose

public void dispose()
Cleans up the resources used by this class. This method could be called when a session destroyed event is called.


getDocuments

public java.util.List<DocumentRecord> getDocuments()
Gets the list of Document which will be used by the ice:dataTable component.


selectRow

public void selectRow(com.icesoft.faces.component.ext.RowSelectorEvent e)

refresh

public void refresh()

getCount

public int getCount()

restore

public java.lang.String restore()
Restore all selected documents


selectAll

public java.lang.String selectAll()

unselectAll

public java.lang.String unselectAll()

isSelectedAll

public boolean isSelectedAll()

getDisplayedRows

public int getDisplayedRows()

setDisplayedRows

public void setDisplayedRows(int displayedRows)

isDefaultAscending

protected boolean isDefaultAscending(java.lang.String sortColumn)
Determines the sort order.

Specified by:
isDefaultAscending in class SortableList
Parameters:
sortColumn - to sort by.
Returns:
whether sort order is ascending or descending.

sort

protected void sort(java.lang.String column,
                    boolean ascending)
Sorts the list of DocumentRecord data.

Specified by:
sort in class SortableList

setSelectedAll

public void setSelectedAll(boolean selectedAll)


Copyright © 2008-2010 Logical Objects. All Rights Reserved.