|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tapestry.listener.ListenerMapImpl
public class ListenerMapImpl
Constructor Summary | |
---|---|
ListenerMapImpl(Object target,
Map invokers)
|
Method Summary | |
---|---|
boolean |
canProvideListener(String name)
Returns true if this ListenerMapImpl can provide a listener with the given name. |
IActionListener |
getImplicitListener(IComponent component)
Gets a listener on the given component generated from the capitalized component id, prefixed by "do". |
IActionListener |
getListener(String name)
Gets a listener for the given name (which is both a property name and a method name). |
Collection |
getListenerNames()
Returns an unmodifiable collection of the names of the listeners implemented by the target class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ListenerMapImpl(Object target, Map invokers)
Method Detail |
---|
public boolean canProvideListener(String name)
ListenerMap
canProvideListener
in interface ListenerMap
name
- Name of the method to check listener existance of.
public IActionListener getListener(String name)
ListenerMap
IActionListener
.
getListener
in interface ListenerMap
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)
IActionListener
.public IActionListener getImplicitListener(IComponent component)
ListenerMap
getImplicitListener
in interface ListenerMap
component
- the component whose id is used to make up the name of the
expected listener
IActionListener
.public Collection getListenerNames()
ListenerMap
getListenerNames
in interface ListenerMap
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |