|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.listener.ListenerMap
public class ListenerMap
Maps a class to a set of listeners based on the public methods of the class.
ListenerMapPropertyAccessor is setup
to provide these methods as named properties of the ListenerMap.
| Constructor Summary | |
|---|---|
ListenerMap(Object target)
|
|
| Method Summary | |
|---|---|
boolean |
canProvideListener(String name)
Returns true if this ListenerMap can provide a listener with the given name. |
Object |
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. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ListenerMap(Object target)
| Method Detail |
|---|
public Object getListener(String name)
ApplicationRuntimeException - if the listener can not be created.public Collection getListenerNames()
public boolean canProvideListener(String name)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||