public class Spreadsheet extends Object implements ISpreadsheet
IGanttChartModel.getSpreadsheets(),
AbstractGanttChart.setActiveSpreadsheet(ISpreadsheet)| Constructor and Description |
|---|
Spreadsheet(String name,
IGranularity<?> granularity,
int cellWidth,
Class defaultValueType)
Constructs a new spreadsheet.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCellWidth()
The required width of the spreadsheet cells.
|
Class |
getDefaultValueType()
Returns the default object type of the spreadsheet's cell values, where a
cell is defined by its tree node, the spreadsheet itself, and a time
span.
|
IGranularity<?> |
getGranularity()
Returns the time granularity used by the spreadsheet, e.g.
|
String |
getName()
The name of the spreadsheet as it will be shown in the UI components that
control the visibility of the spreadsheets.
|
public Spreadsheet(String name, IGranularity<?> granularity, int cellWidth, Class defaultValueType)
name - the name as shown in the user interfacegranularity - the time granularity that will be shown by the datelinecellWidth - the width used for the cells in the spreadsheetdefaultValueType - the default type used for editing new spreadsheet valuespublic String getName()
ISpreadsheetgetName in interface ISpreadsheetpublic IGranularity<?> getGranularity()
ISpreadsheetgetGranularity in interface ISpreadsheetpublic int getCellWidth()
ISpreadsheetgetCellWidth in interface ISpreadsheetpublic Class getDefaultValueType()
ISpreadsheetSpreadsheetLayer
tries to lookup an editor for a specific spreadsheet cell and the cell
does not have a value, yet. If a value exists, then the value's type will
be used to lookup an editor.getDefaultValueType in interface ISpreadsheetCopyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.