Commit in gui4gl/src/org/codejive/gui4gl/widgets on MAIN | |||
CompoundWidget.java | +10 | -5 | 1.1 -> 1.2 |
Adding a widget without a name will no longer give it an internally generated name, it will just be nameless and Themes properties won't be able to refer to it.
diff -u -r1.1 -r1.2 --- CompoundWidget.java 14 Dec 2003 02:36:26 -0000 1.1 +++ CompoundWidget.java 14 Dec 2003 03:09:55 -0000 1.2 @@ -21,8 +21,6 @@
protected Map m_childNames; protected Widget m_focusWidget;
- private static int m_nWidgetNr = 0; -
public CompoundWidget() { m_children = new LinkedList(); m_childNames = new HashMap();
@@ -31,7 +29,9 @@
} protected void add(Widget _child) {
- add(_child, "widget" + m_nWidgetNr++);
+ m_children.add(_child); + _child.setParent(this); + _child.setName("");
} protected void add(Widget _child, String _sName) {
@@ -228,9 +228,14 @@
/* * $Log$
+ * Revision 1.2 2003/12/14 03:09:55 tako + * Adding a widget without a name will no longer give it an internally generated + * name, it will just be nameless and Themes properties won't be able to + * refer to it. + *
* Revision 1.1 2003/12/14 02:36:26 tako
- * CompoundWidget added that has almost all the functionality of Container - * but with all protected methods meant for complex widgets. Container has
+ * CompoundWidget added that has almost all the functionality of Container + * but with all protected methods meant for complex widgets. Container has
* become little more than a public version of CompoundWidget. * */