com.arsdigita.formbuilder.ui
Class SimpleQuestionnaireListModel

java.lang.Object
  extended bycom.arsdigita.formbuilder.ui.SimpleQuestionnaireListModel
All Implemented Interfaces:
ListModel

public class SimpleQuestionnaireListModel
extends Object
implements ListModel

List with names and id:s for all SimpleQuestionnaire objects. Those are currently the only objects managed by the Form Builder admin UI.

Version:
$Id: //core-platform/dev/src/com/arsdigita/formbuilder/ui/SimpleQuestionnaireListModel.java#7 $
Author:
Peter Marklund

Field Summary
static String versionId
           
 
Constructor Summary
SimpleQuestionnaireListModel()
           
 
Method Summary
 Object getElement()
          Returns the name of the form
 String getKey()
          Return the id of the form.
 boolean listItemNotNull()
          Indicates if there is a not-null list iten that the getElement() and getKey() methods can use.
 boolean next()
          Move to the next list item.
 
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

SimpleQuestionnaireListModel

public SimpleQuestionnaireListModel()
Method Detail

listItemNotNull

public boolean listItemNotNull()
Indicates if there is a not-null list iten that the getElement() and getKey() methods can use. Will return null before next() is called.


next

public boolean next()
Description copied from interface: ListModel
Move to the next list item. If there is no next list item, return false. The item's key and element can be accessed with calls to ListModel.getKey() and ListModel.getElement(). Initially, the list model is positioned before the first item, so that next() has to be called once before it is possible to access the item.

Specified by:
next in interface ListModel
Returns:
true if the model is positioned on a valid item after the call returns.

getElement

public Object getElement()
Returns the name of the form

Specified by:
getElement in interface ListModel
Returns:
the element for the current list item
See Also:
ListModel.next()

getKey

public String getKey()
Return the id of the form.

Specified by:
getKey in interface ListModel
Returns:
identifies the object underlying the list item uniquely
See Also:
ListModel.next()


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