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

public abstract class ListPageElement<T> extends PageElement<Page>
  • Field Details

  • Constructor Details

    • ListPageElement

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

    • getTableInfo

      public abstract ListPageElement.ListTableInfo getTableInfo()
    • getItems

      public List<T> 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

      public List<T> getSelectedItems()
    • getSelectedItemKeys

      public Set<Object[]> getSelectedItemKeys()
    • setSelectedItems

      public void setSelectedItems(Set<Object[]> items)
    • isInvertSelection

      public boolean isInvertSelection()
    • setInvertSelection

      public void setInvertSelection(boolean invertSelection)
    • isSingleSelection

      public boolean isSingleSelection()
    • setSingleSelection

      public void setSingleSelection(boolean singleSelection)
    • setSelection

      public void setSelection(ListPageElement.SelectableItem item)
    • setSelection

      public void setSelection(ListPageElement.SelectableItem[] items)