wicket.markup.html.form.model
Interface IChoiceList

All Superinterfaces:
IDetachable, java.io.Serializable
All Known Implementing Classes:
ChoiceList

public interface IChoiceList
extends IDetachable

A List interface that is used by the choice implementations to access a detachable list of choices by index and id.

Author:
Johan Compagner, Eelco Hillenius, Jonathan Locke

Method Summary
 void attach()
          Attaches model for use.
 IChoice choiceForId(java.lang.String id)
          Gets an choice by id
 IChoice choiceForObject(java.lang.Object object)
           
 IChoice get(int index)
           
 int size()
           
 
Methods inherited from interface wicket.model.IDetachable
detach
 

Method Detail

attach

public void attach()
Attaches model for use. This is generally used to fill in transient fields in a model which has been serialized during session replication.


choiceForId

public IChoice choiceForId(java.lang.String id)
Gets an choice by id

Parameters:
id - The choice's id
Returns:
The choice

choiceForObject

public IChoice choiceForObject(java.lang.Object object)
Parameters:
object - The object to find
Returns:
The choice for the object

get

public IChoice get(int index)
Parameters:
index - The index of the choice to get
Returns:
The choice

size

public int size()
Returns:
Number of choices in the list


Copyright © 2004-2005 Wicket developers. All Rights Reserved.