com.vaadin.ui.
Class AbstractSelect.CaptionChangeListener
- java.lang.Object
-
- com.vaadin.ui.AbstractSelect.CaptionChangeListener
-
All Implemented Interfaces:
Item.PropertySetChangeListener
,Property.ValueChangeListener
,Serializable
Enclosing class:
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:
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
CaptionChangeListener()
-
Method Summary
All Methods Modifier and Type Method Description 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.
-
-
-
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 interfaceProperty.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 interfaceItem.PropertySetChangeListener
Parameters:
event
- Property set change event object
-
-