[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[platform-ui-dev] AggregateListBinding
|
- From: "Phil Borlin" <rancidfishbreath@xxxxxxxxx>
- Date: Fri, 2 Mar 2007 04:26:32 -0500
- Delivered-to: platform-ui-dev@eclipse.org
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=k4WSxCgHXMmy+85b/k6+wzUK1JHl26xF8pfPhqjmIGn4KtVokVt0kPzdcLoppuVK6H5QKNMtKXbz41vuNqIJAkEA3Fe5/sZ2WTLKJoozExtckJ6pzpg9jsjcb1MYZHy3ARJzJqW3gB9p/O60xMqIxLnlYXXGcISSkBBYPMYyx1I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=TSFzpbIMx1xQVfLPBjcxhP5U1wRE2f3YXNSdt2HlSNdDoByZGbtsgRY+R/YcpRBwWVlN0UjCqKR/xgX0Wp6VcQ4mDBkK1UqHgvZ2wDFnlNjhVUkU9LvAcZ5u/ji5VdMlxHUmfD/GWad33mkiNPCZUXzqoJNDMdTrXagkvKOQ+bY=
In using the binding framework I have come across the need to bind
multiple lists to one list. The use case I am using this in is that I
have a tree node whose parent may have a number of different types of
children:
OrgUnit can contain Employees and other OrgUnits.
In my model I have one java.util.List of Employees in OrgUnit and
another List for OrgUnits. The constructor on my binding looks like
this:
AggregateListBinding(BindSpec bindSpec, IObservableList targetList,
IObservableList... modelLists)
This is a read only binding since
1) It is hard to tell which List to add the new object to
2) I can just add to a list with a traditional ListBinding
Is this interesting to anyone else? If it is I can send some diffs up
the proper channels.
-Phil