Package org.bgerp.plugin.report.model

# Class Columns

java.lang.Object
org.bgerp.plugin.report.model.Columns

public class Columns extends Object
List of report's columns.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Columns(Column... column)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Column`
  `get(String id)`
  Column by ID.
  `Column`
  `getByIndex(int index)`
  Column by index.
  `int`
  `getIndex(String id)`
  Column index by ID.
  `List<Column>`
  `getVisibleColumns()`
  List of visible columns with not blank title.
  `int`
  `size()`
  Quantity of all columns.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Columns

    public Columns(Column... column)

- ## Method Details

  - ### size

    public int size()
    Quantity of all columns.
    Returns:

  - ### getVisibleColumns

    public List<Column> getVisibleColumns()
    List of visible columns with not blank title.
    Returns:

  - ### get

    public Column get(String id)
    Column by ID.
    Parameters:
      `id` -
    Returns:
    Throws:
      `IllegalArgumentException` - - if no column found.

  - ### getByIndex

    public Column getByIndex(int index)
    Column by index.
    Parameters:
      `index` -
    Returns:

  - ### getIndex

    public int getIndex(String id)
    Column index by ID.
    Parameters:
      `id` -
    Returns:
    Throws:
      `IllegalArgumentException` - - if no column found.