|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 ResultList
public void setResult(List result)
ResultList
setResult
in interface ResultList
result
- The new resultpublic void setScroller(Scroller scroller)
ResultList
setScroller
in interface ResultList
scroller
- The new scrollerpublic Scroller getScroller()
ResultList
getScroller
in interface ResultList
public int getCounter()
ResultList
getCounter
in interface ResultList
public void setCounter(int counter)
ResultList
setCounter
in interface ResultList
public Integer getCode()
ResultList
getCode
in interface ResultList
public void setCode(Integer code)
ResultList
setCode
in interface ResultList
code
- The new codepublic String getLegend()
ResultList
getLegend
in interface ResultList
public void setLegend(String legend)
ResultList
setLegend
in interface ResultList
legend
- The new legendpublic void setLegend(String name, String value)
ResultList
setLegend
in interface ResultList
public Map getDisplayName()
ResultList
getDisplayName
in interface ResultList
public void setDisplayName(Map displayName)
ResultList
setDisplayName
in interface ResultList
public Object[] toArray()
ResultList
toArray
in interface Collection
toArray
in interface ResultList
public Object[] toArray(Object[] a)
ResultList
toArray
in interface Collection
toArray
in interface ResultList
public boolean isEmpty()
ResultList
isEmpty
in interface Collection
isEmpty
in interface ResultList
public int size()
ResultList
size
in interface Collection
size
in interface ResultList
public boolean contains(Object element)
ResultList
contains
in interface Collection
contains
in interface ResultList
public boolean add(Object o)
ResultList
add
in interface Collection
add
in interface ResultList
public Iterator iterator()
ResultList
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface ResultList
public Object get(int index)
ResultList
get
in interface ResultList
public boolean addAll(Collection c)
ResultList
addAll
in interface Collection
addAll
in interface ResultList
public void clear()
ResultList
clear
in interface Collection
clear
in interface ResultList
public boolean containsAll(Collection c)
ResultList
containsAll
in interface Collection
containsAll
in interface ResultList
public boolean remove(Object o)
ResultList
remove
in interface Collection
remove
in interface ResultList
public boolean removeAll(Collection c)
ResultList
removeAll
in interface Collection
removeAll
in interface ResultList
public boolean retainAll(Collection c)
ResultList
retainAll
in interface Collection
retainAll
in interface ResultList
public Object getElement(int index)
ResultList
get()
.
getElement
in interface ResultList
public Iterator getIterator()
ResultList
iterator()
.
getIterator
in interface ResultList
public int getSize()
ResultList
size()
.
getSize
in interface ResultList
public boolean populate(Object o, int index) throws Exception
ResultList
PropertyUtils.describe
.
populate
in interface ResultList
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |