ontopoly.utils
Class TopicChoiceRenderer<T extends Topic>

java.lang.Object
  extended by ontopoly.utils.TopicChoiceRenderer<T>
All Implemented Interfaces:
java.io.Serializable, org.apache.wicket.IClusterable, org.apache.wicket.markup.html.form.IChoiceRenderer<T>

public class TopicChoiceRenderer<T extends Topic>
extends java.lang.Object
implements org.apache.wicket.markup.html.form.IChoiceRenderer<T>

See Also:
Serialized Form

Field Summary
static TopicChoiceRenderer<Topic> INSTANCE
           
 
Constructor Summary
TopicChoiceRenderer()
           
 
Method Summary
 java.lang.Object getDisplayValue(Topic object)
           
 java.lang.String getIdValue(Topic object, int index)
           
protected  Topic getTopic(java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TopicChoiceRenderer<Topic> INSTANCE
Constructor Detail

TopicChoiceRenderer

public TopicChoiceRenderer()
Method Detail

getTopic

protected Topic getTopic(java.lang.Object object)

getDisplayValue

public java.lang.Object getDisplayValue(Topic object)
Specified by:
getDisplayValue in interface org.apache.wicket.markup.html.form.IChoiceRenderer<T extends Topic>

getIdValue

public java.lang.String getIdValue(Topic object,
                                   int index)
Specified by:
getIdValue in interface org.apache.wicket.markup.html.form.IChoiceRenderer<T extends Topic>


Copyright © 2000-2012 Ontopia.