com.vaadin.ui.
Class AbstractSelect.CaptionChangeListener
java.lang.Object
com.vaadin.ui.AbstractSelect.CaptionChangeListener
All Implemented Interfaces:
Item.PropertySetChangeListener, Property.ValueChangeListener, Serializable
Enclosing class:
- extends Object
- implements Item.PropertySetChangeListener, Property.ValueChangeListener
protected class AbstractSelect.CaptionChangeListener
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:
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)
- Specified by:
valueChange
in interfaceProperty.ValueChangeListener
- Parameters:
event
- value change event object
Description copied from interface: Property.ValueChangeListener
Notifies this listener that the Property's value has changed.
itemPropertySetChange
public void itemPropertySetChange(Item.PropertySetChangeEvent event)
- Specified by:
itemPropertySetChange
in interfaceItem.PropertySetChangeListener
- Parameters:
event
- Property set change event object
Description copied from interface: Item.PropertySetChangeListener
Notifies this listener that the Item's property set has changed.