Package com.vaadin.featurepack.data.ui
Class FAbstractSelect.CaptionChangeListener
java.lang.Object
com.vaadin.featurepack.data.ui.FAbstractSelect.CaptionChangeListener
- All Implemented Interfaces:
Item.PropertySetChangeListener,Property.ValueChangeListener,Serializable
- Enclosing class:
FAbstractSelect
protected class FAbstractSelect.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNotifierForItem(Object itemId) voidclear()voidNotifies this listener that the Item's property set has changed.voidNotifies this listener that the Property's value has changed.
-
Constructor Details
-
CaptionChangeListener
protected CaptionChangeListener()
-
-
Method Details
-
addNotifierForItem
-
clear
public void clear() -
valueChange
Description copied from interface:Property.ValueChangeListenerNotifies this listener that the Property's value has changed.- Specified by:
valueChangein interfaceProperty.ValueChangeListener- Parameters:
event- value change event object
-
itemPropertySetChange
Description copied from interface:Item.PropertySetChangeListenerNotifies this listener that the Item's property set has changed.- Specified by:
itemPropertySetChangein interfaceItem.PropertySetChangeListener- Parameters:
event- Property set change event object
-