org.apache.jetspeed.modules.parameters
Class ListBox
java.lang.Object
org.apache.turbine.modules.Assembler
org.apache.jetspeed.modules.parameters.ParameterPresentationStyle
org.apache.jetspeed.modules.parameters.VelocityParameterPresentationStyle
org.apache.jetspeed.modules.parameters.ListBox
- public class ListBox
- extends VelocityParameterPresentationStyle
Returns simple list box control
Options:
items
- comma-separated list of list box items
layout
[$combo|$list] - combo box vs list box
size
- size of the list box for $list style
sort
[false|true] - return sorted list of items
multiplechoice
[false|true] - allow multiple selections
- 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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
ListBox
public ListBox()
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.