org.springframework.richclient.list
Class ListUtils

java.lang.Object
  extended by org.springframework.richclient.list.ListUtils

public class ListUtils
extends Object


Method Summary
static ActionCommand createRemoveRowCommand(List list, ValueModel selectionIndexHolder)
           
static int getElementIndex(ListModel listModel, int filteredIndex)
          Returns the unfiltered element index from a chained filtered list model
static ListModel getFilteredListModel(ListModel listModel)
          Returns the list model of a filter chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createRemoveRowCommand

public static ActionCommand createRemoveRowCommand(List list,
                                                   ValueModel selectionIndexHolder)

getFilteredListModel

public static ListModel getFilteredListModel(ListModel listModel)
Returns the list model of a filter chain.

Parameters:
listModel - the filtered list model chain
Returns:
the (unfiltered) list model

getElementIndex

public static int getElementIndex(ListModel listModel,
                                  int filteredIndex)
Returns the unfiltered element index from a chained filtered list model

Parameters:
listModel - the chained filtered list model
filteredIndex - the index of the element to return the unfiltered index for
Returns:
the element index of the unfiltered list model


Copyright © 2004-2008 The Spring Framework. All Rights Reserved.