com.vaadin.ui
Class AbstractSelect.CaptionChangeListener

java.lang.Object
  extended by com.vaadin.ui.AbstractSelect.CaptionChangeListener
All Implemented Interfaces:
Item.PropertySetChangeListener, Property.ValueChangeListener, Serializable
Enclosing class:
AbstractSelect

protected class AbstractSelect.CaptionChangeListener
extends Object
implements Item.PropertySetChangeListener, Property.ValueChangeListener

This is a listener helper for Item and Property changes that should cause a repaint. It should be attached to all items that are displayed, and the default implementation does this in paintContent(). Especially "lazyloading" components should take care to add and remove listeners as appropriate. Call addNotifierForItem() for each painted item (and remember to clear). NOTE: singleton, use getCaptionChangeListener().

See Also:
Serialized Form

Constructor Summary
protected AbstractSelect.CaptionChangeListener()
           
 
Method Summary
 void addNotifierForItem(Object itemId)
           
 void clear()
           
 void itemPropertySetChange(Item.PropertySetChangeEvent event)
          Notifies this listener that the Item's property set has changed.
 void valueChange(Property.ValueChangeEvent event)
          Notifies this listener that the Property's value has changed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractSelect.CaptionChangeListener

protected AbstractSelect.CaptionChangeListener()
Method Detail

addNotifierForItem

public void addNotifierForItem(Object itemId)

clear

public void clear()

valueChange

public void valueChange(Property.ValueChangeEvent event)
Description copied from interface: Property.ValueChangeListener
Notifies this listener that the Property's value has changed.

Specified by:
valueChange in interface Property.ValueChangeListener
Parameters:
event - value change event object

itemPropertySetChange

public void itemPropertySetChange(Item.PropertySetChangeEvent event)
Description copied from interface: Item.PropertySetChangeListener
Notifies this listener that the Item's property set has changed.

Specified by:
itemPropertySetChange in interface Item.PropertySetChangeListener
Parameters:
event - Property set change event object


Copyright © 2000-2011 Vaadin Ltd. All Rights Reserved.