org.apache.tapestry.listener
Class ListenerMapPropertyAccessor

java.lang.Object
  extended by ognl.ObjectPropertyAccessor
      extended by org.apache.tapestry.listener.ListenerMapPropertyAccessor
All Implemented Interfaces:
ognl.PropertyAccessor

public class ListenerMapPropertyAccessor
extends ognl.ObjectPropertyAccessor
implements ognl.PropertyAccessor

Exposes IActionListener listeners provided by the ListenerMap as read-only properties of the map.

Since:
2.2
Author:
Howard Lewis Ship

Constructor Summary
ListenerMapPropertyAccessor()
           
 
Method Summary
 Object getProperty(Map context, Object target, Object name)
          Checks to see if the ListenerMapImpl provides the named listener, returning the listener if it does.
 Class getPropertyClass(ognl.OgnlContext context, Object target, Object name)
           
 String getSourceAccessor(ognl.OgnlContext context, Object target, Object name)
           
 String getSourceSetter(ognl.OgnlContext context, Object target, Object name)
           
 boolean hasGetProperty(Map context, Object target, Object oname)
          Returns true if the ListenerMap contains the named listener, otherwise invokes super-implementation.
 
Methods inherited from class ognl.ObjectPropertyAccessor
getPossibleProperty, hasGetProperty, hasSetProperty, hasSetProperty, setPossibleProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ognl.PropertyAccessor
setProperty
 

Constructor Detail

ListenerMapPropertyAccessor

public ListenerMapPropertyAccessor()
Method Detail

getProperty

public Object getProperty(Map context,
                          Object target,
                          Object name)
                   throws ognl.OgnlException
Checks to see if the ListenerMapImpl provides the named listener, returning the listener if it does. Otherwise, invokes the super implementation.

Specified by:
getProperty in interface ognl.PropertyAccessor
Overrides:
getProperty in class ognl.ObjectPropertyAccessor
Throws:
ognl.OgnlException

hasGetProperty

public boolean hasGetProperty(Map context,
                              Object target,
                              Object oname)
                       throws ognl.OgnlException
Returns true if the ListenerMap contains the named listener, otherwise invokes super-implementation.

Overrides:
hasGetProperty in class ognl.ObjectPropertyAccessor
Throws:
ognl.OgnlException

getPropertyClass

public Class getPropertyClass(ognl.OgnlContext context,
                              Object target,
                              Object name)
Overrides:
getPropertyClass in class ognl.ObjectPropertyAccessor

getSourceAccessor

public String getSourceAccessor(ognl.OgnlContext context,
                                Object target,
                                Object name)
Specified by:
getSourceAccessor in interface ognl.PropertyAccessor
Overrides:
getSourceAccessor in class ognl.ObjectPropertyAccessor

getSourceSetter

public String getSourceSetter(ognl.OgnlContext context,
                              Object target,
                              Object name)
Specified by:
getSourceSetter in interface ognl.PropertyAccessor
Overrides:
getSourceSetter in class ognl.ObjectPropertyAccessor


Copyright © 2006-2011 Apache Software Foundation. All Rights Reserved.