org.apache.jetspeed.modules.parameters
Class CheckBoxGroup
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.CheckBoxGroup
- public class CheckBoxGroup
- extends VelocityParameterPresentationStyle
Returns a group of check boxes using the following options:
items
: list of comma-delimited check box names/values
layout
[$northsouth|$eastwest]: presentation layout
prefix
: prefix to use for check box names, default="cb"
- Version:
- $Id: CheckBoxGroup.java,v 1.5 2005/01/18 17:08:45 morciuch Exp $
- Author:
- Mark Orciuch
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
LAYOUT
public static final java.lang.String LAYOUT
- See Also:
- Constant Field Values
LAYOUT_EW
public static final java.lang.String LAYOUT_EW
- See Also:
- Constant Field Values
LAYOUT_NS
public static final java.lang.String LAYOUT_NS
- See Also:
- Constant Field Values
PREFIX
public static final java.lang.String PREFIX
- See Also:
- Constant Field Values
PREFIX_DEFAULT
public static final java.lang.String PREFIX_DEFAULT
- See Also:
- Constant Field Values
DISABLED
public static final java.lang.String DISABLED
- See Also:
- Constant Field Values
SORTED
public static final java.lang.String SORTED
- See Also:
- Constant Field Values
ONCLICK_JAVASCRIPTS
public static final java.lang.String ONCLICK_JAVASCRIPTS
- See Also:
- Constant Field Values
CheckBoxGroup
public CheckBoxGroup()
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.