Package com.independentsoft.office.spreadsheet

# Class SharedSpreadsheet

java.lang.Object
com.independentsoft.office.spreadsheet.SharedSpreadsheet

public class SharedSpreadsheet extends Object
The Class SharedSpreadsheet.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Worksheet`
  `getCurrentWorksheet()`
  Gets the current worksheet.
  `static SharedSpreadsheet`
  `getInstance()`
  Gets the single instance of SharedSpreadsheet.
  `Workbook`
  `getWorkbook()`
  Gets the workbook.
  `void`
  `setCurrentWorksheet​(Worksheet currentWorksheet)`
  Sets the current worksheet.
  `void`
  `setWorkbook​(Workbook workbook)`
  Sets the workbook.

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

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

- ## Method Details

  - ### getInstance

    public static SharedSpreadsheet getInstance()
    Gets the single instance of SharedSpreadsheet.
    Returns:
      single instance of SharedSpreadsheet

  - ### getWorkbook

    public Workbook getWorkbook()
    Gets the workbook.
    Returns:
      the workbook

  - ### setWorkbook

    public void setWorkbook​(Workbook workbook)
    Sets the workbook.
    Parameters:
      `workbook` - the new workbook

  - ### getCurrentWorksheet

    public Worksheet getCurrentWorksheet()
    Gets the current worksheet.
    Returns:
      the current worksheet

  - ### setCurrentWorksheet

    public void setCurrentWorksheet​(Worksheet currentWorksheet)
    Sets the current worksheet.
    Parameters:
      `currentWorksheet` - the new current worksheet