A B C E F G H I L M N O R S U

A

AbstractBeanConverter - Class in net.sf.chainedoptions
Abstract class that implements the BeanConverter interface and provides an implementation of AbstractBeanConverter.convert(List)that loops through a list of beans and calls a template method for each bean.
AbstractBeanConverter() - Constructor for class net.sf.chainedoptions.AbstractBeanConverter
 
AbstractChainedOption - Class in net.sf.chainedoptions
Abstract class that implements the ChainedOption interface and provides an implementation of AbstractChainedOption.updateValue(Object, List, Object).
AbstractChainedOption() - Constructor for class net.sf.chainedoptions.AbstractChainedOption
 
adjustAndSort(List, Object) - Method in interface net.sf.chainedoptions.ChainedOptionStrategy
Sorts the given list of options.
adjustAndSort(List, Object) - Method in class net.sf.chainedoptions.support.ExtraItemsStrategy
 
adjustAndSort(List, Object) - Method in class net.sf.chainedoptions.support.FirstItemStrategy
Just sort the options for this implementation.
adjustAndSort(List, Object) - Method in class net.sf.chainedoptions.support.NoSortStrategy
Do nothing, just return the supplied list.
afterPropertiesSet() - Method in class net.sf.chainedoptions.AbstractChainedOption
Checks if all necessary properties have been set.
afterPropertiesSet() - Method in class net.sf.chainedoptions.ChainedOptionManagerImpl
 
afterPropertiesSet() - Method in class net.sf.chainedoptions.support.ExtraItemsStrategy
 
afterPropertiesSet() - Method in class net.sf.chainedoptions.support.OptionalRefreshChainedOption
 

B

BeanConverter - Interface in net.sf.chainedoptions
Interface that provides the operations required for converting beans of some kind into LabelValueBeans.

C

ChainedOption - Interface in net.sf.chainedoptions
An ChainedOption is responsible for handling an attribute in a command object, such as a Struts ActionForm or plain Java Bean, and the available options for this attribute.
ChainedOptionManager - Interface in net.sf.chainedoptions
Responsible for retrieving options and maintaining default values in command objects.
ChainedOptionManagerImpl - Class in net.sf.chainedoptions
Default implementation of ChainedOptionManager.
ChainedOptionManagerImpl() - Constructor for class net.sf.chainedoptions.ChainedOptionManagerImpl
 
ChainedOptionStrategy - Interface in net.sf.chainedoptions
Interface for a strategy that is responsible for sorting and filtering the list of available options and providing a reasonable default value.
compareTo(Object) - Method in class net.sf.chainedoptions.LabelValueBean
 
convert(List) - Method in class net.sf.chainedoptions.AbstractBeanConverter
Default implementation that loops through the supplied list of beans and calls AbstractBeanConverter.convertBean(Object)on each one of them.
convert(List) - Method in interface net.sf.chainedoptions.BeanConverter
Convert a list of beans of some sort into a list of LabelValueBean objects.
convertBean(Object) - Method in class net.sf.chainedoptions.AbstractBeanConverter
Template method that must provide the conversion of a single object into a LabelValueBean.
convertBean(Object) - Method in class net.sf.chainedoptions.support.StringBeanConverter
Create a LabelValueBean with name and value as the supplied String.

E

equals(Object) - Method in class net.sf.chainedoptions.LabelValueBean
 
ExtraItemsStrategy - Class in net.sf.chainedoptions.support
Strategy that adds a set of extra items to a given list of options.
ExtraItemsStrategy() - Constructor for class net.sf.chainedoptions.support.ExtraItemsStrategy
 

F

FirstItemStrategy - Class in net.sf.chainedoptions.support
A ChainedOptionStrategy that adds no extra items and returns the first in the option list as default value.
FirstItemStrategy() - Constructor for class net.sf.chainedoptions.support.FirstItemStrategy
 

G

getChainedOptions() - Method in class net.sf.chainedoptions.ChainedOptionManagerImpl
 
getCommandProperty() - Method in class net.sf.chainedoptions.AbstractChainedOption
 
getConverter() - Method in class net.sf.chainedoptions.AbstractChainedOption
 
getDefaultItem() - Method in class net.sf.chainedoptions.support.ExtraItemsStrategy
The default item is the item in the list that should be selected when the list is first displayed.
getDefaultValue(List, Object) - Method in interface net.sf.chainedoptions.ChainedOptionStrategy
Provides the default value of the given list of options.
getDefaultValue(List, Object) - Method in class net.sf.chainedoptions.support.ExtraItemsStrategy
 
getDefaultValue(List, Object) - Method in class net.sf.chainedoptions.support.FirstItemStrategy
Return the value of the first item as default value.
getDefaultValue(List, Object) - Method in class net.sf.chainedoptions.support.NoSortStrategy
Returns the value of the first item in the list.
getLabel() - Method in class net.sf.chainedoptions.LabelValueBean
 
getOptionsKey() - Method in class net.sf.chainedoptions.AbstractChainedOption
 
getOptionsKey() - Method in interface net.sf.chainedoptions.ChainedOption
Get the key that identifies the list of options corresponding to this ChainedOption.
getOptionsKey() - Method in class net.sf.chainedoptions.support.OptionalRefreshChainedOption
Forward the call to the target ChainedOption
getProperty(Object, String) - Method in class net.sf.chainedoptions.AbstractChainedOption
Utility method that gets a named property from a given object.
getStrategy(Object) - Method in class net.sf.chainedoptions.AbstractChainedOption
Override this if the implementation has several strategies.
getStrategy(Object) - Method in interface net.sf.chainedoptions.ChainedOption
Get the ChainedOptionStrategyto use for filtering and sorting values as well as for selecting the default value.
getStrategy(Object) - Method in class net.sf.chainedoptions.support.OptionalRefreshChainedOption
Forward the call to the target ChainedOption.
getValue() - Method in class net.sf.chainedoptions.LabelValueBean
 

