org.outerj.daisy.repository.schema
Interface StaticListItem

All Superinterfaces:
ListItem

public interface StaticListItem
extends ListItem

A ListItem meant to be used in a StaticSelectionList


Method Summary
 void setLabel(java.util.Locale locale, java.lang.String label)
          Sets a label for this ListItem (optionally to be shown to the end-user instead of the actual value of the ListItem).
 void setValue(java.lang.Object value)
          Sets the actual value of this ListItem.
 
Methods inherited from interface org.outerj.daisy.repository.schema.ListItem
getLabel, getLabelExact, getValue, getXml
 

Method Detail

setValue

public void setValue(java.lang.Object value)
Sets the actual value of this ListItem.

Parameters:
value - the value to set for this ListItem

setLabel

public void setLabel(java.util.Locale locale,
                     java.lang.String label)
Sets a label for this ListItem (optionally to be shown to the end-user instead of the actual value of the ListItem).

This label is localized, i.e. one has to specify a locale for which this label can and will be used.

Parameters:
locale - the locale for which the specified presentation of the label is meant
label - the presentation of the label to use for the specified locale


Copyright © -2005 . All Rights Reserved.