|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.empire.jsf2.pages.PageElement
org.apache.empire.jsf2.pageelements.ListPageElement<T>
public abstract class ListPageElement<T>
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()
returns the total item count of the entire list (not just the visible part) |
List<T> |
getItems()
|
int |
getSelectedItemCount()
|
List<T> |
getSelectedItems()
|
abstract ListPageElement.ListTableInfo |
getTableInfo()
session scoped properties |
boolean |
isBlank()
added as "isEmpty" is not accessible from EL. |
boolean |
isEmpty()
returns true if the either the item list is not valid or if it contains no items |
boolean |
isHasSelection()
|
boolean |
isInvertSelection()
|
boolean |
isNotEmpty()
returns whether the item list is valid and contains at least one item |
boolean |
isSingleSelection()
|
boolean |
isValid()
returns whether the item list has been loaded |
void |
setInvertSelection(boolean invertSelection)
|
void |
setSelection(ListPageElement.SelectableItem item)
|
void |
setSelection(ListPageElement.SelectableItem[] items)
|
void |
setSingleSelection(boolean singleSelection)
|
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 |
---|
protected Class<T> beanClass
protected List<T> items
protected ListPageElement.SelectionSet selectedItems
Constructor Detail |
---|
public ListPageElement(Page page, Class<T> beanClass, String propertyName)
Method Detail |
---|
public abstract ListPageElement.ListTableInfo getTableInfo()
public List<T> getItems()
public final boolean isValid()
public final boolean isEmpty()
public final boolean isNotEmpty()
public final boolean isBlank()
public int getItemCount()
public void clearItems()
public void clearSelection()
public boolean isHasSelection()
public int getSelectedItemCount()
public List<T> getSelectedItems()
public boolean isInvertSelection()
public void setInvertSelection(boolean invertSelection)
public boolean isSingleSelection()
public void setSingleSelection(boolean singleSelection)
public void setSelection(ListPageElement.SelectableItem item)
public void setSelection(ListPageElement.SelectableItem[] items)
protected void assignSelectionMap(List<?> items)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |