Class WorkbookProtection
java.lang.Object
com.independentsoft.office.spreadsheet.WorkbookProtection
The Class WorkbookProtection.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the password.Gets the revisions password.booleanChecks if is lock revisions.booleanChecks if is lock structure.booleanChecks if is lock windows.voidsetLockRevisions(boolean lockRevisions)Sets the lock revisions.voidsetLockStructure(boolean lockStructure)Sets the lock structure.voidsetLockWindows(boolean lockWindows)Sets the lock windows.voidsetPassword(String password)Sets the password.voidsetRevisionsPassword(String revisionsPassword)Sets the revisions password.toString()
-
Constructor Details
-
WorkbookProtection
public WorkbookProtection()Instantiates a new workbook protection.
-
-
Method Details
-
clone
-
toString
-
isLockRevisions
public boolean isLockRevisions()Checks if is lock revisions.- Returns:
- true, if is lock revisions
-
setLockRevisions
public void setLockRevisions(boolean lockRevisions)Sets the lock revisions.- Parameters:
lockRevisions- the new lock revisions
-
isLockStructure
public boolean isLockStructure()Checks if is lock structure.- Returns:
- true, if is lock structure
-
setLockStructure
public void setLockStructure(boolean lockStructure)Sets the lock structure.- Parameters:
lockStructure- the new lock structure
-
isLockWindows
public boolean isLockWindows()Checks if is lock windows.- Returns:
- true, if is lock windows
-
setLockWindows
public void setLockWindows(boolean lockWindows)Sets the lock windows.- Parameters:
lockWindows- the new lock windows
-
getRevisionsPassword
Gets the revisions password.- Returns:
- the revisions password
-
setRevisionsPassword
Sets the revisions password.- Parameters:
revisionsPassword- the new revisions password
-
getPassword
Gets the password.- Returns:
- the password
-
setPassword
Sets the password.- Parameters:
password- the new password
-