|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.ui.painter.html.OptionsHelp
HelperClass for Option Lists
| Nested Class Summary | |
private static class |
OptionsHelp.IterBase
Baseclass for Option iterators |
private static class |
OptionsHelp.IterEnumeration
OptionsIterator for Enumeration |
private static class |
OptionsHelp.IterIterator
OptionsIterator for Iterator |
private static class |
OptionsHelp.IterLineIterator
OptionsIterator for LineIterator |
private static class |
OptionsHelp.IterList
OptionsIterator for List |
private static class |
OptionsHelp.IterOptionListDataModel
OptionsIterator for OptionListDataModel |
private static class |
OptionsHelp.IterSimpleEnumType2
OptionsIterator for SimpleEnumType2 |
| Constructor Summary | |
private |
OptionsHelp()
Constructor |
| Method Summary | |
static org.apache.ecs.ConcreteElement |
createDisplayElement(java.lang.Object selected)
Creates a element with all selected option labels |
static org.apache.ecs.ConcreteElement |
createDisplayElement(java.lang.Object[] selected)
Creates a element with all selected option labels |
static org.apache.ecs.ConcreteElement |
createDisplayElement(PainterContext ctx,
OptionsIterator iter,
OptionsComparator cmp)
Creates a element with all selected option labels |
static OptionsIterator |
createIterator(OptionListDesignModel designModel,
java.lang.Object dataModel)
Creates an iterator for the given option collection |
static java.lang.Object[] |
toArray(java.lang.Object value)
Transforms an object into an Array |
static java.lang.String[] |
translateSelectedItems(PainterContext ctx,
OptionListDesignModel designModel,
java.lang.Object dataModel,
OptionsComparator cmp)
Creates a String array with all selected option labels |
static java.lang.String[] |
translateSelectedItems(PainterContext ctx,
OptionsIterator iter,
OptionsComparator cmp)
Creates a String array with all selected option labels |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
private OptionsHelp()
| Method Detail |
public static OptionsIterator createIterator(OptionListDesignModel designModel,
java.lang.Object dataModel)
designModel - Option list design modeldataModel - options collection
null
public static java.lang.String[] translateSelectedItems(PainterContext ctx,
OptionListDesignModel designModel,
java.lang.Object dataModel,
OptionsComparator cmp)
ctx - Painter ContextdesignModel - Option list design modeldataModel - options collectioncmp - Comparator
public static java.lang.String[] translateSelectedItems(PainterContext ctx,
OptionsIterator iter,
OptionsComparator cmp)
ctx - Painter Contextiter - options iteratorcmp - Comparator
public static org.apache.ecs.ConcreteElement createDisplayElement(java.lang.Object selected)
selected - the selected key
public static org.apache.ecs.ConcreteElement createDisplayElement(java.lang.Object[] selected)
selected - array with the selected keys
public static org.apache.ecs.ConcreteElement createDisplayElement(PainterContext ctx,
OptionsIterator iter,
OptionsComparator cmp)
ctx - Painter Contextiter - options iteratorcmp - Comparator. When no comparator is given the whole list will be
rendered
public static java.lang.Object[] toArray(java.lang.Object value)
value - Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||