org.apache.jetspeed.modules.parameters
Class ListBox

java.lang.Object
  extended byorg.apache.turbine.modules.Assembler
      extended byorg.apache.jetspeed.modules.parameters.ParameterPresentationStyle
          extended byorg.apache.jetspeed.modules.parameters.VelocityParameterPresentationStyle
              extended byorg.apache.jetspeed.modules.parameters.ListBox

public class ListBox
extends VelocityParameterPresentationStyle

Returns simple list box control

Options:

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

Field Summary
protected  java.lang.String items
           
static java.lang.String ITEMS
           
protected  boolean sorted
           
static java.lang.String SORTED
           
 
Fields inherited from class org.apache.jetspeed.modules.parameters.ParameterPresentationStyle
styleparms
 
Constructor Summary
ListBox()
           
 
Method Summary
 void buildContext(org.apache.turbine.util.RunData data, java.lang.String name, java.lang.String value, java.util.Map parms, org.apache.velocity.context.Context context)
          Put custom objects in velocity context
protected  java.util.Map getListItems(org.apache.turbine.util.RunData data, java.lang.String name, java.lang.String value, java.util.Map parms, org.apache.velocity.context.Context context)
          Returns a map of list items (key=value)
protected  void init(org.apache.turbine.util.RunData data)
          Initialize options
 
Methods inherited from class org.apache.jetspeed.modules.parameters.VelocityParameterPresentationStyle
getContent
 
Methods inherited from class org.apache.jetspeed.modules.parameters.ParameterPresentationStyle
getJavascriptEvents, getParm, setParms
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ITEMS

public static final java.lang.String ITEMS
See Also:
Constant Field Values

SORTED

public static final java.lang.String SORTED
See Also:
Constant Field Values

items

protected java.lang.String items

sorted

protected boolean sorted
Constructor Detail

ListBox

public ListBox()
Method Detail

buildContext

public void buildContext(org.apache.turbine.util.RunData data,
                         java.lang.String name,
                         java.lang.String value,
                         java.util.Map parms,
                         org.apache.velocity.context.Context context)
Put custom objects in velocity context

Overrides:
buildContext in class VelocityParameterPresentationStyle
Parameters:
data -
name -
value -
parms -
context -
Returns:
string

getListItems

protected java.util.Map getListItems(org.apache.turbine.util.RunData data,
                                     java.lang.String name,
                                     java.lang.String value,
                                     java.util.Map parms,
                                     org.apache.velocity.context.Context context)
Returns a map of list items (key=value)

Returns:

init

protected void init(org.apache.turbine.util.RunData data)
             throws java.lang.Exception
Initialize options

Parameters:
data -
Throws:
java.lang.Exception


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