WriteProtection
Inheritance: java.lang.Object
public class WriteProtection
Specifies write protection settings for a workbook.
Constructors
Constructor | Description |
---|---|
WriteProtection() |
Methods
Method | Description |
---|---|
equals(Object arg0) | |
getAuthor() | Gets the author. |
getClass() | |
getPassword() | Sets the protected password to modify the file. |
getRecommendReadOnly() | Indicates if the Read Only Recommended option is selected. |
hashCode() | |
isWriteProtected() | Indicates whether this workbook is write protected. |
notify() | |
notifyAll() | |
setAuthor(String value) | Sets the author. |
setPassword(String value) | Sets the protected password to modify the file. |
setRecommendReadOnly(boolean value) | Indicates if the Read Only Recommended option is selected. |
toString() | |
validatePassword(String password) | Returns true if the specified password is the same as the write-protection password the file was protected with. |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
WriteProtection()
public WriteProtection()
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getAuthor()
public String getAuthor()
Gets the author.
Returns: java.lang.String
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class
getPassword()
public String getPassword()
Sets the protected password to modify the file.
Remarks
Returns: java.lang.String
getRecommendReadOnly()
public boolean getRecommendReadOnly()
Indicates if the Read Only Recommended option is selected.
Returns: boolean
hashCode()
public native int hashCode()
Returns: int
isWriteProtected()
public boolean isWriteProtected()
Indicates whether this workbook is write protected.
Returns: boolean
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
setAuthor(String value)
public void setAuthor(String value)
Sets the author.
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setPassword(String value)
public void setPassword(String value)
Sets the protected password to modify the file.
Remarks
Parameters:
Parameter | Type | Description |
---|---|---|
value | java.lang.String |
setRecommendReadOnly(boolean value)
public void setRecommendReadOnly(boolean value)
Indicates if the Read Only Recommended option is selected.
Parameters:
Parameter | Type | Description |
---|---|---|
value | boolean |
toString()
public String toString()
Returns: java.lang.String
validatePassword(String password)
public boolean validatePassword(String password)
Returns true if the specified password is the same as the write-protection password the file was protected with.
Parameters:
Parameter | Type | Description |
---|---|---|
password | java.lang.String | The specified password. |
Returns: boolean -
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |