com.liferay.faces.util.context.map
Class JavaScriptMap

java.lang.Object
  extended by com.liferay.faces.util.map.AbstractPropertyMap<String>
      extended by com.liferay.faces.util.context.map.JavaScriptMap
All Implemented Interfaces:
Map<String,String>

public class JavaScriptMap
extends AbstractPropertyMap<String>

This class serves as a layer of abstraction for a Map of strings, each representing a separate fragment of JavaScript. If ICEfaces is detected, then the implementation delegates to the ICEfaces org.icefaces.util.JavaScriptRunner so that the ICEfaces DOMPartialViewContext class can have a chance to render JavaScript fragments. Otherwise, the implementation stores the map as a request attribute.

Author:
Neil Griffin

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
JavaScriptMap()
           
 
Method Summary
protected  AbstractPropertyMapEntry<String> createPropertyMapEntry(String name)
           
protected  String getProperty(String name)
           
protected  Enumeration<String> getPropertyNames()
           
protected  Map<String,String> getRequestAttribute()
           
protected  void removeProperty(String name)
           
protected  void setProperty(String name, String value)
           
 
Methods inherited from class com.liferay.faces.util.map.AbstractPropertyMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

JavaScriptMap

public JavaScriptMap()
Method Detail

createPropertyMapEntry

protected AbstractPropertyMapEntry<String> createPropertyMapEntry(String name)
Specified by:
createPropertyMapEntry in class AbstractPropertyMap<String>

removeProperty

protected void removeProperty(String name)
Specified by:
removeProperty in class AbstractPropertyMap<String>

getProperty

protected String getProperty(String name)
Specified by:
getProperty in class AbstractPropertyMap<String>

setProperty

protected void setProperty(String name,
                           String value)
Specified by:
setProperty in class AbstractPropertyMap<String>

getPropertyNames

protected Enumeration<String> getPropertyNames()
Specified by:
getPropertyNames in class AbstractPropertyMap<String>

getRequestAttribute

protected Map<String,String> getRequestAttribute()


Copyright © 2014 Liferay, Inc.. All Rights Reserved.