org.apache.tapestry.listener
Class ListenerMapImpl
java.lang.Object
org.apache.tapestry.listener.ListenerMapImpl
- All Implemented Interfaces:
- ListenerMap
public class ListenerMapImpl
- extends Object
- implements ListenerMap
- Since:
- 4.0
- Author:
- Howard M. Lewis Ship
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListenerMapImpl
public ListenerMapImpl(Object target,
Map invokers)
canProvideListener
public boolean canProvideListener(String name)
- Description copied from interface:
ListenerMap
- Returns true if this ListenerMapImpl can provide a listener with the
given name.
- Specified by:
canProvideListener
in interface ListenerMap
getListener
public IActionListener getListener(String name)
- Description copied from interface:
ListenerMap
- Gets a listener for the given name (which is both a property name and a
method name). The listener is created as needed, but is also cached for
later use. The returned object implements the
IActionListener
.
- Specified by:
getListener
in interface ListenerMap
- Parameters:
name
- the name of the method to invoke (the most appropriate method
will be selected if there are multiple overloadings of the
same method name)
getListenerNames
public Collection getListenerNames()
- Description copied from interface:
ListenerMap
- Returns an unmodifiable collection of the names of the listeners
implemented by the target class.
- Specified by:
getListenerNames
in interface ListenerMap
Copyright © 2006-2007 Apache Software Foundation. All Rights Reserved.