Class ListPageElement<T>
java.lang.Object
org.apache.empire.jsf2.pages.PageElement<Page>
org.apache.empire.jsf2.pageelements.ListPageElement<T>
- Direct Known Subclasses:
BeanListPageElement,StaticListPageElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThis class holds information about the list view to display.static interfaceInterface to uniquely identify a list item This will be used for selection and navigationstatic classAbstract superclass to make a list item selectablestatic classSelectionSet Contains the key of all items implementing "SelectableItem" -
Field Summary
FieldsFields inherited from class org.apache.empire.jsf2.pages.PageElement
page -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidSelectionintreturns the total item count of the entire list (not just the visible part)getItems()intabstract ListPageElement.ListTableInfofinal booleanisBlank()added as "isEmpty" is not accessible from EL.final booleanisEmpty()returns true if the either the item list is not valid or if it contains no itemsbooleanbooleanfinal booleanreturns whether the item list is valid and contains at least one itembooleanfinal booleanisValid()returns whether the item list has been loadedvoidsetInvertSelection(boolean invertSelection) voidsetSelectedItems(Set<Object[]> items) voidvoidvoidsetSingleSelection(boolean singleSelection) Methods inherited from class org.apache.empire.jsf2.pages.PageElement
getDefaultPropertyName, getPage, getPropertyName, getSessionObject, onInitPage, onRefreshPage, removeSessionObject, setSessionObject
-
Field Details
-
beanClass
-
items
-
selectedItemKeys
-
-
Constructor Details
-
ListPageElement
-
-
Method Details
-
getTableInfo
-
getItems
-
isValid
public final boolean isValid()returns whether the item list has been loaded- Returns:
- true if the item list has been loaded even it contains no items for false otherwise
-
isEmpty
public final boolean isEmpty()returns true if the either the item list is not valid or if it contains no items- Returns:
- true if the either the item list is not valid or if it contains no items
-
isNotEmpty
public final boolean isNotEmpty()returns whether the item list is valid and contains at least one item- Returns:
- true if the item list contains one or more items or false otherwise
-
isBlank
public final boolean isBlank()added as "isEmpty" is not accessible from EL.- Returns:
- true if the either the item list is not valid or if it contains no items
-
getItemCount
public int getItemCount()returns the total item count of the entire list (not just the visible part)- Returns:
- the total number of items in the list
-
clearItems
public void clearItems() -
clearSelection
public void clearSelection()Selection -
isHasSelection
public boolean isHasSelection() -
getSelectedItemCount
public int getSelectedItemCount() -
getSelectedItems
-
getSelectedItemKeys
-
setSelectedItems
-
isInvertSelection
public boolean isInvertSelection() -
setInvertSelection
public void setInvertSelection(boolean invertSelection) -
isSingleSelection
public boolean isSingleSelection() -
setSingleSelection
public void setSingleSelection(boolean singleSelection) -
setSelection
-
setSelection
-