Convenience method to add a series of cols in one go.

@param columnTitles
@return this
@since 4.0
434557
public DelimiterWriterFactory addColumnTitles(final Collection<String> columnTitles) {
        if (columnTitles != null) {
            for (final String columnTitle : columnTitles) {
                addColumnTitle(columnTitle);
            }
        }
        return this;
    }
752897
public void addSimpleColumn(float left, float right) {
        ColumnDef newCol = new ColumnDef(left, right);
        columnDefs.add(newCol);
    }
481598
public WhereCondition Col(String columnName) {

        mSgSQL.append(columnName);
        checkTokenOrderIsCorrect(ESqlToken.COLUMN);
        return WhereCondition.this;
    }
936402
def insert_cols(self, col, no_cols=1):
        

        # Mark content as changed
        post_command_event(self.main_window, self.ContentChangedMsg)

        tab = self.grid.current_table

        self.code_array.insert(col, no_cols, axis=1, tab=tab)
459456
def addColumn(self, col, index=None):
        ''
        if col:
            if index is None:
                index = len(self.columns)
            col.sheet = self
            self.columns.insert(index, col)
            return col
257127
public ExcelExporter setColumnsHeader(List<String> columnsHeader) {
		noOfCols = columnsHeader.size();

		sheet.createFreezePane(0, 1);
		SXSSFRow headerRow = sheet.createRow(0);

		for (int i = 0; i < columnsHeader.size(); i++) {
			String cellHeader = columnsHeader.get(i);
			writeCell(headerRow, i, cellHeader, headerStyle);
		}
		return this;
	}
907843
public static SelectColumn includes(String[] cols, String... columns) {
        return new SelectColumn(Utility.append(cols, columns), false);
    }
1047967
def AddTableColumns(self, table, columns):
    """"""
    table_columns = self._table_columns.setdefault(table, [])
    for attr in columns:
      if attr not in table_columns:
        table_columns.append(attr)
885801
def _add_column(self, label, field):
        
        # Don't call this directly.
        assert self.headers is not None
        cols = 0
        if len(self._headers) > 0:
            cols = max([int(c.cell.col) for c in self._headers])
        new_col = cols + 1
        if int(self._ws.col_count.text) < new_col:
            self._ws.col_count.text = str(new_col)
            self._update_metadata()

        cell = self._service.UpdateCell(1, new_col, label,
                                        self._ss.id, self.id)
        self._headers.append(cell)
1114288
public DJXYLineChartBuilder addSerie(AbstractColumn column, String label) {
		getDataset().addSerie(column, label);
		return this;
	}
422025
public DJXYAreaChartBuilder addSerie(AbstractColumn column, String label) {
		getDataset().addSerie(column, label);
		return this;
	}
125765
public Query<T> setColumnNames(Collection<N> columnNames) {
    if ( columnNames != null && columnNames.size() > 0) {
      slicePredicate.setColumnNames(columnNames);
    } else {
      slicePredicate.setKeysOnlyPredicate();
    }
    return this;
  }
219909
@TimerJ
    public TableMetadataBuilder withColumns(List<ColumnMetadata> columnsMetadata) {
        for (ColumnMetadata colMetadata : columnsMetadata) {
            columns.put(colMetadata.getName(), colMetadata);
        }
        return this;
    }
786413
public DJXYBarChartBuilder addSerie(AbstractColumn column, String label) {
		getDataset().addSerie(column, label);
		return this;
	}
406428
protected function addCols(array $cols)
    {
        foreach ($cols as $key => $val) {
            if (is_int($key)) {
                $this->addCol($val);
            } else {
                $this->addCol($key, $val);
            }
        }
        return $this;
    }
564577
private void addSingleColumnSelectExample() {
		add(new WHeading(HeadingLevel.H3, "WRadioButtonSelect laid out in a single column"));
		add(new ExplanatoryText("When layout is COLUMN, setting the layoutColumnCount property to one, or forgetting to set it at all (default is "
				+ "one) is a little bit pointless."));
		final WRadioButtonSelect select = new WRadioButtonSelect("australian_state");
		select.setButtonLayout(WRadioButtonSelect.LAYOUT_COLUMNS);
		add(new WLabel("One column", select));
		add(select);
	}
