|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.components.model.wrapper.ValueWrapper<List<?>>
org.riotfamily.components.model.wrapper.ListWrapper
public class ListWrapper
Constructor Summary | |
---|---|
ListWrapper()
|
Method Summary | |
---|---|
void |
add(int index,
Object item)
|
boolean |
add(Object item)
|
boolean |
addAll(Collection<?> items)
|
boolean |
addAll(int index,
Collection<?> items)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection<?> items)
|
ListWrapper |
deepCopy()
Creates a deep copy. |
void |
each(ValueCallback callback)
|
boolean |
equals(Object obj)
Delegates the call to the equals method of the wrapped object. |
Object |
get(int index)
|
List<?> |
getValue()
Returns the value that is passed to the form element when the value is edited. |
List<ValueWrapper<?>> |
getWrapperList()
|
int |
hashCode()
Delegates the call to the hashCode method of the wrapped object. |
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection<?> items)
|
boolean |
retainAll(Collection<?> items)
|
Object |
set(int index,
Object o)
|
void |
setValue(List<?> value)
|
void |
setWrapperList(List<ValueWrapper<?>> wrapperList)
|
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] a)
|
List<?> |
unwrap()
Returns the wrapped value. |
void |
wrap(Object value)
Wraps the given value. |
Methods inherited from class org.riotfamily.components.model.wrapper.ValueWrapper |
---|
getId, setId, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ListWrapper()
Method Detail |
---|
public void wrap(Object value)
ValueWrapper
ValueWrapper.setValue(Object)
.
wrap
in class ValueWrapper<List<?>>
public List<?> getValue()
ValueWrapper
ListWrapper
and MapWrapper
) which
return a self-reference.
getValue
in class ValueWrapper<List<?>>
public void setValue(List<?> value)
setValue
in class ValueWrapper<List<?>>
public List<ValueWrapper<?>> getWrapperList()
public void setWrapperList(List<ValueWrapper<?>> wrapperList)
public List<?> unwrap()
ValueWrapper
ValueWrapper.getValue()
. Subclasses that wrap complex values (values
with nested wrappers) must overwrite this method to perform a
"deep-unwrapping".
unwrap
in class ValueWrapper<List<?>>
public ListWrapper deepCopy()
ValueWrapper
ValueWrapper.setValue(Object)
with the value returned
by ValueWrapper.getValue()
. Complex wrappers have to make sure that the
deepCopy method is invoked for all nested values too.
deepCopy
in class ValueWrapper<List<?>>
public void each(ValueCallback callback)
each
in class ValueWrapper<List<?>>
public void clear()
clear
in interface Collection<Object>
clear
in interface List<Object>
public boolean add(Object item)
add
in interface Collection<Object>
add
in interface List<Object>
public void add(int index, Object item)
add
in interface List<Object>
public boolean addAll(Collection<?> items)
addAll
in interface Collection<Object>
addAll
in interface List<Object>
public boolean addAll(int index, Collection<?> items)
addAll
in interface List<Object>
public boolean contains(Object o)
contains
in interface Collection<Object>
contains
in interface List<Object>
public boolean containsAll(Collection<?> items)
containsAll
in interface Collection<Object>
containsAll
in interface List<Object>
public Object get(int index)
get
in interface List<Object>
public int indexOf(Object o)
indexOf
in interface List<Object>
public int lastIndexOf(Object o)
lastIndexOf
in interface List<Object>
public boolean isEmpty()
isEmpty
in interface Collection<Object>
isEmpty
in interface List<Object>
public Iterator iterator()
iterator
in interface Iterable<Object>
iterator
in interface Collection<Object>
iterator
in interface List<Object>
public ListIterator listIterator()
listIterator
in interface List<Object>
public ListIterator listIterator(int index)
listIterator
in interface List<Object>
public boolean remove(Object o)
remove
in interface Collection<Object>
remove
in interface List<Object>
public Object remove(int index)
remove
in interface List<Object>
public boolean removeAll(Collection<?> items)
removeAll
in interface Collection<Object>
removeAll
in interface List<Object>
public boolean retainAll(Collection<?> items)
retainAll
in interface Collection<Object>
retainAll
in interface List<Object>
public Object set(int index, Object o)
set
in interface List<Object>
public int size()
size
in interface Collection<Object>
size
in interface List<Object>
public List subList(int fromIndex, int toIndex)
subList
in interface List<Object>
public Object[] toArray()
toArray
in interface Collection<Object>
toArray
in interface List<Object>
public Object[] toArray(Object[] a)
toArray
in interface Collection<Object>
toArray
in interface List<Object>
public int hashCode()
ValueWrapper
hashCode
in interface Collection<Object>
hashCode
in interface List<Object>
hashCode
in class ValueWrapper<List<?>>
public boolean equals(Object obj)
ValueWrapper
equals
in interface Collection<Object>
equals
in interface List<Object>
equals
in class ValueWrapper<List<?>>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |