*/\r
public void setElementsFrom(ColumnSelection colsel)\r
{\r
+ selected = new Vector();\r
if (colsel.selected != null && colsel.selected.size() > 0)\r
{\r
if (hiddenColumns!=null && hiddenColumns.size()>0)\r
selected = new Vector();\r
addElementsFrom(colsel);\r
} else {\r
- // be quick\r
- selected = new Vector(colsel.selected);\r
+ // add everything regardless\r
+ Enumeration en = colsel.selected.elements();\r
+ while (en.hasMoreElements())\r
+ {\r
+ selected.addElement(en.nextElement());\r
+ }\r
}\r
}\r
- else\r
- {\r
- selected = new Vector();\r
- }\r
}\r
}\r