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>

Deprecated. Call FacesRequestContext.addScript(com.liferay.faces.util.client.Script) instead.

@Deprecated
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()
          Deprecated.  
 
Method Summary
protected  AbstractPropertyMapEntry<String> createPropertyMapEntry(String name)
          Deprecated.  
protected  String getProperty(String name)
          Deprecated.  
protected  Enumeration<String> getPropertyNames()
          Deprecated.  
protected  Map<String,String> getRequestAttribute()
          Deprecated.  
 String put(String key, String value)
          Deprecated. Call FacesRequestContext.addScript(com.liferay.faces.util.client.Script) instead.
 void putAll(Map<? extends String,? extends String> map)
          Deprecated. Call FacesRequestContext.addScript(com.liferay.faces.util.client.Script) instead.
 String remove(Object key)
          Deprecated. No replacement available.
protected  void removeProperty(String name)
          Deprecated.  
protected  void setProperty(String name, String value)
          Deprecated.  
 
Methods inherited from class com.liferay.faces.util.map.AbstractPropertyMap
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, 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()
Deprecated. 
Method Detail

put

@Deprecated
public String put(String key,
                             String value)
Deprecated. Call FacesRequestContext.addScript(com.liferay.faces.util.client.Script) instead.

Specified by:
put in interface Map<String,String>
Overrides:
put in class AbstractPropertyMap<String>

putAll

@Deprecated
public void putAll(Map<? extends String,? extends String> map)
Deprecated. Call FacesRequestContext.addScript(com.liferay.faces.util.client.Script) instead.

Specified by:
putAll in interface Map<String,String>
Overrides:
putAll in class AbstractPropertyMap<String>

remove

@Deprecated
public String remove(Object key)
Deprecated. No replacement available.

Specified by:
remove in interface Map<String,String>
Overrides:
remove in class AbstractPropertyMap<String>

createPropertyMapEntry

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

removeProperty

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

getProperty

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

setProperty

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

getPropertyNames

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

getRequestAttribute

protected Map<String,String> getRequestAttribute()
Deprecated. 


Copyright © 2015 Liferay, Inc.. All rights reserved.