com.arsdigita.cms.ui
Class ItemListModel

java.lang.Object
  extended bycom.arsdigita.cms.ui.ItemListModel
All Implemented Interfaces:
com.arsdigita.bebop.list.ListModel

public class ItemListModel
extends Object
implements com.arsdigita.bebop.list.ListModel

A ListModel that iterates over the passed in ItemCollection This is an easy starting place for lists that need to dispaly items.


Field Summary
static String versionId
           
 
Constructor Summary
ItemListModel(ItemCollection collection)
          Construct a new GroupListModel
 
Method Summary
protected  ContentItem getCurrentItem()
          This provides protected access to the current content item This can be used by code that needs to override the behavior of getKey or getElement
 Object getElement()
          This returns the Name of the item
 String getKey()
          This returns the item ID as a String
 boolean next()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

versionId

public static final String versionId
See Also:
Constant Field Values
Constructor Detail

ItemListModel

public ItemListModel(ItemCollection collection)
Construct a new GroupListModel

Method Detail

next

public boolean next()
Specified by:
next in interface com.arsdigita.bebop.list.ListModel

getElement

public Object getElement()
This returns the Name of the item

Specified by:
getElement in interface com.arsdigita.bebop.list.ListModel

getKey

public String getKey()
This returns the item ID as a String

Specified by:
getKey in interface com.arsdigita.bebop.list.ListModel

getCurrentItem

protected ContentItem getCurrentItem()
This provides protected access to the current content item This can be used by code that needs to override the behavior of getKey or getElement



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2352 UTC