Uploaded image for project: 'Keikai'
  1. Keikai
  2. KEIKAI-26

support a builder pattern API to protect a sheet

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • None
    • None
    • None

      Problem description

      Current API to protect a sheet requires too many parameters:
      Ranges.range(spreadsheet.getSelectedSheet()).protectSheet("", true, true, false, false, false, false, false, false, false, false, false, false, false, false, false);

      It's hard to read.

      Expected Solution

      range.protect( Protection.setPassword("").setSelectingLockedCells(true).setSelectingUnlockedCells(true))

            jumperchen jumperchen
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: