wicket.markup.html.form.model
Class ChoiceList.Choice

java.lang.Object
  extended bywicket.markup.html.form.model.ChoiceList.Choice
All Implemented Interfaces:
IChoice
Enclosing class:
ChoiceList

protected class ChoiceList.Choice
extends java.lang.Object
implements IChoice

Implementation of IChoice for simple objects.

Author:
Jonathan Locke

Constructor Summary
ChoiceList.Choice(java.lang.Object object, int index)
          Constructor
 
Method Summary
 java.lang.String getDisplayValue()
          Gets the display value for the choice
 java.lang.String getId()
           
 java.lang.Object getObject()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceList.Choice

public ChoiceList.Choice(java.lang.Object object,
                         int index)
Constructor

Parameters:
object - The object
index - The index of the object in the choice list
Method Detail

getDisplayValue

public java.lang.String getDisplayValue()
Description copied from interface: IChoice
Gets the display value for the choice

Specified by:
getDisplayValue in interface IChoice
Returns:
The display value
See Also:
IChoice.getDisplayValue()

getId

public final java.lang.String getId()
Specified by:
getId in interface IChoice
Returns:
The id for this choice
See Also:
IChoice.getId()

getObject

public final java.lang.Object getObject()
Specified by:
getObject in interface IChoice
Returns:
The actual object
See Also:
IChoice.getObject()


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