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()
ISpreadsheet
getName
in interface ISpreadsheet
public IGranularity<?> getGranularity()
ISpreadsheet
getGranularity
in interface ISpreadsheet
public int getCellWidth()
ISpreadsheet
getCellWidth
in interface ISpreadsheet
public Class getDefaultValueType()
ISpreadsheet
SpreadsheetLayer
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 ISpreadsheet
Copyright © 2006–2020 Dirk Lemmermann Software & Consulting. All rights reserved.