|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Repetition for intelligently handling cases with no items, or too many items.
Sample use case: a multi-chooser where we want to display a list of the first three items (separated by a comma) and "..." if there are more, but just "(none)" if there are none.
| Bindings | |||
|---|---|---|---|
item
*
|
Like in AWRepetition |
Object (set) |
|
list
*
|
Like in AWRepetition |
List (get) |
|
count
*
|
Should be called "maxCount" -- the max number of items to render before truncating (and displaying "overflow") |
int (get) |
|
| Named Content | |
|---|---|
empty |
What to render when list has no items. E.g. "(none)" |
prefix |
What to render before the first item |
body |
The renderer for the item |
separator |
Separator between items (e.g. " ,") |
overflow |
What to render if there are more than "count" items -- e.g.: "...", or a hyperlink for "more..." |
suffix |
What to render after the last item |
java.lang.Objectariba.ui.aribaweb.util.AWBaseObject
ariba.ui.aribaweb.core.AWComponent
ariba.ui.validation.ComplexRepetition
public final class ComplexRepetition
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface ariba.ui.aribaweb.core.AWResponseGenerating |
|---|
AWResponseGenerating.ResponseSubstitution |
| Constructor Summary | |
|---|---|
ComplexRepetition()
|
|
| Method Summary | |
|---|---|
boolean |
didTruncateList()
|
boolean |
isEmpty()
|
boolean |
isLast()
|
boolean |
isStateless()
Overridden by AWComponent subclasses to indicate whether component instances should be preseved with the page/session (i.e. |
void |
setIndex(int index)
|
| Methods inherited from class ariba.ui.aribaweb.util.AWBaseObject |
|---|
debugString, getFieldValue, isKindOfClass, localizedJavaString, logString, logWarning, setFieldValue |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
|---|
getFieldValue, isKindOfClass, setFieldValue |
| Methods inherited from interface ariba.ui.aribaweb.util.AWObject |
|---|
getFieldValue, isKindOfClass, setFieldValue |
| Field Detail |
|---|
public int _maxCount
public int _count
public int _index
public Object _list
| Constructor Detail |
|---|
public ComplexRepetition()
| Method Detail |
|---|
public boolean isStateless()
AWComponent
isStateless in class AWComponentpublic void setIndex(int index)
public boolean isLast()
public boolean didTruncateList()
public boolean isEmpty()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||