public void setFoo(Foo foo)
{
getContainer().update(this,this.foo,foo,"foo");
this.foo=foo;
}
public void setBars(Bar[] bars)
{
getContainer().update(this,this.bars,bars,"bar");
this.bars=bars;
}
| Modifier and Type | Class and Description |
|---|---|
| public static interface | Container.Listener
Listener. |
| public static class | Container.Relationship
A Container event. |
| Modifier and Type | Field and Description |
|---|---|
| private Object |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public void | |
| public synchronized void | |
| private void | |
| public void | |
| public synchronized void | |
| public synchronized void | update(Object
The parent of the child. parent, Object The previous value of the child. If this is non null and differs from oldChild, final Object child, then a remove event is generated.The current child. If this is non null and differs from child, String oldChild, then an add event is generated.The name of the relationship relationship)Update single parent to child relationship. |
| public synchronized void | update(Object
The parent of the child. parent, Object The previous value of the child. If this is non null and differs from oldChild, final Object child, then a remove event is generated.The current child. If this is non null and differs from child, String oldChild, then an add event is generated.The name of the relationship relationship, boolean If true add/remove is called for the new/old children as well as the relationships addRemove)Update single parent to child relationship. |
| public synchronized void | update(Object
The parent of the child. parent, Object[] The previous array of children. A remove event is generated for any child in this array but not in the oldChildren, final Object[] children array.
This array is modified and children that remain in the new children array are nulled out of the old children array.The current array of children. An add event is generated for any child in this array but not in the children, String oldChildren array.The name of the relationship relationship)Update multiple parent to child relationship. |
| public synchronized void | update(Object
The parent of the child. parent, Object[] The previous array of children. A remove event is generated for any child in this array but not in the oldChildren, final Object[] children array.
This array is modified and children that remain in the new children array are nulled out of the old children array.The current array of children. An add event is generated for any child in this array but not in the children, String oldChildren array.The name of the relationship relationship, boolean If true add/remove is called for the new/old children as well as the relationships addRemove)Update multiple parent to child relationship. |
| _listeners | back to summary |
|---|---|
| private Object _listeners | |
| Container | back to summary |
|---|---|
| public Container() | |
| add | back to summary |
|---|---|
| private void add(Object parent, Object child, String relationship) Add a parent child relationship | |
| addBean | back to summary |
|---|---|
| public void addBean(Object obj) | |
| addEventListener | back to summary |
|---|---|
| public synchronized void addEventListener(Container. | |
| remove | back to summary |
|---|---|
| private void remove(Object parent, Object child, String relationship) remove a parent child relationship | |
| removeBean | back to summary |
|---|---|
| public void removeBean(Object obj) | |
| removeEventListener | back to summary |
|---|---|
| public synchronized void removeEventListener(Container. | |
| update | back to summary |
|---|---|
| public synchronized void update(Object parent, Object oldChild, final Object child, String relationship) Update single parent to child relationship.
| |
| update | back to summary |
|---|---|
| public synchronized void update(Object parent, Object oldChild, final Object child, String relationship, boolean addRemove) Update single parent to child relationship.
| |
| update | back to summary |
|---|---|
| public synchronized void update(Object parent, Object[] oldChildren, final Object[] children, String relationship) Update multiple parent to child relationship.
| |
| update | back to summary |
|---|---|
| public synchronized void update(Object parent, Object[] oldChildren, final Object[] children, String relationship, boolean addRemove) Update multiple parent to child relationship.
| |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public void | |
| public void |
| add | back to summary |
|---|---|
| public void add(Container. | |
| addBean | back to summary |
|---|---|
| public void addBean(Object bean) | |
| remove | back to summary |
|---|---|
| public void remove(Container. | |
| removeBean | back to summary |
|---|---|
| public void removeBean(Object bean) | |
Listener
| Modifier and Type | Field and Description |
|---|---|
| private Object | |
| private Container | |
| private Object | |
| private String |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public Object | |
| public Container | |
| public Object | |
| public String | |
| public int | |
| public String |
| _child | back to summary |
|---|---|
| private Object _child | |
| _container | back to summary |
|---|---|
| private Container _container | |
| _parent | back to summary |
|---|---|
| private Object _parent | |
| _relationship | back to summary |
|---|---|
| private String _relationship | |
| Relationship | back to summary |
|---|---|
| private Relationship(Container container, Object parent, Object child, String relationship) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| getChild | back to summary |
|---|---|
| public Object getChild() | |
| getContainer | back to summary |
|---|---|
| public Container getContainer() | |
| getParent | back to summary |
|---|---|
| public Object getParent() | |
| getRelationship | back to summary |
|---|---|
| public String getRelationship() | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
| |