Class SpreadsheetWorksheetHeader
java.lang.Object
org.eclipse.epsilon.emc.spreadsheets.SpreadsheetWorksheetHeader
This class represents a worksheet header and consists of a number of ordered
columns. The ordering of columns is enforced by
SpreadsheetColumnComparator
.- Author:
- Martins Francis
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addColumn
(SpreadsheetColumn column) Adds the given column to the header.boolean
contains
(SpreadsheetColumn column) This method returns true if the given columns is part of the worksheet's header.This method returns the first header column identifiable by the given identifier.This method provides the columns that make up the header of the worksheet.This method returns the worksheet this header is for.toString()
-
Constructor Details
-
SpreadsheetWorksheetHeader
-
-
Method Details
-
getWorksheet
This method returns the worksheet this header is for.- Returns:
- worksheet
-
addColumn
Adds the given column to the header.- Parameters:
column
-
-
getColumn
This method returns the first header column identifiable by the given identifier. If there is no such column then null is returned instead.- Parameters:
identifier
-- Returns:
- header column or null
-
getColumns
This method provides the columns that make up the header of the worksheet.- Returns:
- header columns
-
contains
This method returns true if the given columns is part of the worksheet's header.- Parameters:
column
-- Returns:
- true if column is part of the header, false otherwise
-
toString
-