. Added notion of NodeEventListeners to BrowseBean.

. Fix for AWC-519
 - Date pickers now show 2 year values into the future by default - for "effectivity date" searches and similar

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2386 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2006-02-15 15:32:40 +00:00
parent 9b8466cad7
commit fb74fac7c9
9 changed files with 260 additions and 90 deletions

View File

@@ -242,6 +242,18 @@ public class Node implements Serializable
this.properties.addPropertyResolver(name, resolver);
}
/**
* Returns if a property resolver with a specific name has been applied to the Node
*
* @param name of property resolver to look for
*
* @return true if a resolver with the name is found, false otherwise
*/
public final boolean containsPropertyResolver(String name)
{
return this.properties.containsPropertyResolver(name);
}
/**
* Determines whether the given property name is held by this node
*

View File

@@ -34,7 +34,7 @@ import org.apache.commons.logging.LogFactory;
public final class QNameNodeMap<K,V> extends QNameMap implements Map, Cloneable
{
private Node parent = null;
private Map<String, NodePropertyResolver> resolvers = new HashMap<String, NodePropertyResolver>(11, 1.0f);
private Map<String, NodePropertyResolver> resolvers = new HashMap<String, NodePropertyResolver>(16, 1.0f);
/**
* Constructor
@@ -61,6 +61,18 @@ public final class QNameNodeMap<K,V> extends QNameMap implements Map, Cloneable
{
this.resolvers.put(name, resolver);
}
/**
* Returns if a property resolver with a specific name has been applied to the map
*
* @param name of property resolver to look for
*
* @return true if a resolver with the name is found, false otherwise
*/
public boolean containsPropertyResolver(String name)
{
return this.resolvers.containsKey(name);
}
/**
* @see java.util.Map#containsKey(java.lang.Object)