H

hashCode() - Method in class net.sf.chainedoptions.LabelValueBean
 

I

initChainedOption() - Method in class net.sf.chainedoptions.AbstractChainedOption
Template method that subclasses may implement to ensure proper initialization.

L

LabelValueBean - Class in net.sf.chainedoptions
Simple name/value pair bean for use in cases where an item has a value and a display label.
LabelValueBean(String, String) - Constructor for class net.sf.chainedoptions.LabelValueBean
 

M

matches(LabelValueBean, String) - Method in class net.sf.chainedoptions.AbstractChainedOption
Utility method that matches the value of the given bean with the specified value.

N

net.sf.chainedoptions - package net.sf.chainedoptions
Package to handle options and connected values.
net.sf.chainedoptions.support - package net.sf.chainedoptions.support
Support implementions of some interfaces in the net.sf.chainedoptions package.
NoSortStrategy - Class in net.sf.chainedoptions.support
Strategy that does not perform any sorting and returns the first item in the list as default value.
NoSortStrategy() - Constructor for class net.sf.chainedoptions.support.NoSortStrategy
 

O

OptionalRefreshChainedOption - Class in net.sf.chainedoptions.support
Decorator to provide support for optional refresh on the target ChainedOption.
OptionalRefreshChainedOption() - Constructor for class net.sf.chainedoptions.support.OptionalRefreshChainedOption
 

R

referenceData(Map, Object, Object) - Method in interface net.sf.chainedoptions.ChainedOptionManager
Sets option Lists in the supplied map and makes sure that the command object always has valid values for all managed properties.
referenceData(Map, Object, Object) - Method in class net.sf.chainedoptions.ChainedOptionManagerImpl
Iterate through the collection of ChainedOption objects and call retrieveOptions and updateValue.
retrieveOptions(Object, Object) - Method in class net.sf.chainedoptions.AbstractChainedOption
 
retrieveOptions(Object, Object) - Method in interface net.sf.chainedoptions.ChainedOption
Retrieve a value List for this ChainedOption corresponding to the current values in the command that this ChainedOption depends on.
retrieveOptions(Object, Object) - Method in class net.sf.chainedoptions.support.OptionalRefreshChainedOption
Forward the retrieveOptions call to the target ChainedOption if the refreshProperty property on the target command is true.

S

setChainedOption(ChainedOption) - Method in class net.sf.chainedoptions.support.OptionalRefreshChainedOption
Set the ChainedOption that this decorator wraps.
setChainedOptions(List) - Method in class net.sf.chainedoptions.ChainedOptionManagerImpl
 
setCommandProperty(String) - Method in class net.sf.chainedoptions.AbstractChainedOption
Set the property on the target command object managed by this instance.
setConverter(BeanConverter) - Method in class net.sf.chainedoptions.AbstractChainedOption
Set the BeanConverter that should be used for translating to LabelValueBeans.
setDefaultItem(LabelValueBean) - Method in class net.sf.chainedoptions.support.ExtraItemsStrategy
The default item is the item in the list that should be selected when the list is first displayed.
setDefaultStrategy(ChainedOptionStrategy) - Method in class net.sf.chainedoptions.AbstractChainedOption
Set the default strategy to use.
setExtraItems(List) - Method in class net.sf.chainedoptions.support.ExtraItemsStrategy
Extra items are items that signify special values, like ANY, EMPTY, NOCHANGE etc.
setLabel(String) - Method in class net.sf.chainedoptions.LabelValueBean
 
setOptionsKey(String) - Method in class net.sf.chainedoptions.AbstractChainedOption
Set the key that should identify the option list managed by this instance.
setProperty(Object, String, Object) - Method in class net.sf.chainedoptions.AbstractChainedOption
Utility method that sets a named property on a given object.
setRefreshProperty(String) - Method in class net.sf.chainedoptions.support.OptionalRefreshChainedOption
Set the name of the property to inspect on the command object to determine whether OptionalRefreshChainedOption.retrieveOptions(Object, Object)and OptionalRefreshChainedOption.updateValue(Object, List, Object)should forward the call to the target ChainedOption.
setValue(String) - Method in class net.sf.chainedoptions.LabelValueBean
 
StringBeanConverter - Class in net.sf.chainedoptions.support
BeanConverter for String objects.
StringBeanConverter() - Constructor for class net.sf.chainedoptions.support.StringBeanConverter
 

U

updateValue(Object, List, Object) - Method in class net.sf.chainedoptions.AbstractChainedOption
Default implementation of updateValue, which loops through the list of available options and compares them to the current value of the managed attribute in the command object.
updateValue(Object, List, Object) - Method in interface net.sf.chainedoptions.ChainedOption
Check the command if it needs to be updated.
updateValue(Object, List, Object) - Method in class net.sf.chainedoptions.support.OptionalRefreshChainedOption
Forward the updateValue call to the target ChainedOptionrefreshProperty property on the target command is true.

A B C E F G H I L M N O R S U

Copyright ? 2005. All Rights Reserved.