Class AbstractPropertyUIList<C extends IJspUIContext,D extends IJspUIContext,I extends IUIListItem<D>>

java.lang.Object
com.jalios.jcms.member.profile.ui.AbstractPropertyUI<C>
com.jalios.jcms.member.profile.ui.AbstractPropertyUIList<C,D,I>
Type Parameters:
C - type of List context
D - type of item context
I - type of item
All Implemented Interfaces:
IJspUI<C>, IUI<C>, IUIList<C,D,I>

public abstract class AbstractPropertyUIList<C extends IJspUIContext,D extends IJspUIContext,I extends IUIListItem<D>> extends AbstractPropertyUI<C> implements IUIList<C,D,I>
Convenient abstract holder of UI list.
Since:
jplatform-11
Author:
Sylvain Devaux
  • Field Details

    • LOGGER

      protected static final org.apache.log4j.Logger LOGGER
  • Constructor Details

    • AbstractPropertyUIList

      public AbstractPropertyUIList(String property, C context, D itemContext)
      Parameters:
      property - common property prefix to resolve sub properties.

      eg: if property is foo.ui.bar, then following sub properties will be resolved foo.ui.bar.*

      context - UI context
      itemContext - UI item context
    • AbstractPropertyUIList

      public AbstractPropertyUIList(AbstractPropertyUIList<C,D,I> other)
  • Method Details

    • getInstance

      protected abstract I getInstance(String property)
      Parameters:
      property - the property key to map
      Returns:
      a new instance of UI item
      See Also:
    • loadList

      protected List<I> loadList()
      Internal. Load tabs based on standalone JProperties.
      Returns:
      list of tabs. Does not return null, return empty collection instead.
    • getItemContext

      public D getItemContext()
      Returns:
      the item context
    • getItems

      public List<I> getItems()
      Specified by:
      getItems in interface IUIList<C extends IJspUIContext,D extends IJspUIContext,I extends IUIListItem<D>>
      Returns:
      list of enabled items
    • setItems

      public void setItems(List<I> items)
      Parameters:
      items - the items to set
    • toString

      public String toString()
      Overrides:
      toString in class AbstractPropertyUI<C extends IJspUIContext>