com.vaadin.event.
Interface ItemClickEvent.ItemClickNotifier
-
All Superinterfaces:
Enclosing class:
public static interface ItemClickEvent.ItemClickNotifier extends Serializable
The interface for adding and removing
ItemClickEvent
listeners. By implementing this interface a class explicitly announces that it will generate anItemClickEvent
when one of its items is clicked.Note: The general Java convention is not to explicitly declare that a class generates events, but to directly define the
addListener
andremoveListener
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:
6.5
See Also:
-
-
Method Summary
All Methods Modifier and Type Method and Description void
addItemClickListener(ItemClickEvent.ItemClickListener listener)
Register a listener to handle
ItemClickEvent
s.void
addListener(ItemClickEvent.ItemClickListener listener)
Deprecated.
As of 7.0, replaced by#addItemClickListener(ItemClickListener)
void
removeItemClickListener(ItemClickEvent.ItemClickListener listener)
Removes an ItemClickListener.
void
removeListener(ItemClickEvent.ItemClickListener listener)
Deprecated.
As of 7.0, replaced by#removeItemClickListener(ItemClickListener)
-
-
-
Method Detail
-
addItemClickListener
void addItemClickListener(ItemClickEvent.ItemClickListener listener)
Register a listener to handle
ItemClickEvent
s.Parameters:
listener
- ItemClickListener to be registered
-
addListener
@Deprecated void addListener(ItemClickEvent.ItemClickListener listener)
Deprecated. As of 7.0, replaced by
#addItemClickListener(ItemClickListener)
-
removeItemClickListener
void removeItemClickListener(ItemClickEvent.ItemClickListener listener)
Removes an ItemClickListener.
Parameters:
listener
- ItemClickListener to be removed
-
removeListener
@Deprecated void removeListener(ItemClickEvent.ItemClickListener listener)
Deprecated. As of 7.0, replaced by
#removeItemClickListener(ItemClickListener)
-
-