Package com.vaadin.featurepack.data
Interface Property.ValueChangeNotifier
- All Superinterfaces:
Serializable
- All Known Subinterfaces:
EntityItem<T>,EntityItemProperty,FAbstractTextField,Field<T>,HasFInternalValue<T>,Select
- All Known Implementing Classes:
AbstractField,AbstractProperty,CustomField,FAbstractField,FAbstractSelect,FCheckBox,FComboBox,FDateField,FListSelect,FPasswordField,FTextArea,FTextField,FTokenField,FTwinColSelect,IndexedContainer,JPAContainerItem,Label,MethodProperty,NestedMethodProperty,ObjectProperty,Table,TransactionalPropertyWrapper
The interface for adding and removing
ValueChangeEvent
listeners. If a Property wishes to allow other objects to receive
ValueChangeEvent generated by it, it must implement this
interface.
Note : The general Java convention is not to explicitly declare that a
class generates events, but to directly define the
addListener and removeListener methods. That
way the caller of these methods has no real way of finding out if the
class really will send the events, or if it just defines the methods to
be able to implement an interface.
- Since:
- 3.0
- Author:
- Vaadin Ltd.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRegisters a new value change listener for this Property.voidRemoves a previously registered value change listener.
-
Method Details
-
addValueChangeListener
Registers a new value change listener for this Property.- Parameters:
listener- the new Listener to be registered
-
removeValueChangeListener
Removes a previously registered value change listener.- Parameters:
listener- listener to be removed
-