org.eclipse.birt.chart.script
Class AbstractScriptContext

java.lang.Object
  extended by org.eclipse.birt.chart.script.AbstractScriptContext
All Implemented Interfaces:
java.io.Serializable, IScriptContext
Direct Known Subclasses:
ChartScriptContext

public abstract class AbstractScriptContext
extends java.lang.Object
implements IScriptContext

The abstract class implements common methods to store script contexts.

Since:
2.5
See Also:
Serialized Form

Constructor Summary
AbstractScriptContext()
           
 
Method Summary
 IExternalContext getExternalContext()
           
 java.util.Locale getLocale()
          Deprecated. Use getULocale() instead.
 ILogger getLogger()
           
 java.lang.Object getProperty(java.lang.Object key)
          Returns property value.
 com.ibm.icu.util.ULocale getULocale()
           
 void setExternalContext(IExternalContext externalContext)
           
 void setLogger(ILogger logger)
          Sets associated logger.
 void setProperty(java.lang.Object key, java.lang.Object value)
          Saves property value.
 void setULocale(com.ibm.icu.util.ULocale locale)
          Sets associated locale.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractScriptContext

public AbstractScriptContext()
Method Detail

getExternalContext

public IExternalContext getExternalContext()
Specified by:
getExternalContext in interface IScriptContext
Returns:
Returns the external context.

setExternalContext

public void setExternalContext(IExternalContext externalContext)
Parameters:
externalContext - the context of script

getLocale

public java.util.Locale getLocale()
Deprecated. Use getULocale() instead.

(non-Javadoc)

Specified by:
getLocale in interface IScriptContext
Returns:
Returns the locale of current context.
See Also:
IScriptContext.getLocale()

getLogger

public ILogger getLogger()
Specified by:
getLogger in interface IScriptContext
Returns:
Returns an ILogger instance, to allow logging from script.
See Also:
ILogger

setLogger

public void setLogger(ILogger logger)
Sets associated logger.

Parameters:
logger - Logger

getULocale

public com.ibm.icu.util.ULocale getULocale()
Specified by:
getULocale in interface IScriptContext
Returns:
Returns the locale of current context.

setULocale

public void setULocale(com.ibm.icu.util.ULocale locale)
Sets associated locale.

Parameters:
locale - Locale

getProperty

public java.lang.Object getProperty(java.lang.Object key)
Description copied from interface: IScriptContext
Returns property value.

Specified by:
getProperty in interface IScriptContext
Returns:

setProperty

public void setProperty(java.lang.Object key,
                        java.lang.Object value)
Description copied from interface: IScriptContext
Saves property value.

Specified by:
setProperty in interface IScriptContext


Copyright © 2005-2008 Actuate Corp. All rights reserved.