|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface LayoutEvents.LayoutClickNotifier
The interface for adding and removing LayoutClickEvent
listeners. By implementing this interface a class explicitly announces
that it will generate a LayoutClickEvent
when a component
inside it is clicked and a LayoutClickListener
is
registered.
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.
LayoutEvents.LayoutClickListener
,
LayoutEvents.LayoutClickEvent
Method Summary | |
---|---|
void |
addLayoutClickListener(LayoutEvents.LayoutClickListener listener)
Add a click listener to the layout. |
void |
addListener(LayoutEvents.LayoutClickListener listener)
Deprecated. As of 7.0, replaced by #addLayoutClickListener(LayoutClickListener) |
void |
removeLayoutClickListener(LayoutEvents.LayoutClickListener listener)
Removes an LayoutClickListener. |
void |
removeListener(LayoutEvents.LayoutClickListener listener)
Deprecated. As of 7.0, replaced by #removeLayoutClickListener(LayoutClickListener) |
Method Detail |
---|
void addLayoutClickListener(LayoutEvents.LayoutClickListener listener)
LayoutEvents.LayoutClickEvent
.
Use #removeListener(LayoutClickListener)
to remove the
listener.
listener
- The listener to add@Deprecated void addListener(LayoutEvents.LayoutClickListener listener)
#addLayoutClickListener(LayoutClickListener)
void removeLayoutClickListener(LayoutEvents.LayoutClickListener listener)
listener
- LayoutClickListener to be removed@Deprecated void removeListener(LayoutEvents.LayoutClickListener listener)
#removeLayoutClickListener(LayoutClickListener)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |