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

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

public class StaticListPageElement<T>
extends ListPageElement<T>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.empire.jsf2.pageelements.ListPageElement
ListPageElement.ListTableInfo, ListPageElement.SelectableItem, ListPageElement.SelectionSet
 
Field Summary
 
Fields inherited from class org.apache.empire.jsf2.pageelements.ListPageElement
beanClass, items, selectedItems
 
Constructor Summary
StaticListPageElement(Page page, Class<T> beanClass, String propertyName)
           
 
Method Summary
 boolean add(T item)
           
 boolean add(T item, int index)
           
 boolean contains(T item)
           
 ListPageElement.ListTableInfo getTableInfo()
          session scoped properties
 boolean move(T item, int index)
           
protected  void onInitPage()
           
 boolean remove(T item)
           
 void setItems(List<T> items)
           
 int size()
           
 void update()
           
 
Methods inherited from class org.apache.empire.jsf2.pageelements.ListPageElement
assignSelectionMap, clearItems, clearSelection, getItemCount, getItems, getSelectedItemCount, getSelectedItems, isBlank, isEmpty, isHasSelection, isInvertSelection, isNotEmpty, isSingleSelection, isValid, setInvertSelection, setSelection, setSelection, setSingleSelection
 
Methods inherited from class org.apache.empire.jsf2.pages.PageElement
getConnection, getConnection, getPage, getPropertyName, getSessionObject, onRefreshPage, removeSessionObject, setSessionObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticListPageElement

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

onInitPage

protected void onInitPage()
Overrides:
onInitPage in class PageElement

getTableInfo

public ListPageElement.ListTableInfo getTableInfo()
Description copied from class: ListPageElement
session scoped properties

Specified by:
getTableInfo in class ListPageElement<T>

setItems

public void setItems(List<T> items)

size

public int size()

contains

public boolean contains(T item)

add

public boolean add(T item)

add

public boolean add(T item,
                   int index)

move

public boolean move(T item,
                    int index)

remove

public boolean remove(T item)

update

public void update()


Copyright © 2008–2014 Apache Software Foundation. All rights reserved.