public class CollectionWrapper<E> extends Object implements ComponentWrapper, ArooaSessionAware, org.apache.commons.beanutils.DynaBean, BusPart, LogEnabled, Describeable, Iconic, ArooaLifeAware, Collection<E>
MegaBeanBus
.
Modifier and Type | Field and Description |
---|---|
static String |
ACTIVE |
static ImageIcon |
activeIcon |
static String |
INACTIVE |
static ImageIcon |
inactiveIcon |
Constructor and Description |
---|
CollectionWrapper(Collection<E> collection,
Object proxy)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
boolean |
addAll(Collection<? extends E> c) |
void |
addIconListener(IconListener listener)
Add an icon listener.
|
void |
clear() |
BusConductor |
conductorForService(BusConductor busConductor)
A Bodge method to allow a Bus Conductor to be adpator for logging.
|
void |
configured()
The configuration for the bean has been fully configured.
|
boolean |
contains(Object o) |
boolean |
contains(String name,
String key) |
boolean |
containsAll(Collection<?> c) |
Map<String,String> |
describe()
Provides the properties.
|
void |
destroy()
The configuration for the bean is about to be destroyed.
|
boolean |
equals(Object other) |
Object |
get(String name) |
Object |
get(String name,
int index) |
Object |
get(String name,
String key) |
protected org.apache.commons.beanutils.DynaBean |
getDynaBean() |
org.apache.commons.beanutils.DynaClass |
getDynaClass() |
protected Object |
getProxy() |
protected Object |
getWrapped() |
ImageIcon |
iconForId(String iconId)
Return an icon tip for a given id.
|
void |
initialised()
The configuration for the bean has been initialised.
|
boolean |
isEmpty() |
Iterator<E> |
iterator() |
protected org.apache.log4j.Logger |
logger() |
String |
loggerName()
Provide the logger name.
|
void |
prepare(BusConductor busConductor)
Prepare this part of a bus.
|
boolean |
remove(Object o) |
void |
remove(String name,
String key) |
boolean |
removeAll(Collection<?> c) |
void |
removeIconListener(IconListener listener)
Remove an icon listener.
|
boolean |
retainAll(Collection<?> c) |
void |
set(String name,
int index,
Object value) |
void |
set(String name,
Object value) |
void |
set(String name,
String key,
Object value) |
void |
setArooaSession(ArooaSession session) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
hashCode
public static final String INACTIVE
public static final String ACTIVE
public static final ImageIcon inactiveIcon
public static final ImageIcon activeIcon
public CollectionWrapper(Collection<E> collection, Object proxy)
collection
- proxy
- public void setArooaSession(ArooaSession session)
setArooaSession
in interface ArooaSessionAware
protected Object getWrapped()
protected org.apache.commons.beanutils.DynaBean getDynaBean()
protected Object getProxy()
protected org.apache.log4j.Logger logger()
public void initialised()
ArooaLifeAware
initialised
in interface ArooaLifeAware
public void configured()
ArooaLifeAware
configured
in interface ArooaLifeAware
public void destroy()
ArooaLifeAware
destroy
in interface ArooaLifeAware
public String loggerName()
LogEnabled
loggerName
in interface LogEnabled
public void prepare(BusConductor busConductor)
BusPart
public BusConductor conductorForService(BusConductor busConductor)
BusPart
conductorForService
in interface BusPart
public ImageIcon iconForId(String iconId)
public void addIconListener(IconListener listener)
addIconListener
in interface Iconic
listener
- The listener.public void removeIconListener(IconListener listener)
removeIconListener
in interface Iconic
listener
- The listener.public boolean equals(Object other)
equals
in interface Collection<E>
equals
in class Object
public boolean contains(String name, String key)
contains
in interface org.apache.commons.beanutils.DynaBean
public Object get(String name)
get
in interface org.apache.commons.beanutils.DynaBean
public Object get(String name, int index)
get
in interface org.apache.commons.beanutils.DynaBean
public Object get(String name, String key)
get
in interface org.apache.commons.beanutils.DynaBean
public org.apache.commons.beanutils.DynaClass getDynaClass()
getDynaClass
in interface org.apache.commons.beanutils.DynaBean
public void remove(String name, String key)
remove
in interface org.apache.commons.beanutils.DynaBean
public void set(String name, int index, Object value)
set
in interface org.apache.commons.beanutils.DynaBean
public void set(String name, Object value)
set
in interface org.apache.commons.beanutils.DynaBean
public void set(String name, String key, Object value)
set
in interface org.apache.commons.beanutils.DynaBean
public Map<String,String> describe()
Describeable
describe
in interface Describeable
public boolean add(E e)
add
in interface Collection<E>
public boolean addAll(Collection<? extends E> c)
addAll
in interface Collection<E>
public void clear()
clear
in interface Collection<E>
public boolean contains(Object o)
contains
in interface Collection<E>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<E>
public boolean isEmpty()
isEmpty
in interface Collection<E>
public boolean remove(Object o)
remove
in interface Collection<E>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<E>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<E>
public int size()
size
in interface Collection<E>
public Object[] toArray()
toArray
in interface Collection<E>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<E>