org.apache.jetspeed.modules.parameters
Class ParameterPresentationStyle

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.jetspeed.modules.parameters.ParameterPresentationStyle
Direct Known Subclasses:
JspParameterPresentationStyle, VelocityParameterPresentationStyle

public abstract class ParameterPresentationStyle
extends org.apache.turbine.modules.Assembler

Interface to be implemented by parameter presentation style class

Version:
$Id: ParameterPresentationStyle.java,v 1.5 2005/01/18 17:08:45 morciuch Exp $
Author:
Mark Orciuch

Field Summary
protected static JetspeedLogger logger
          Static initialization of the logger for this class
protected  java.util.Map styleparms
           
 
Constructor Summary
ParameterPresentationStyle()
           
 
Method Summary
abstract  java.lang.String getContent(org.apache.turbine.util.RunData data, java.lang.String name, java.lang.String value, java.util.Map parms)
          Returns presentation method html fragment
 java.util.Map getJavascriptEvents()
          Returns javascript event definitions as defined by "[name].style.javascript:[event]".
 java.lang.Object getParm(java.lang.String key, java.lang.Object def)
          Allows to retrieve a style parameter with default
 void setParms(java.util.Map parms)
          Allows to initialize style parameter hashtable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final JetspeedLogger logger
Static initialization of the logger for this class


styleparms

protected java.util.Map styleparms
Constructor Detail

ParameterPresentationStyle

public ParameterPresentationStyle()
Method Detail

getContent

public abstract java.lang.String getContent(org.apache.turbine.util.RunData data,
                                            java.lang.String name,
                                            java.lang.String value,
                                            java.util.Map parms)
Returns presentation method html fragment

Parameters:
data - run context info
name - name for the returned control
value - default value for the control
parms - hashtable with presentation parameters
Returns:
html for the control

setParms

public void setParms(java.util.Map parms)
Allows to initialize style parameter hashtable

Parameters:
parms -

getParm

public java.lang.Object getParm(java.lang.String key,
                                java.lang.Object def)
Allows to retrieve a style parameter with default

Parameters:
key -
def -
Returns:
object

getJavascriptEvents

public java.util.Map getJavascriptEvents()

Returns javascript event definitions as defined by "[name].style.javascript:[event]".

For example: symbols.style.javascipt:onChange

Returns:
map of javascript events


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.