org.apache.empire.jsf2.pageelements
Class ListPageElement<T>

java.lang.Object
  extended by org.apache.empire.jsf2.pages.PageElement
      extended by org.apache.empire.jsf2.pageelements.ListPageElement<T>
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
BeanListPageElement, StaticListPageElement

public abstract class ListPageElement<T>
extends PageElement

See Also:
Serialized Form

Nested Class Summary
static class ListPageElement.ListTableInfo
           
static class ListPageElement.SelectableItem
           
static class ListPageElement.SelectionSet
           
 
Field Summary
protected  Class<T> beanClass
           
protected  List<T> items
           
protected  ListPageElement.SelectionSet selectedItems
           
 
Constructor Summary
ListPageElement(Page page, Class<T> beanClass, String propertyName)
           
 
Method Summary
protected  void assignSelectionMap(List<?> items)
           
 void clearItems()
           
 void clearSelection()
          Selection
 int getItemCount()
           
 List<T> getItems()
           
 int getSelectedItemCount()
           
 Set<Object[]> getSelectedItems()
           
abstract  ListPageElement.ListTableInfo getTableInfo()
          session scoped properties
 boolean isHasSelection()
           
 boolean isInvertSelection()
           
 boolean isValid()
           
 void setInvertSelection(boolean invertSelection)
           
 
Methods inherited from class org.apache.empire.jsf2.pages.PageElement
getConnection, getConnection, getPage, getPropertyName, getSessionObject, onInitPage, onRefreshPage, removeSessionObject, setSessionObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

beanClass

protected Class<T> beanClass

items

protected List<T> items

selectedItems

protected ListPageElement.SelectionSet selectedItems
Constructor Detail

ListPageElement

public ListPageElement(Page page,
                       Class<T> beanClass,
                       String propertyName)
Method Detail

getTableInfo

public abstract ListPageElement.ListTableInfo getTableInfo()
session scoped properties


getItems

public List<T> getItems()

isValid

public final boolean isValid()

getItemCount

public int getItemCount()

clearItems

public void clearItems()

clearSelection

public void clearSelection()
Selection


isHasSelection

public boolean isHasSelection()

getSelectedItemCount

public int getSelectedItemCount()

getSelectedItems

public Set<Object[]> getSelectedItems()

isInvertSelection

public boolean isInvertSelection()

setInvertSelection

public void setInvertSelection(boolean invertSelection)

assignSelectionMap

protected void assignSelectionMap(List<?> items)


Copyright © 2008-2012 Apache Software Foundation. All Rights Reserved.