728143
private static void editColumns(final JFrame frm, final Vector<String> colNames, final Vector<ColumnType> colTypes, final UnaryFunction<ImmutablePair<Vector<String>,Vector<ColumnType>>,Void> cf) {

        // Prepares UI components
        final JLabel dialogLabel =
            new JLabel("<html><b>Column mappings as CSV</b></html>");
        dialogLabel.setHorizontalTextPosition(SwingConstants.LEFT);

        final JLabel useLabel = new JLabel("<html>Simplified CSV syntax, with no quoting required.<br />For each line: <tt>type;name</tt> (e.g. <tt>string;Column name</tt>)</html>");
        useLabel.setHorizontalTextPosition(SwingConstants.LEFT);

        final JEditorPane csvArea = new JEditorPane();
        csvArea.setEditable(false);
        dialogLabel.setLabelFor(csvArea);
        final JScrollPane csvPanel =
            new JScrollPane(csvArea,
                            JScrollPane.VERTICAL_SCROLLBAR_ALWAYS,
                            JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
        csvPanel.setBorder(BorderFactory.createLoweredBevelBorder());
        csvArea.setContentType("text/csv");

        final Document doc = csvArea.getDocument();
        final JDialog dlg = new JDialog(frm, "Edit columns");
        final Container content = dlg.getContentPane();
        final GroupLayout layout = new GroupLayout(content);

        final AbstractAction update = new AbstractAction() {
                public void actionPerformed(final ActionEvent evt) {
                    BufferedReader r = null;
                    final Vector<String> ns = new Vector<String>();
                    final Vector<ColumnType> ts = new Vector<ColumnType>();

                    try {
                        final StringReader sr =
                            new StringReader(csvArea.getText());

                        r = new BufferedReader(sr);

                        String line, n;
                        ColumnType t;
                        for (int i = 1, o = 0, l = 0, x = -1;
                             (line = r.readLine()) != null; i++) {

                            l = line.length();

                            if ((x = line.indexOf(";")) == -1) {
                                JOptionPane.showMessageDialog(dlg, "Invalid CSV line #" + i, "Invalid line", JOptionPane.ERROR_MESSAGE);

                                csvArea.select(o, o+l);
                                return;
                            } // end of if

                            // ---

                            t = ColumnType.typeFor(line.substring(0, x));

                            if (t == null) {
                                JOptionPane.showMessageDialog(dlg, "Invalid column type at line #" + i + ": " + line.substring(0, x), "Invalid type", JOptionPane.ERROR_MESSAGE);

                                csvArea.select(o, o+x);
                                return;
                            } // end of if

                            n = line.substring(x+1);

                            if (n.length() == 0) {
                                JOptionPane.showMessageDialog(dlg, "Invalid column name at line #" + i, "Invalid name", JOptionPane.ERROR_MESSAGE);

                                csvArea.setCaretPosition(o+x+1);
                                return;
                            } // end of if

                            ns.add(n);
                            ts.add(t);

                            o += l + 1;
                        }
                    } catch (Exception e) {
                        throw new RuntimeException("Fails to update", e);
                    } finally {
                        if (r != null) {
                            try {
                                r.close();
                            } catch (Exception e) {
                                e.printStackTrace();
                            } // end of catch
                        } // end of if
                    } // end of finally

                    cf.apply(ImmutablePair.of(ns, ts));
                    dlg.dispose();
                }
            };
        update.putValue(Action.NAME, "Update");
        update.putValue(Action.SHORT_DESCRIPTION, "Update column mappings");
        update.putValue(Action.MNEMONIC_KEY, KeyEvent.VK_U);
        update.setEnabled(false);
        final JButton updateBut = new JButton(update);

        Binder.bind("text", csvArea, "enabled", update,
                    new BindingOptionMap().
                    add(BindingKey.INPUT_TRANSFORMER,
                        StringLengthToBooleanTransformer.
                        getTrimmingInstance()).
                    add(TextBindingKey.CONTINUOUSLY_UPDATE_VALUE));

        // Lays out UI component
        content.setLayout(layout);

	layout.setAutoCreateGaps(true);
	layout.setAutoCreateContainerGaps(true);

        final GroupLayout.SequentialGroup vgroup =
            layout.createSequentialGroup().
            addComponent(dialogLabel).
            addComponent(useLabel).
            addComponent(csvPanel,
                         GroupLayout.PREFERRED_SIZE,
                         GroupLayout.DEFAULT_SIZE,
                         Short.MAX_VALUE).
            addComponent(updateBut);

        final GroupLayout.ParallelGroup hgroup =
            layout.createParallelGroup(Alignment.LEADING).
            addComponent(dialogLabel).
            addComponent(useLabel).
            addComponent(csvPanel).
            addGroup(layout.createSequentialGroup().
                     addPreferredGap(LayoutStyle.ComponentPlacement.RELATED,
                                     GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE).
                     addComponent(updateBut));

        layout.setVerticalGroup(vgroup);
        layout.setHorizontalGroup(hgroup);

        dlg.setModal(true);
        dlg.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
        dlg.setMinimumSize(new Dimension(frm.getWidth(), frm.getHeight()/3));

        final KeyAdapter kl = new KeyAdapter() {
            public void keyReleased(KeyEvent e) {
                if (e.getKeyCode() == KeyEvent.VK_ESCAPE) dlg.dispose();
            }
        };

        dlg.addKeyListener(kl);
        content.addKeyListener(kl);
        csvArea.addKeyListener(kl);

        final KeyAdapter editKeys = new KeyAdapter() {
                public void keyReleased(final KeyEvent e) {
                    if (e.getKeyCode() == KeyEvent.VK_U && e.isControlDown())
                        updateBut.doClick();
                }
            };

        content.addKeyListener(editKeys);
        csvArea.addKeyListener(editKeys);

        csvArea.grabFocus();

        // Load as CSV
        final int len = colNames.size();

        StringBuffer line = new StringBuffer();
        for (int i = 0, o = 0; i < len; i++) {
            line.setLength(0);
            line.append(colTypes.elementAt(i)).
                append(';').append(colNames.elementAt(i)).
                append("\n");

            try {
                doc.insertString(o, line.toString(), null);
            } catch (Exception e) {
                throw new RuntimeException("Fails to append CSV line", e);
            }

            o += line.length();
        }

        csvArea.setEditable(true);

        dlg.pack();
        dlg.setLocationRelativeTo(null);
        dlg.setVisible(true);
    }