|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.scaffold.util.ResultListBase
public class ResultListBase
Concrete implementation of ResultList.
| Field Summary | |
|---|---|
protected Map |
displayName
The displayName map, if any. |
protected List |
result
The result list [ArrayList]. |
protected Scroller |
scroller
Our scroller object for paging through lists. |
| Constructor Summary | |
|---|---|
ResultListBase()
Default constructor. |
|
ResultListBase(Collection c)
Convenience constructor to populate result with a Collection. |
|
ResultListBase(Object o)
Convenience constructor to populate result with an element. |
|
| Method Summary | |
|---|---|
boolean |
add(Object o)
Appends the specified element to the end of this list (optional operation). |
boolean |
addAll(Collection c)
Appends all of the elements in the specified Collection to the end of this list, in the order that they are returned by the specified Collection's Iterator. |
void |
clear()
Removes all of the elements from this list.. |
boolean |
contains(Object element)
Returns true if this collection contains the specified element. |
boolean |
containsAll(Collection c)
Returns true if this collection contains all of the elements in the specified collection. |
Object |
get(int index)
Returns the element at the specified position in this list. |
Integer |
getCode()
Return the code. |
int |
getCounter()
Convenience method for maintaining a counter that can be shared among multiple components in some presentation systems (e.g, Tiles). |
Map |
getDisplayName()
Return the displayName map (a HashMap). |
Object |
getElement(int index)
Convenience accessor for get(). |
Iterator |
getIterator()
Convenience accessor for iterator(). |
String |
getLegend()
Return the legend. |
List |
getResult()
Return the result list |
Scroller |
getScroller()
Return our scroller. |
int |
getSize()
Convenience accessor for size(). |
boolean |
isEmpty()
Returns true if this collection contains no elements. |
Iterator |
iterator()
Return an iterator for the List. |
boolean |
populate(Object o,
int index)
Populate matching properties on given object, using bean at given index. |
boolean |
remove(Object o)
Removes a single instance of the specified element from this collection, if it is present (optional operation). |
boolean |
removeAll(Collection c)
Removes all this collection's elements that are also contained in the specified collection. |
boolean |
retainAll(Collection c)
Retains only the elements in this collection that are contained in the specified collection. |
void |
setCode(Integer code)
Set the code. |
void |
setCounter(int counter)
Set a new counter value. |
void |
setDisplayName(Map displayName)
Assign a new displayName list. |
void |
setLegend(String legend)
Set the legend. |
void |
setLegend(String name,
String value)
Set the legend. |
void |
setResult(List result)
Set our result |
void |
setScroller(Scroller scroller)
Set our scroller. |
int |
size()
Return the number of elements on the List. |
Object[] |
toArray()
Returns an array containing all of the elements in this collection. |
Object[] |
toArray(Object[] a)
Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode |
| Field Detail |
|---|
protected List result
protected Scroller scroller
protected Map displayName
| Constructor Detail |
|---|
public ResultListBase()
public ResultListBase(Object o)
public ResultListBase(Collection c)
| Method Detail |
|---|
public List getResult()
ResultList
getResult in interface ResultListpublic void setResult(List result)
ResultList
setResult in interface ResultListresult - The new resultpublic void setScroller(Scroller scroller)
ResultList
setScroller in interface ResultListscroller - The new scrollerpublic Scroller getScroller()
ResultList
getScroller in interface ResultListpublic int getCounter()
ResultList
getCounter in interface ResultListpublic void setCounter(int counter)
ResultList
setCounter in interface ResultListpublic Integer getCode()
ResultList
getCode in interface ResultListpublic void setCode(Integer code)
ResultList
setCode in interface ResultListcode - The new codepublic String getLegend()
ResultList
getLegend in interface ResultListpublic void setLegend(String legend)
ResultList
setLegend in interface ResultListlegend - The new legend
public void setLegend(String name,
String value)
ResultList
setLegend in interface ResultListpublic Map getDisplayName()
ResultList
getDisplayName in interface ResultListpublic void setDisplayName(Map displayName)
ResultList
setDisplayName in interface ResultListpublic Object[] toArray()
ResultList
toArray in interface CollectiontoArray in interface ResultListpublic Object[] toArray(Object[] a)
ResultList
toArray in interface CollectiontoArray in interface ResultListpublic boolean isEmpty()
ResultList
isEmpty in interface CollectionisEmpty in interface ResultListpublic int size()
ResultList
size in interface Collectionsize in interface ResultListpublic boolean contains(Object element)
ResultList
contains in interface Collectioncontains in interface ResultListpublic boolean add(Object o)
ResultList
add in interface Collectionadd in interface ResultListpublic Iterator iterator()
ResultList
iterator in interface Iterableiterator in interface Collectioniterator in interface ResultListpublic Object get(int index)
ResultList
get in interface ResultListpublic boolean addAll(Collection c)
ResultList
addAll in interface CollectionaddAll in interface ResultListpublic void clear()
ResultList
clear in interface Collectionclear in interface ResultListpublic boolean containsAll(Collection c)
ResultList
containsAll in interface CollectioncontainsAll in interface ResultListpublic boolean remove(Object o)
ResultList
remove in interface Collectionremove in interface ResultListpublic boolean removeAll(Collection c)
ResultList
removeAll in interface CollectionremoveAll in interface ResultListpublic boolean retainAll(Collection c)
ResultList
retainAll in interface CollectionretainAll in interface ResultListpublic Object getElement(int index)
ResultListget().
getElement in interface ResultListpublic Iterator getIterator()
ResultListiterator().
getIterator in interface ResultListpublic int getSize()
ResultListsize().
getSize in interface ResultList
public boolean populate(Object o,
int index)
throws Exception
ResultListPropertyUtils.describe.
populate in interface ResultListException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||