public class SheetProtectionManager extends ProtectionManager implements Serializable
enhancedProtection, password, protect| Constructor and Description |
|---|
SheetProtectionManager(Boundsheet sheet) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRecord(BiffRec record)
Adds a protection-related record to be managed.
|
void |
close()
clear out object references in prep for closing workbook
|
boolean |
getProtected(int option) |
void |
setPassword(String pass)
Sets or removes the sheet's protection password.
|
void |
setPasswordHashed(String pass)
Sets or removes the sheet's protection password.
|
void |
setProtected(boolean value)
Sets whether the sheet is protected.
|
void |
setProtected(int option,
boolean value) |
checkPassword, getPassword, getProtectedpublic SheetProtectionManager(Boundsheet sheet)
public void addRecord(BiffRec record)
init()
method of the record where appropriate. It should probably never be
called anywhere else.addRecord in class ProtectionManagerrecord - the record to be managedpublic void setProtected(boolean value)
setProtected in class ProtectionManagerpublic boolean getProtected(int option)
public void setProtected(int option,
boolean value)
public void setPassword(String pass)
setPassword in class ProtectionManagerpass - the string password to set or null to remove the passwordpublic void setPasswordHashed(String pass)
setPasswordHashed in class ProtectionManagerpass - the pre-hashed string password to set
or null to remove the passwordpublic void close()
close in class ProtectionManagerCopyright © 2002–2019 Starter Inc.. All rights reserved.