[Bprocessor-commit] gui/src/net/sourceforge/bprocessor/gui/treeview GenericTreeView.java, 1.123, 1.
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2007-11-19 09:33:15
|
Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30827/src/net/sourceforge/bprocessor/gui/treeview Modified Files: GenericTreeView.java Log Message: Made component extend entity Index: GenericTreeView.java =================================================================== RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/treeview/GenericTreeView.java,v retrieving revision 1.123 retrieving revision 1.124 diff -C2 -d -r1.123 -r1.124 *** GenericTreeView.java 19 Nov 2007 09:27:00 -0000 1.123 --- GenericTreeView.java 19 Nov 2007 09:33:17 -0000 1.124 *************** *** 1160,1164 **** * Component Container */ ! public class ComponentContainer extends GenericNode { /** * Constructor for Catalog objects --- 1160,1164 ---- * Component Container */ ! public class ComponentContainer extends ContainerNode { /** * Constructor for Catalog objects *************** *** 1167,1188 **** */ public ComponentContainer(String name, Collection<Component> content) { ! super(name); ! for (Component l : content) { ! this.add(new ComponentNode(l)); ! } } ! /** ! * Update the node with the given object ! * @param o The object ! */ ! public void update(Object o) { ! if (o instanceof Collection) { ! this.removeAllChildren(); ! for (Component l : (Collection<Component>)o) { ! this.add(new ComponentNode(l)); ! } ! model.nodeStructureChanged(this); ! } } } --- 1167,1176 ---- */ public ComponentContainer(String name, Collection<Component> content) { ! super(name, content, false); } ! /** {@inheritDoc} */ ! public EntityNode nodeFor(Object entity) { ! return new ComponentNode((Component) entity); } } *************** *** 1191,1195 **** * Component Node */ ! public class ComponentNode extends GenericNode { /** * Constructor --- 1179,1183 ---- * Component Node */ ! public class ComponentNode extends EntityNode { /** * Constructor |