org.shept.org.springframework.beans.support
Class ChoiceListHolder<E>

java.lang.Object
  extended by org.shept.org.springframework.beans.support.PagedListHolder<E>
      extended by org.shept.org.springframework.beans.support.ChoiceListHolder<E>
All Implemented Interfaces:
Serializable, MultiChoice<E>, PageableList<E>
Direct Known Subclasses:
FilteredListHolder

public class ChoiceListHolder<E>
extends PagedListHolder<E>
implements Serializable, MultiChoice<E>

See Also:
Serialized Form

Nested Class Summary
 class ChoiceListHolder.ModelWithSelection
           
 
Field Summary
protected  List<Boolean> options
           
static String OPTIONS_BINDING_NAME
           
protected  Object selectedAction
           
private static long serialVersionUID
           
 
Fields inherited from class org.shept.org.springframework.beans.support.PagedListHolder
maxLinkedPages, newModelSize, newModelTemplate, newPageSet, page, pageSize, refreshDate, sort, sortUsed
 
Fields inherited from interface org.shept.org.springframework.beans.support.PageableList
DEFAULT_NEW_MODEL_SIZE, DEFAULT_PAGE_SIZE, LIST_BINDING_NAME
 
Constructor Summary
ChoiceListHolder()
           
 
Method Summary
 List<Boolean> getOptions()
           
 List<ChoiceListHolder.ModelWithSelection> getPageListWithSelection()
           
 List<Boolean> getPageOptions()
           
 Object getSelectedAction()
           
 List<E> getSelectedItems()
           
protected  void initOptions(int startIndex, int endIndex)
           
 void setSelectedAction(Object selectedAction)
           
 
Methods inherited from class org.shept.org.springframework.beans.support.PagedListHolder
copyModel, copySortDefinition, doSort, getFirstElementOnPage_orig, getFirstElementOnPage, getFirstLinkedPage, getLastElementOnPage_orig, getLastElementOnPage, getLastLinkedPage, getListBindingName, getMaxLinkedPages, getNewModels, getNewModelSize, getNewModelTemplate, getNrOfElements, getPage, getPageCount, getPageList, getPageSize, getRefreshDate, getSort, getSortUsed, getSource, isEol, isFirstPage, isLastPage, isSortNeeded, isVisible, nextPage, previousPage, resort, setMaxLinkedPages, setNewModelSize, setNewModelTemplate, setPage, setPageSize, setSort, setSource, setSourceInternal, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

OPTIONS_BINDING_NAME

public static final String OPTIONS_BINDING_NAME
See Also:
Constant Field Values

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

options

protected List<Boolean> options

selectedAction

protected Object selectedAction
Constructor Detail

ChoiceListHolder

public ChoiceListHolder()
Method Detail

initOptions

protected void initOptions(int startIndex,
                           int endIndex)

getOptions

public List<Boolean> getOptions()

getSelectedItems

public List<E> getSelectedItems()
Specified by:
getSelectedItems in interface MultiChoice<E>

getPageListWithSelection

public List<ChoiceListHolder.ModelWithSelection> getPageListWithSelection()

getPageOptions

public List<Boolean> getPageOptions()

getSelectedAction

public Object getSelectedAction()

setSelectedAction

public void setSelectedAction(Object selectedAction)


Copyright © 2011. All Rights Reserved.