org.spiffyui.client.widgets.multivaluesuggest
Class MultivalueSuggestBoxBase.SelectedItem

java.lang.Object
  extended by HTMLPanel
      extended by org.spiffyui.client.widgets.multivaluesuggest.MultivalueSuggestBoxBase.SelectedItem
Enclosing class:
MultivalueSuggestBoxBase

protected class MultivalueSuggestBoxBase.SelectedItem
extends HTMLPanel

This class represents a UI element for a selected item. It will have an anchor with an X to allow for this item to be dismissed


Constructor Summary
MultivalueSuggestBoxBase.SelectedItem(java.lang.String id, java.lang.String display)
          Constructor
 
Method Summary
 java.lang.String getDisplay()
          Get the display string
 void onClick(ClickEvent event)
           
 void remove()
          Remove this selected item
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultivalueSuggestBoxBase.SelectedItem

public MultivalueSuggestBoxBase.SelectedItem(java.lang.String id,
                                             java.lang.String display)
Constructor

Parameters:
id - - the elements unique id
display - - the string to display
Method Detail

onClick

public void onClick(ClickEvent event)

remove

public void remove()
Remove this selected item


getDisplay

public java.lang.String getDisplay()
Get the display string

Returns:
the display string