Package | Description |
---|---|
csheets |
Provides the controller of the CleanSheets application, and an entry-point
for command-line invocation.
|
csheets.core |
Provides the core classes for the application's data model, i.e. workbooks,
spreadsheets, cells, addresses and values.
|
csheets.ext |
Provides an extension mechanism for the application.
|
csheets.io |
Provides support for importing and exporting workbooks to and from various
file formats.
|
csheets.ui |
Provides JFC/Swing graphical user interface components for CleanSheets.
|
csheets.ui.ctrl |
Provides controllers and actions for the user interface.
|
Modifier and Type | Method and Description |
---|---|
Workbook |
SpreadsheetAppEvent.getWorkbook()
Returns the workbook that was affected by the event.
|
Workbook |
CleanSheets.getWorkbook(File file)
Returns the workbook that is stored in the given file, if it is already
open.
|
Workbook[] |
CleanSheets.getWorkbooks()
Returns the workbooks that are open.
|
Modifier and Type | Method and Description |
---|---|
File |
CleanSheets.getFile(Workbook workbook)
Returns the file in which the given workbook is stored.
|
boolean |
CleanSheets.isWorkbookStored(Workbook workbook)
Returns whether a file has been specified for the given workbook,
either when it was loaded or when it was last saved.
|
void |
CleanSheets.save(Workbook workbook)
Saves the given workbook to the file from which it was loaded,
or to which it was most recently saved.
|
void |
CleanSheets.saveAs(Workbook workbook,
File file)
Saves the given workbook to the given file.
|
void |
CleanSheets.unload(Workbook workbook)
Unloads the given workbook.
|
Constructor and Description |
---|
SpreadsheetAppEvent(Object source,
Workbook workbook,
File file,
SpreadsheetAppEvent.Type type)
Creates a new spreadsheet application event,
belonging to a workbook stored in a file.
|
Modifier and Type | Method and Description |
---|---|
Workbook |
SpreadsheetImpl.getWorkbook() |
Workbook |
Spreadsheet.getWorkbook()
Returns the workbook to which the spreadsheet belongs.
|
Constructor and Description |
---|
SpreadsheetImpl(Workbook workbook,
String title)
Creates a new spreadsheet.
|
SpreadsheetImpl(Workbook workbook,
String title,
String[][] content)
Creates a new spreadsheet, in which cells are initialized with data from
the given content matrix.
|
Modifier and Type | Method and Description |
---|---|
Workbook |
SpreadsheetExtension.getWorkbook() |
Modifier and Type | Method and Description |
---|---|
Workbook |
CSVCodec.read(InputStream stream) |
Workbook |
Codec.read(InputStream stream)
Reads a workbook from the given input stream.
|
Workbook |
CLSCodec.read(InputStream stream) |
Modifier and Type | Method and Description |
---|---|
void |
CSVCodec.write(Workbook workbook,
OutputStream stream) |
void |
Codec.write(Workbook workbook,
OutputStream stream)
Writes a workbook to the given output stream.
|
void |
CLSCodec.write(Workbook workbook,
OutputStream stream) |
Constructor and Description |
---|
ViewMenu.SelectWorkbookAction(Workbook workbook,
UIController uiController)
Creates a new workbook selection action.
|
WindowMenu.SelectWorkbookAction(Workbook workbook,
UIController uiController)
Creates a new workbook selection action.
|
Modifier and Type | Method and Description |
---|---|
Workbook |
UIController.getActiveWorkbook()
Returns the active workbook.
|
Workbook |
SelectionEvent.getPreviousWorkbook()
Returns the previous active workbook.
|
Workbook |
SelectionEvent.getWorkbook()
Returns the active workbook.
|
Workbook |
EditEvent.getWorkbook()
Returns the active workbook.
|
Modifier and Type | Method and Description |
---|---|
boolean |
UIController.isWorkbookModified(Workbook workbook)
Returns whether the given workbook has been modified.
|
void |
UIController.setActiveWorkbook(Workbook workbook)
Sets the given workbook of the application.
|
void |
UIController.setWorkbookModified(Workbook workbook)
Specifies whether the given workbook has been modified.
|
Constructor and Description |
---|
EditEvent(Object source,
Workbook workbook)
Creates a new edit event.
|
SelectionEvent(Object source,
Workbook workbook,
Spreadsheet spreadsheet,
Cell cell,
Workbook prevWorkbook,
Spreadsheet prevSpreadsheet,
Cell prevCell)
Creates a new selection event.
|